From a8fab53fcca1ae21cbccdbb6864dd5989777e3d8 Mon Sep 17 00:00:00 2001 From: Konrad Kleine <193408+kwk@users.noreply.github.com> Date: Tue, 11 Sep 2018 08:37:08 +0200 Subject: [PATCH] testfixture.GetTestFileAndFunc() (#2149) `GetTestFileAndFunc` returns the file and function of the first `_test.go` file to appear in the stack and returns it in this schema: ``` (see function github.com/fabric8-services/fabric8-wit/test/testfixture_test.TestGetGetTestFileAndFunc in test/testfixture/testfixture_test.go) ``` The result can be used to augment entities so that we always can tell which test created an entity that is a left-over and not cleaned up for example. NOTE: The `testfixutre.GetTestFileAndFunc()` was taken out of this PR and already merge with this PR #2214. It is no longer part of this PR. Most of the entities created with the `test/testfixture` package now contain a description that reveals in which function the entities was created. When there are left-over entities that hinder tests from running properly, you can now go in the database and find out which test produced these left-overs. To simplify things when running on CI, we now output a list of remaining spaces automatically that looks like this if everything went ok: ``` Check that no unexpected left-over spaces exist after running tests: -[ RECORD 1 ]------------------------------------- id | 2e0698d8-753e-4cef-bb7c-f027634824a2 name | system.space description | Description of the space ``` Note, that the `system.space` is okay to appear in this list. It is expected even though it should go away at some point. See https://github.com/fabric8-services/fabric8-wit/pull/2278 for an example of a PR that was easily fixed because of this PR. --- .make/docker.mk | 12 ++++++ Dockerfile.builder | 1 + .../ok-description.res.payload.golden.json | 4 ++ .../show/ok.res.iteration.golden.json | 2 +- ...ok_change_parent.res.iteration.golden.json | 2 +- ...ll_show_after_update_work_item.golden.json | 3 ++ ...assignee_null_update_work_item.golden.json | 3 ++ ...ll_show_after_update_work_item.golden.json | 3 ++ ...er_label_null_update_work_item.golden.json | 3 ++ ...t_include_children.res.payload.golden.json | 6 +++ .../include_children.res.payload.golden.json | 12 ++++++ .../A_with_tree-view=false.res.golden.json | 3 ++ .../A_with_tree-view=true.res.golden.json | 3 ++ .../B,C_with_tree-view=false.res.golden.json | 6 +++ .../B,C_with_tree-view=true.res.golden.json | 9 +++++ .../B_with_tree-view=false.res.golden.json | 3 ++ .../B_with_tree-view=true.res.golden.json | 6 +++ .../C_with_tree-view=false.res.golden.json | 3 ++ .../C_with_tree-view=true.res.golden.json | 9 +++++ .../D_with_tree-view=false.res.golden.json | 3 ++ .../D_with_tree-view=true.res.golden.json | 6 +++ .../E_with_tree-view=false.res.golden.json | 3 ++ .../E_with_tree-view=true.res.golden.json | 3 ++ ...generated_template.res.payload.golden.json | 2 +- .../list_children/ok.res.payload.golden.json | 6 +++ .../ok.has_children.res.payload.golden.json | 3 ++ ...ok.has_no_children.res.payload.golden.json | 3 ++ .../area/area_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../boardcolumn_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../bool/bool_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../codebase_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../duration_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../float/float_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../instant_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../integer_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../iteration_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../label/label_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../markup/markup_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../string/string_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../url/url_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../valid_sample_3.res.payload.golden.json | 3 ++ .../user/user_wit.res.payload.golden.json | 2 +- .../valid_sample_1.res.payload.golden.json | 3 ++ .../valid_sample_2.res.payload.golden.json | 3 ++ .../create/ok.res.payload.golden.json | 8 +++- .../list/ok.res.paylpad.golden.json | 8 +++- .../show/ok.res.payload.golden.json | 8 +++- .../list/ok.res.payload.golden.json | 4 +- .../show/ok.res.payload.golden.json | 2 +- .../list/ok.res.payload.golden.json | 4 +- ...difiedsince_header.res.payload.golden.json | 4 +- ...ifnonematch_header.res.payload.golden.json | 4 +- .../show/ok.res.payload.golden.json | 2 +- ...difiedsince_header.res.payload.golden.json | 2 +- ...ifnonematch_header.res.payload.golden.json | 2 +- .../list/ok.res.payload.golden.json | 4 +- ...difiedsince_header.res.payload.golden.json | 4 +- ...ifnonematch_header.res.payload.golden.json | 4 +- .../work_item_type/show/ok.wit.golden.json | 2 +- ..._using_expired_etag_header.wit.golden.json | 2 +- ...xpired_lastmodified_header.wit.golden.json | 2 +- .../ok_generated_template.payload.golden.json | 3 ++ .../show/ok.witg.golden.json | 1 + controller/work_item_link_blackbox_test.go | 20 ++++++---- controller/workitem_whitebox_test.go | 4 +- test/testfixture/make_functions.go | 37 +++++++++---------- 86 files changed, 281 insertions(+), 69 deletions(-) diff --git a/.make/docker.mk b/.make/docker.mk index 5b849118c4..b0b45f00ee 100644 --- a/.make/docker.mk +++ b/.make/docker.mk @@ -115,6 +115,18 @@ ifeq ($(strip $(shell docker inspect --format '{{ .NetworkSettings.IPAddress }}' endif $(eval F8_POSTGRES_HOST := $(shell docker inspect --format '{{ .NetworkSettings.IPAddress }}' make_postgres_integration_test_1 2>/dev/null)) docker exec -t $(DOCKER_RUN_INTERACTIVE_SWITCH) "$(DOCKER_CONTAINER_NAME)" bash -ec 'export F8_POSTGRES_HOST=$(F8_POSTGRES_HOST); make $(makecommand)' + @echo + @echo "Check that no unexpected left-over spaces exist after running tests:" + @echo + @docker exec \ + -t $(DOCKER_RUN_INTERACTIVE_SWITCH) \ + "$(DOCKER_CONTAINER_NAME)" \ + bash -ec 'PGPASSWORD=mysecretpassword \ + psql -h $(F8_POSTGRES_HOST) \ + -U postgres \ + -c "SELECT id, name, description FROM spaces;" \ + -x \ + -P pager=off' # This is a wildcard target to let you call any make target from the normal makefile # but it will run inside the docker container. This target will only get executed if diff --git a/Dockerfile.builder b/Dockerfile.builder index f9cff83144..2caa3729ae 100644 --- a/Dockerfile.builder +++ b/Dockerfile.builder @@ -15,6 +15,7 @@ RUN yum --enablerepo=centosplus install -y --quiet \ wget \ which \ bc \ + postgresql \ && yum clean all RUN test -n $USE_GO_VERSION_FROM_WEBSITE \ diff --git a/controller/test-files/event/list/ok-description.res.payload.golden.json b/controller/test-files/event/list/ok-description.res.payload.golden.json index 2b2bb4675b..8339eeeb2d 100755 --- a/controller/test-files/event/list/ok-description.res.payload.golden.json +++ b/controller/test-files/event/list/ok-description.res.payload.golden.json @@ -7,6 +7,10 @@ "content": "# Description is modified1", "markup": "Markdown" }, + "oldValue": { + "content": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*TestEvent).TestListEvent.func5 in controller/work_item_events_blackbox_test.go)`", + "markup": "Markdown" + }, "revisionId": "00000000-0000-0000-0000-000000000001", "timestamp": "0001-01-01T00:00:00Z" }, diff --git a/controller/test-files/iteration/show/ok.res.iteration.golden.json b/controller/test-files/iteration/show/ok.res.iteration.golden.json index 2188d06970..aa69aa9ea4 100755 --- a/controller/test-files/iteration/show/ok.res.iteration.golden.json +++ b/controller/test-files/iteration/show/ok.res.iteration.golden.json @@ -3,7 +3,7 @@ "attributes": { "active_status": true, "created-at": "0001-01-01T00:00:00Z", - "description": "Some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*TestIterationREST).TestShowIterationOK in controller/iteration_blackbox_test.go)", "endAt": "0001-01-01T00:00:00Z", "name": "iteration 00000000-0000-0000-0000-000000000001", "parent_path": "/00000000-0000-0000-0000-000000000002", diff --git a/controller/test-files/iteration/update/ok_change_parent.res.iteration.golden.json b/controller/test-files/iteration/update/ok_change_parent.res.iteration.golden.json index 08865ff09e..9d160637d0 100755 --- a/controller/test-files/iteration/update/ok_change_parent.res.iteration.golden.json +++ b/controller/test-files/iteration/update/ok_change_parent.res.iteration.golden.json @@ -3,7 +3,7 @@ "attributes": { "active_status": false, "created-at": "0001-01-01T00:00:00Z", - "description": "Some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*TestIterationREST).TestUpdateIteration.func1 in controller/iteration_blackbox_test.go)", "name": "iteration 3", "parent_path": "/00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000002", "resolved_parent_path": "/root/iteration 1", diff --git a/controller/test-files/search/show/filter_assignee_null_show_after_update_work_item.golden.json b/controller/test-files/search/show/filter_assignee_null_show_after_update_work_item.golden.json index e5604a8da1..01d5c09f1a 100755 --- a/controller/test-files/search/show/filter_assignee_null_show_after_update_work_item.golden.json +++ b/controller/test-files/search/show/filter_assignee_null_show_after_update_work_item.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func1 in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func1 in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/search/show/filter_assignee_null_update_work_item.golden.json b/controller/test-files/search/show/filter_assignee_null_update_work_item.golden.json index e5604a8da1..01d5c09f1a 100755 --- a/controller/test-files/search/show/filter_assignee_null_update_work_item.golden.json +++ b/controller/test-files/search/show/filter_assignee_null_update_work_item.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func1 in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func1 in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/search/show/filter_label_null_show_after_update_work_item.golden.json b/controller/test-files/search/show/filter_label_null_show_after_update_work_item.golden.json index e5604a8da1..ffec56bce0 100755 --- a/controller/test-files/search/show/filter_label_null_show_after_update_work_item.golden.json +++ b/controller/test-files/search/show/filter_label_null_show_after_update_work_item.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func2 in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func2 in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/search/show/filter_label_null_update_work_item.golden.json b/controller/test-files/search/show/filter_label_null_update_work_item.golden.json index e5604a8da1..ffec56bce0 100755 --- a/controller/test-files/search/show/filter_label_null_update_work_item.golden.json +++ b/controller/test-files/search/show/filter_label_null_update_work_item.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func2 in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestUpdateWorkItem.func2 in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/do_not_include_children.res.payload.golden.json b/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/do_not_include_children.res.payload.golden.json index 734aedc792..0bb4eb8759 100755 --- a/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/do_not_include_children.res.payload.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/do_not_include_children.res.payload.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, @@ -87,6 +90,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, diff --git a/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/include_children.res.payload.golden.json b/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/include_children.res.payload.golden.json index 011ea55a6d..60f2cc2905 100755 --- a/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/include_children.res.payload.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C-D_and_B-E_search_for_B_and_C/include_children.res.payload.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, @@ -92,6 +95,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, @@ -183,6 +189,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, @@ -267,6 +276,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedChildren in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 5, "system.order": 5000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=false.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=false.res.golden.json index e0b331557b..9e8d8a0a29 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=false.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=false.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=true.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=true.res.golden.json index d6b1410b16..3e96ed5167 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=true.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/A_with_tree-view=true.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=false.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=false.res.golden.json index 27a63b3ed4..564a93f779 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=false.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=false.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, @@ -87,6 +90,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=true.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=true.res.golden.json index 17e85a4f68..4970cc7882 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=true.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B,C_with_tree-view=true.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, @@ -92,6 +95,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, @@ -183,6 +189,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=false.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=false.res.golden.json index fbd5ef5078..d574e19020 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=false.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=false.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=true.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=true.res.golden.json index 2233bc212d..3051c2f2f3 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=true.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/B_with_tree-view=true.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, @@ -94,6 +97,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=false.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=false.res.golden.json index 56c1d1ef7e..e6611d2ffa 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=false.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=false.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=true.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=true.res.golden.json index 7a79ecf888..f57824acac 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=true.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/C_with_tree-view=true.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, @@ -94,6 +97,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, @@ -178,6 +184,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=false.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=false.res.golden.json index 17a977f1db..bedb594af6 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=false.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=false.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 4, "system.order": 4000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=true.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=true.res.golden.json index a0ad2636b7..f4555ba16c 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=true.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/D_with_tree-view=true.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 4, "system.order": 4000, @@ -94,6 +97,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=false.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=false.res.golden.json index 0b5f1e9a78..48c85a06d0 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=false.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=false.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 5, "system.order": 5000, diff --git a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=true.res.golden.json b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=true.res.golden.json index a4206f1b0a..599861a7ac 100755 --- a/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=true.res.golden.json +++ b/controller/test-files/search/show/in_topology_A-B-C_and_A-D_search_for/E_with_tree-view=true.res.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*searchControllerTestSuite).TestIncludedParents in controller/search_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 5, "system.order": 5000, diff --git a/controller/test-files/space_templates/show/ok_generated_template.res.payload.golden.json b/controller/test-files/space_templates/show/ok_generated_template.res.payload.golden.json index 7c0c2354b4..27768fbe7d 100755 --- a/controller/test-files/space_templates/show/ok_generated_template.res.payload.golden.json +++ b/controller/test-files/space_templates/show/ok_generated_template.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "Description for space template 00000000-0000-0000-0000-000000000001", + "description": "Description for space template 00000000-0000-0000-0000-000000000001 (see function github.com/fabric8-services/fabric8-wit/controller_test.(*testSpaceTemplateSuite).TestSpaceTemplate_Show.func2 in controller/space_template_blackbox_test.go)", "name": "space template 00000000-0000-0000-0000-000000000001", "updated-at": "0001-01-01T00:00:00Z", "version": 0 diff --git a/controller/test-files/work_item/list_children/ok.res.payload.golden.json b/controller/test-files/work_item/list_children/ok.res.payload.golden.json index 100a831b56..01ee65de26 100755 --- a/controller/test-files/work_item/list_children/ok.res.payload.golden.json +++ b/controller/test-files/work_item/list_children/ok.res.payload.golden.json @@ -3,6 +3,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, @@ -86,6 +89,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/work_item/show/ok.has_children.res.payload.golden.json b/controller/test-files/work_item/show/ok.has_children.res.payload.golden.json index 745cbc3033..65b4fccdab 100755 --- a/controller/test-files/work_item/show/ok.has_children.res.payload.golden.json +++ b/controller/test-files/work_item/show/ok.has_children.res.payload.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, diff --git a/controller/test-files/work_item/show/ok.has_no_children.res.payload.golden.json b/controller/test-files/work_item/show/ok.has_no_children.res.payload.golden.json index 5e1a4d7740..96ed63e578 100755 --- a/controller/test-files/work_item/show/ok.has_no_children.res.payload.golden.json +++ b/controller/test-files/work_item/show/ok.has_no_children.res.payload.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemChildSuite).TestChildren.func1 in controller/work_item_children_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/work_item/update/area/area_wit.res.payload.golden.json b/controller/test-files/work_item/update/area/area_wit.res.payload.golden.json index 1286a4df65..9f97c68e77 100755 --- a/controller/test-files/work_item/update/area/area_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/area/area_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "area_field": { "description": "This field is used for testing values for the field kind 'area'", diff --git a/controller/test-files/work_item/update/area/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/area/valid_sample_1.res.payload.golden.json index 3af17f4afc..4949ccf5fc 100755 --- a/controller/test-files/work_item/update/area/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/area/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "area_field": "00000000-0000-0000-0000-000000000001", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, diff --git a/controller/test-files/work_item/update/boardcolumn/boardcolumn_wit.res.payload.golden.json b/controller/test-files/work_item/update/boardcolumn/boardcolumn_wit.res.payload.golden.json index b0b85f05ed..d7b595a5d0 100755 --- a/controller/test-files/work_item/update/boardcolumn/boardcolumn_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/boardcolumn/boardcolumn_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "boardcolumn_field": { "description": "This field is used for testing values for the field kind 'boardcolumn'", diff --git a/controller/test-files/work_item/update/boardcolumn/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/boardcolumn/valid_sample_1.res.payload.golden.json index 6e7259eebe..f1517bc953 100755 --- a/controller/test-files/work_item/update/boardcolumn/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/boardcolumn/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "boardcolumn_field": "00000000-0000-0000-0000-000000000001", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/work_item/update/bool/bool_wit.res.payload.golden.json b/controller/test-files/work_item/update/bool/bool_wit.res.payload.golden.json index 2635faf4b8..5a635e8afb 100755 --- a/controller/test-files/work_item/update/bool/bool_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/bool/bool_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "bool_field": { "description": "This field is used for testing values for the field kind 'bool'", diff --git a/controller/test-files/work_item/update/bool/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/bool/valid_sample_1.res.payload.golden.json index 3ae0717d1b..f722e62669 100755 --- a/controller/test-files/work_item/update/bool/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/bool/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "bool_field": false, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 3, "system.order": 3000, diff --git a/controller/test-files/work_item/update/codebase/codebase_wit.res.payload.golden.json b/controller/test-files/work_item/update/codebase/codebase_wit.res.payload.golden.json index f9a75dcf73..1d189cf21e 100755 --- a/controller/test-files/work_item/update/codebase/codebase_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/codebase/codebase_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "codebase_field": { "description": "This field is used for testing values for the field kind 'codebase'", diff --git a/controller/test-files/work_item/update/codebase/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/codebase/valid_sample_1.res.payload.golden.json index 433a216e8f..404022a274 100755 --- a/controller/test-files/work_item/update/codebase/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/codebase/valid_sample_1.res.payload.golden.json @@ -9,6 +9,9 @@ "codebaseid": "dunno" }, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 4, "system.order": 4000, diff --git a/controller/test-files/work_item/update/duration/duration_wit.res.payload.golden.json b/controller/test-files/work_item/update/duration/duration_wit.res.payload.golden.json index 39bacb361f..24eac86bcb 100755 --- a/controller/test-files/work_item/update/duration/duration_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/duration/duration_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "duration_field": { "description": "This field is used for testing values for the field kind 'duration'", diff --git a/controller/test-files/work_item/update/duration/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/duration/valid_sample_1.res.payload.golden.json index d818e2d632..6d7a7b0333 100755 --- a/controller/test-files/work_item/update/duration/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/duration/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "duration_field": 300000000, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 5, "system.order": 5000, diff --git a/controller/test-files/work_item/update/duration/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/duration/valid_sample_2.res.payload.golden.json index 04b18ce4be..4cee348ec1 100755 --- a/controller/test-files/work_item/update/duration/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/duration/valid_sample_2.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "duration_field": -5400000000000, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 5, "system.order": 5000, diff --git a/controller/test-files/work_item/update/float/float_wit.res.payload.golden.json b/controller/test-files/work_item/update/float/float_wit.res.payload.golden.json index c8e52f03b2..1627a7dc8e 100755 --- a/controller/test-files/work_item/update/float/float_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/float/float_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "float_field": { "description": "This field is used for testing values for the field kind 'float'", diff --git a/controller/test-files/work_item/update/float/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/float/valid_sample_1.res.payload.golden.json index 7eaff9e31f..c3b4705e5c 100755 --- a/controller/test-files/work_item/update/float/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/float/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "float_field": -1111.1, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 6, "system.order": 6000, diff --git a/controller/test-files/work_item/update/float/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/float/valid_sample_2.res.payload.golden.json index 3225056d12..0ed785aa7c 100755 --- a/controller/test-files/work_item/update/float/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/float/valid_sample_2.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "float_field": 555.2, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 6, "system.order": 6000, diff --git a/controller/test-files/work_item/update/instant/instant_wit.res.payload.golden.json b/controller/test-files/work_item/update/instant/instant_wit.res.payload.golden.json index 3692222ca2..91f8963765 100755 --- a/controller/test-files/work_item/update/instant/instant_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/instant/instant_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "instant_field": { "description": "This field is used for testing values for the field kind 'instant'", diff --git a/controller/test-files/work_item/update/instant/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/instant/valid_sample_1.res.payload.golden.json index 3dc9acba48..16329bcdde 100755 --- a/controller/test-files/work_item/update/instant/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/instant/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "instant_field": "0001-01-01T00:00:00Z", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 7, "system.order": 7000, diff --git a/controller/test-files/work_item/update/integer/integer_wit.res.payload.golden.json b/controller/test-files/work_item/update/integer/integer_wit.res.payload.golden.json index 4a1869ffb1..8a591f9af4 100755 --- a/controller/test-files/work_item/update/integer/integer_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/integer/integer_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "integer_field": { "description": "This field is used for testing values for the field kind 'integer'", diff --git a/controller/test-files/work_item/update/integer/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/integer/valid_sample_1.res.payload.golden.json index b751f0c603..321fc3606b 100755 --- a/controller/test-files/work_item/update/integer/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/integer/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "integer_field": 333, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 8, "system.order": 8000, diff --git a/controller/test-files/work_item/update/integer/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/integer/valid_sample_2.res.payload.golden.json index c70334c63e..508c21dffc 100755 --- a/controller/test-files/work_item/update/integer/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/integer/valid_sample_2.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "integer_field": -100, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 8, "system.order": 8000, diff --git a/controller/test-files/work_item/update/iteration/iteration_wit.res.payload.golden.json b/controller/test-files/work_item/update/iteration/iteration_wit.res.payload.golden.json index 41ad1cee45..51d3b71657 100755 --- a/controller/test-files/work_item/update/iteration/iteration_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/iteration/iteration_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "iteration_field": { "description": "This field is used for testing values for the field kind 'iteration'", diff --git a/controller/test-files/work_item/update/iteration/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/iteration/valid_sample_1.res.payload.golden.json index 2765e10eae..5522092f32 100755 --- a/controller/test-files/work_item/update/iteration/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/iteration/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "iteration_field": "00000000-0000-0000-0000-000000000001", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 9, "system.order": 9000, diff --git a/controller/test-files/work_item/update/iteration/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/iteration/valid_sample_2.res.payload.golden.json index 8d6e7f010b..2aee8b9ce7 100755 --- a/controller/test-files/work_item/update/iteration/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/iteration/valid_sample_2.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "iteration_field": "", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 9, "system.order": 9000, diff --git a/controller/test-files/work_item/update/label/label_wit.res.payload.golden.json b/controller/test-files/work_item/update/label/label_wit.res.payload.golden.json index 5a8518d46b..be4a4048fe 100755 --- a/controller/test-files/work_item/update/label/label_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/label/label_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "label_field": { "description": "This field is used for testing values for the field kind 'label'", diff --git a/controller/test-files/work_item/update/label/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/label/valid_sample_1.res.payload.golden.json index ef6730fa3b..6b62c2541a 100755 --- a/controller/test-files/work_item/update/label/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/label/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "label_field": "00000000-0000-0000-0000-000000000001", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 10, "system.order": 10000, diff --git a/controller/test-files/work_item/update/label/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/label/valid_sample_2.res.payload.golden.json index 6f3c4cb7b3..8e951f6b72 100755 --- a/controller/test-files/work_item/update/label/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/label/valid_sample_2.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "label_field": "", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 10, "system.order": 10000, diff --git a/controller/test-files/work_item/update/markup/markup_wit.res.payload.golden.json b/controller/test-files/work_item/update/markup/markup_wit.res.payload.golden.json index 20f5cb0c21..7f32cfc81a 100755 --- a/controller/test-files/work_item/update/markup/markup_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/markup/markup_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "markup_field": { "description": "This field is used for testing values for the field kind 'markup'", diff --git a/controller/test-files/work_item/update/markup/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/markup/valid_sample_1.res.payload.golden.json index a9e9d889af..ad6cbfac04 100755 --- a/controller/test-files/work_item/update/markup/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/markup/valid_sample_1.res.payload.golden.json @@ -6,6 +6,9 @@ "markup": "PlainText" }, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 11, "system.order": 11000, diff --git a/controller/test-files/work_item/update/markup/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/markup/valid_sample_2.res.payload.golden.json index b96867d2b5..5f4f25dc65 100755 --- a/controller/test-files/work_item/update/markup/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/markup/valid_sample_2.res.payload.golden.json @@ -6,6 +6,9 @@ "markup": "Markdown" }, "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 11, "system.order": 11000, diff --git a/controller/test-files/work_item/update/string/string_wit.res.payload.golden.json b/controller/test-files/work_item/update/string/string_wit.res.payload.golden.json index 48508d739d..4013817c7b 100755 --- a/controller/test-files/work_item/update/string/string_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/string/string_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "string_field": { "description": "This field is used for testing values for the field kind 'string'", diff --git a/controller/test-files/work_item/update/string/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/string/valid_sample_1.res.payload.golden.json index 991b2b7535..245bdc0a7f 100755 --- a/controller/test-files/work_item/update/string/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/string/valid_sample_1.res.payload.golden.json @@ -3,6 +3,9 @@ "attributes": { "string_field": "bar", "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 12, "system.order": 12000, diff --git a/controller/test-files/work_item/update/url/url_wit.res.payload.golden.json b/controller/test-files/work_item/update/url/url_wit.res.payload.golden.json index 0e4d0fef73..1e2584b389 100755 --- a/controller/test-files/work_item/update/url/url_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/url/url_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item/update/url/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/url/valid_sample_1.res.payload.golden.json index ba9847b4f3..7281da4091 100755 --- a/controller/test-files/work_item/update/url/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/url/valid_sample_1.res.payload.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 13, "system.order": 13000, diff --git a/controller/test-files/work_item/update/url/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/url/valid_sample_2.res.payload.golden.json index ec6956b7cf..d2e7c9d038 100755 --- a/controller/test-files/work_item/update/url/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/url/valid_sample_2.res.payload.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 13, "system.order": 13000, diff --git a/controller/test-files/work_item/update/url/valid_sample_3.res.payload.golden.json b/controller/test-files/work_item/update/url/valid_sample_3.res.payload.golden.json index 80d18b6bee..3808c0a1b1 100755 --- a/controller/test-files/work_item/update/url/valid_sample_3.res.payload.golden.json +++ b/controller/test-files/work_item/update/url/valid_sample_3.res.payload.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 13, "system.order": 13000, diff --git a/controller/test-files/work_item/update/user/user_wit.res.payload.golden.json b/controller/test-files/work_item/update/user/user_wit.res.payload.golden.json index 2b6bf90785..708e3325de 100755 --- a/controller/test-files/work_item/update/user/user_wit.res.payload.golden.json +++ b/controller/test-files/work_item/update/user/user_wit.res.payload.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item/update/user/valid_sample_1.res.payload.golden.json b/controller/test-files/work_item/update/user/valid_sample_1.res.payload.golden.json index 47beaf2887..b6673df0b4 100755 --- a/controller/test-files/work_item/update/user/valid_sample_1.res.payload.golden.json +++ b/controller/test-files/work_item/update/user/valid_sample_1.res.payload.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 14, "system.order": 14000, diff --git a/controller/test-files/work_item/update/user/valid_sample_2.res.payload.golden.json b/controller/test-files/work_item/update/user/valid_sample_2.res.payload.golden.json index 0757d8184a..e71fd8a997 100755 --- a/controller/test-files/work_item/update/user/valid_sample_2.res.payload.golden.json +++ b/controller/test-files/work_item/update/user/valid_sample_2.res.payload.golden.json @@ -2,6 +2,9 @@ "data": { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*WorkItem2Suite).TestWI2UpdateFieldOfDifferentSimpleTypes.func1 in controller/workitem_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 14, "system.order": 14000, diff --git a/controller/test-files/work_item_link/create/ok.res.payload.golden.json b/controller/test-files/work_item_link/create/ok.res.payload.golden.json index 57f182dce3..a01662f0e0 100755 --- a/controller/test-files/work_item_link/create/ok.res.payload.golden.json +++ b/controller/test-files/work_item_link/create/ok.res.payload.golden.json @@ -44,7 +44,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestCreate.func1.2 in controller/work_item_link_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000005", "reverse_name": "reverse name (e.g. blocked by)", @@ -90,6 +90,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestCreate.func1.2 in controller/work_item_link_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestCreate.func1.2 in controller/work_item_link_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, @@ -170,6 +173,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestCreate.func1.2 in controller/work_item_link_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestCreate.func1.2 in controller/work_item_link_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/work_item_link/list/ok.res.paylpad.golden.json b/controller/test-files/work_item_link/list/ok.res.paylpad.golden.json index 8a79b621b6..604af3b36c 100755 --- a/controller/test-files/work_item_link/list/ok.res.paylpad.golden.json +++ b/controller/test-files/work_item_link/list/ok.res.paylpad.golden.json @@ -46,7 +46,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestList in controller/work_item_link_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000005", "reverse_name": "reverse name (e.g. blocked by)", @@ -92,6 +92,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestList in controller/work_item_link_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestList in controller/work_item_link_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1, @@ -172,6 +175,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestList in controller/work_item_link_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestList in controller/work_item_link_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2, diff --git a/controller/test-files/work_item_link/show/ok.res.payload.golden.json b/controller/test-files/work_item_link/show/ok.res.payload.golden.json index 57f182dce3..8ca0498fa4 100755 --- a/controller/test-files/work_item_link/show/ok.res.payload.golden.json +++ b/controller/test-files/work_item_link/show/ok.res.payload.golden.json @@ -44,7 +44,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestShow.func1.1 in controller/work_item_link_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000005", "reverse_name": "reverse name (e.g. blocked by)", @@ -90,6 +90,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestShow.func1.1 in controller/work_item_link_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestShow.func1.1 in controller/work_item_link_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 1, "system.order": 1000, @@ -170,6 +173,9 @@ { "attributes": { "system.created_at": "0001-01-01T00:00:00Z", + "system.description": "`(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestShow.func1.1 in controller/work_item_link_blackbox_test.go)`", + "system.description.markup": "Markdown", + "system.description.rendered": "\u003cp\u003e\u003ccode\u003e(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkSuite).TestShow.func1.1 in controller/work_item_link_blackbox_test.go)\u003c/code\u003e\u003c/p\u003e\n", "system.metastate": null, "system.number": 2, "system.order": 2000, diff --git a/controller/test-files/work_item_link_category/list/ok.res.payload.golden.json b/controller/test-files/work_item_link_category/list/ok.res.payload.golden.json index 0646a65e0f..0b1f118b26 100755 --- a/controller/test-files/work_item_link_category/list/ok.res.payload.golden.json +++ b/controller/test-files/work_item_link_category/list/ok.res.payload.golden.json @@ -28,7 +28,7 @@ }, { "attributes": { - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkCategorySuite).TestList.func1 in controller/work_item_link_category_blackbox_test.go)", "name": "link category 00000000-0000-0000-0000-000000000003", "version": 0 }, @@ -41,7 +41,7 @@ }, { "attributes": { - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkCategorySuite).TestList.func1 in controller/work_item_link_category_blackbox_test.go)", "name": "link category 00000000-0000-0000-0000-000000000005", "version": 0 }, diff --git a/controller/test-files/work_item_link_category/show/ok.res.payload.golden.json b/controller/test-files/work_item_link_category/show/ok.res.payload.golden.json index ae4b4fbbcb..6ad1160cb3 100755 --- a/controller/test-files/work_item_link_category/show/ok.res.payload.golden.json +++ b/controller/test-files/work_item_link_category/show/ok.res.payload.golden.json @@ -1,7 +1,7 @@ { "data": { "attributes": { - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkCategorySuite).TestShow.func1 in controller/work_item_link_category_blackbox_test.go)", "name": "link category 00000000-0000-0000-0000-000000000001", "version": 0 }, diff --git a/controller/test-files/work_item_link_type/list/ok.res.payload.golden.json b/controller/test-files/work_item_link_type/list/ok.res.payload.golden.json index 3e0e914c31..f8d0487f22 100755 --- a/controller/test-files/work_item_link_type/list/ok.res.payload.golden.json +++ b/controller/test-files/work_item_link_type/list/ok.res.payload.golden.json @@ -159,7 +159,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypesSuite).TestList in controller/work_item_link_types_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000007", "reverse_name": "reverse name (e.g. blocked by)", @@ -209,7 +209,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypesSuite).TestList in controller/work_item_link_types_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000011", "reverse_name": "reverse name (e.g. blocked by)", diff --git a/controller/test-files/work_item_link_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json b/controller/test-files/work_item_link_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json index 3e0e914c31..f8d0487f22 100755 --- a/controller/test-files/work_item_link_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json +++ b/controller/test-files/work_item_link_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json @@ -159,7 +159,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypesSuite).TestList in controller/work_item_link_types_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000007", "reverse_name": "reverse name (e.g. blocked by)", @@ -209,7 +209,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypesSuite).TestList in controller/work_item_link_types_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000011", "reverse_name": "reverse name (e.g. blocked by)", diff --git a/controller/test-files/work_item_link_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json b/controller/test-files/work_item_link_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json index 3e0e914c31..f8d0487f22 100755 --- a/controller/test-files/work_item_link_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json +++ b/controller/test-files/work_item_link_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json @@ -159,7 +159,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypesSuite).TestList in controller/work_item_link_types_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000007", "reverse_name": "reverse name (e.g. blocked by)", @@ -209,7 +209,7 @@ { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypesSuite).TestList in controller/work_item_link_types_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000011", "reverse_name": "reverse name (e.g. blocked by)", diff --git a/controller/test-files/work_item_link_type/show/ok.res.payload.golden.json b/controller/test-files/work_item_link_type/show/ok.res.payload.golden.json index ac0b76f6d2..a4bfe7d284 100755 --- a/controller/test-files/work_item_link_type/show/ok.res.payload.golden.json +++ b/controller/test-files/work_item_link_type/show/ok.res.payload.golden.json @@ -2,7 +2,7 @@ "data": { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypeSuite).TestShow in controller/work_item_link_type_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000001", "reverse_name": "reverse name (e.g. blocked by)", diff --git a/controller/test-files/work_item_link_type/show/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json b/controller/test-files/work_item_link_type/show/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json index ac0b76f6d2..a4bfe7d284 100755 --- a/controller/test-files/work_item_link_type/show/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json +++ b/controller/test-files/work_item_link_type/show/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json @@ -2,7 +2,7 @@ "data": { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypeSuite).TestShow in controller/work_item_link_type_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000001", "reverse_name": "reverse name (e.g. blocked by)", diff --git a/controller/test-files/work_item_link_type/show/ok_using_expired_ifnonematch_header.res.payload.golden.json b/controller/test-files/work_item_link_type/show/ok_using_expired_ifnonematch_header.res.payload.golden.json index ac0b76f6d2..a4bfe7d284 100755 --- a/controller/test-files/work_item_link_type/show/ok_using_expired_ifnonematch_header.res.payload.golden.json +++ b/controller/test-files/work_item_link_type/show/ok_using_expired_ifnonematch_header.res.payload.golden.json @@ -2,7 +2,7 @@ "data": { "attributes": { "created-at": "0001-01-01T00:00:00Z", - "description": "some description", + "description": "some description (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemLinkTypeSuite).TestShow in controller/work_item_link_type_blackbox_test.go)", "forward_name": "forward name (e.g. blocks)", "name": "work item link type 00000000-0000-0000-0000-000000000001", "reverse_name": "reverse name (e.g. blocked by)", diff --git a/controller/test-files/work_item_type/list/ok.res.payload.golden.json b/controller/test-files/work_item_type/list/ok.res.payload.golden.json index 54f29b4d3f..992dba3693 100755 --- a/controller/test-files/work_item_type/list/ok.res.payload.golden.json +++ b/controller/test-files/work_item_type/list/ok.res.payload.golden.json @@ -4,7 +4,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypesSuite).TestList in controller/workitemtypes_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", @@ -188,7 +188,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypesSuite).TestList in controller/workitemtypes_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json b/controller/test-files/work_item_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json index 54f29b4d3f..992dba3693 100755 --- a/controller/test-files/work_item_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json +++ b/controller/test-files/work_item_type/list/ok_using_expired_ifmodifiedsince_header.res.payload.golden.json @@ -4,7 +4,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypesSuite).TestList in controller/workitemtypes_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", @@ -188,7 +188,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypesSuite).TestList in controller/workitemtypes_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json b/controller/test-files/work_item_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json index 54f29b4d3f..992dba3693 100755 --- a/controller/test-files/work_item_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json +++ b/controller/test-files/work_item_type/list/ok_using_expired_ifnonematch_header.res.payload.golden.json @@ -4,7 +4,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypesSuite).TestList in controller/workitemtypes_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", @@ -188,7 +188,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypesSuite).TestList in controller/workitemtypes_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item_type/show/ok.wit.golden.json b/controller/test-files/work_item_type/show/ok.wit.golden.json index 0f7122f82e..11a12f86ae 100755 --- a/controller/test-files/work_item_type/show/ok.wit.golden.json +++ b/controller/test-files/work_item_type/show/ok.wit.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypeSuite).TestShow in controller/workitemtype_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item_type/show/ok_using_expired_etag_header.wit.golden.json b/controller/test-files/work_item_type/show/ok_using_expired_etag_header.wit.golden.json index 0f7122f82e..11a12f86ae 100755 --- a/controller/test-files/work_item_type/show/ok_using_expired_etag_header.wit.golden.json +++ b/controller/test-files/work_item_type/show/ok_using_expired_etag_header.wit.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypeSuite).TestShow in controller/workitemtype_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item_type/show/ok_using_expired_lastmodified_header.wit.golden.json b/controller/test-files/work_item_type/show/ok_using_expired_lastmodified_header.wit.golden.json index 0f7122f82e..11a12f86ae 100755 --- a/controller/test-files/work_item_type/show/ok_using_expired_lastmodified_header.wit.golden.json +++ b/controller/test-files/work_item_type/show/ok_using_expired_lastmodified_header.wit.golden.json @@ -3,7 +3,7 @@ "attributes": { "can-construct": true, "created-at": "0001-01-01T00:00:00Z", - "description": "this work item type was automatically generated", + "description": "this work item type was automatically generated (see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypeSuite).TestShow in controller/workitemtype_blackbox_test.go)", "fields": { "system.area": { "description": "The area to which the work item belongs", diff --git a/controller/test-files/work_item_type_group/list/ok_generated_template.payload.golden.json b/controller/test-files/work_item_type_group/list/ok_generated_template.payload.golden.json index 7e0a797cce..64ed9cc8d4 100755 --- a/controller/test-files/work_item_type_group/list/ok_generated_template.payload.golden.json +++ b/controller/test-files/work_item_type_group/list/ok_generated_template.payload.golden.json @@ -4,6 +4,7 @@ "attributes": { "bucket": "portfolio", "created-at": "0001-01-01T00:00:00Z", + "description": "(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypeGroupSuite).TestList.func1 in controller/work_item_type_group_blackbox_test.go)", "icon": "fa fa-suitcase", "name": "work item type group 00000000-0000-0000-0000-000000000001", "show-in-sidebar": true, @@ -35,6 +36,7 @@ "attributes": { "bucket": "portfolio", "created-at": "0001-01-01T00:00:00Z", + "description": "(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypeGroupSuite).TestList.func1 in controller/work_item_type_group_blackbox_test.go)", "icon": "fa fa-suitcase", "name": "work item type group 00000000-0000-0000-0000-000000000005", "show-in-sidebar": true, @@ -66,6 +68,7 @@ "attributes": { "bucket": "portfolio", "created-at": "0001-01-01T00:00:00Z", + "description": "(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypeGroupSuite).TestList.func1 in controller/work_item_type_group_blackbox_test.go)", "icon": "fa fa-suitcase", "name": "work item type group 00000000-0000-0000-0000-000000000007", "show-in-sidebar": true, diff --git a/controller/test-files/work_item_type_group/show/ok.witg.golden.json b/controller/test-files/work_item_type_group/show/ok.witg.golden.json index 0250a6b0b5..fe32850093 100755 --- a/controller/test-files/work_item_type_group/show/ok.witg.golden.json +++ b/controller/test-files/work_item_type_group/show/ok.witg.golden.json @@ -3,6 +3,7 @@ "attributes": { "bucket": "portfolio", "created-at": "0001-01-01T00:00:00Z", + "description": "(see function github.com/fabric8-services/fabric8-wit/controller_test.(*workItemTypeGroupSuite).TestShow.func1 in controller/work_item_type_group_blackbox_test.go)", "icon": "fa fa-suitcase", "name": "work item type group 00000000-0000-0000-0000-000000000001", "show-in-sidebar": true, diff --git a/controller/work_item_link_blackbox_test.go b/controller/work_item_link_blackbox_test.go index b07e7b7815..cac98e15fd 100644 --- a/controller/work_item_link_blackbox_test.go +++ b/controller/work_item_link_blackbox_test.go @@ -111,10 +111,12 @@ func (s *workItemLinkSuite) TestCreate() { s.T().Run(http.StatusText(http.StatusOK), func(t *testing.T) { // helper function used in all ok-cases - createOK := func(t *testing.T, fxt *tf.TestFixture, svc *goa.Service, ctrl *WorkItemLinkController) { + createOK := func(t *testing.T, fxt *tf.TestFixture, svc *goa.Service, ctrl *WorkItemLinkController, compareGoldenFile bool) { // when createPayload := newCreateWorkItemLinkPayload(fxt.WorkItems[0].ID, fxt.WorkItems[1].ID, fxt.WorkItemLinkTypes[0].ID) - compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "create", "ok.req.payload.golden.json"), createPayload) + if compareGoldenFile { + compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "create", "ok.req.payload.golden.json"), createPayload) + } res, workItemLink := test.CreateWorkItemLinkCreated(t, svc.Context, svc, ctrl, createPayload) // then require.NotNil(t, workItemLink) @@ -148,27 +150,29 @@ func (s *workItemLinkSuite) TestCreate() { } require.Empty(t, 0, expectedIDs, "these elements where missing from the included objects: %+v", expectedIDs) - compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "create", "ok.res.payload.golden.json"), workItemLink) - res.Header().Set("Etag", "0icd7ov5CqwDXN6Fx9z18g==") // overwrite Etag to always match - compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "create", "ok.res.headers.golden.json"), res) + if compareGoldenFile { + compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "create", "ok.res.payload.golden.json"), workItemLink) + res.Header().Set("Etag", "0icd7ov5CqwDXN6Fx9z18g==") // overwrite Etag to always match + compareWithGoldenAgnostic(t, filepath.Join(s.testDir, "create", "ok.res.headers.golden.json"), res) + } } t.Run("as space owner", func(t *testing.T) { fxt := tf.NewTestFixture(t, s.DB, tf.CreateWorkItemEnvironment(), tf.WorkItems(4), tf.WorkItemLinkTypes(1)) svc, ctrl := s.SecuredController(*fxt.Identities[0]) - createOK(t, fxt, svc, ctrl) + createOK(t, fxt, svc, ctrl, true) }) t.Run("as space collaborator", func(t *testing.T) { fxt := tf.NewTestFixture(t, s.DB, tf.CreateWorkItemEnvironment(), tf.WorkItems(4), tf.WorkItemLinkTypes(1), tf.Identities(2, tf.SetIdentityUsernames("owner", "collaborator"))) svc := testsupport.ServiceAsSpaceUser("TestWorkItem-Service", *fxt.IdentityByUsername("collaborator"), &TestSpaceAuthzService{*fxt.IdentityByUsername("collaborator"), ""}) ctrl := NewWorkItemLinkController(svc, s.GormDB, s.Configuration) - createOK(t, fxt, svc, ctrl) + createOK(t, fxt, svc, ctrl, false) }) t.Run("as non-owner and non-collaborator", func(t *testing.T) { fxt := tf.NewTestFixture(t, s.DB, tf.CreateWorkItemEnvironment(), tf.WorkItems(4), tf.WorkItemLinkTypes(1), tf.Identities(2, tf.SetIdentityUsernames("alice", "bob"))) svc := testsupport.ServiceAsUser("TestWorkItem-Service", *fxt.IdentityByUsername("bob")) ctrl := NewWorkItemLinkController(svc, s.GormDB, s.Configuration) - createOK(t, fxt, svc, ctrl) + createOK(t, fxt, svc, ctrl, false) }) }) s.T().Run(http.StatusText(http.StatusUnauthorized), func(t *testing.T) { diff --git a/controller/workitem_whitebox_test.go b/controller/workitem_whitebox_test.go index 47256eadab..7168bb5aef 100644 --- a/controller/workitem_whitebox_test.go +++ b/controller/workitem_whitebox_test.go @@ -311,7 +311,9 @@ func (rest *TestWorkItemREST) TestConvertWorkItems() { for i, converted := range convertedWIs { require.Equal(t, fxt.WorkItems[i].ID, *converted.ID) require.Equal(t, fxt.WorkItems[i].Fields[workitem.SystemTitle], converted.Attributes[workitem.SystemTitle]) - require.Equal(t, fxt.WorkItems[i].Fields[workitem.SystemDescription], converted.Attributes[workitem.SystemDescription]) + content, ok := fxt.WorkItems[i].Fields[workitem.SystemDescription].(rendering.MarkupContent) + require.True(t, ok, "description is not a rendering.MarkupContent: %+v", fxt.WorkItems[i].Fields[workitem.SystemDescription]) + require.Equal(t, content.Content, converted.Attributes[workitem.SystemDescription]) } }) rest.T().Run("length mismatch", func(t *testing.T) { diff --git a/test/testfixture/make_functions.go b/test/testfixture/make_functions.go index ca4c48ba09..e69ad0d8c0 100644 --- a/test/testfixture/make_functions.go +++ b/test/testfixture/make_functions.go @@ -6,19 +6,18 @@ import ( "runtime" "strings" - "github.com/fabric8-services/fabric8-wit/ptr" - "github.com/fabric8-services/fabric8-wit/spacetemplate" - "github.com/fabric8-services/fabric8-wit/account" "github.com/fabric8-services/fabric8-wit/area" "github.com/fabric8-services/fabric8-wit/codebase" "github.com/fabric8-services/fabric8-wit/comment" "github.com/fabric8-services/fabric8-wit/iteration" "github.com/fabric8-services/fabric8-wit/label" + "github.com/fabric8-services/fabric8-wit/ptr" "github.com/fabric8-services/fabric8-wit/query" "github.com/fabric8-services/fabric8-wit/remoteworkitem" "github.com/fabric8-services/fabric8-wit/rendering" "github.com/fabric8-services/fabric8-wit/space" + "github.com/fabric8-services/fabric8-wit/spacetemplate" testsupport "github.com/fabric8-services/fabric8-wit/test" "github.com/fabric8-services/fabric8-wit/workitem" "github.com/fabric8-services/fabric8-wit/workitem/link" @@ -105,10 +104,9 @@ func makeWorkItemLinkCategories(fxt *TestFixture) error { fxt.WorkItemLinkCategories = make([]*link.WorkItemLinkCategory, fxt.info[kindWorkItemLinkCategories].numInstances) wilcRepo := link.NewWorkItemLinkCategoryRepository(fxt.db) for i := range fxt.WorkItemLinkCategories { - desc := "some description" fxt.WorkItemLinkCategories[i] = &link.WorkItemLinkCategory{ Name: testsupport.CreateRandomValidTestName("link category "), - Description: &desc, + Description: ptr.String("some description " + GetTestFileAndFunc()), } if err := fxt.runCustomizeEntityFuncs(i, kindWorkItemLinkCategories); err != nil { return errs.WithStack(err) @@ -128,12 +126,13 @@ func makeSpaceTemplates(fxt *TestFixture) error { } fxt.SpaceTemplates = make([]*spacetemplate.SpaceTemplate, fxt.info[kindSpaceTemplates].numInstances) spaceTemplateRepo := spacetemplate.NewRepository(fxt.db) + for i := range fxt.SpaceTemplates { fxt.SpaceTemplates[i] = &spacetemplate.SpaceTemplate{ Name: testsupport.CreateRandomValidTestName("space template "), CanConstruct: true, } - fxt.SpaceTemplates[i].Description = ptr.String("Description for " + fxt.SpaceTemplates[i].Name) + fxt.SpaceTemplates[i].Description = ptr.String("Description for " + fxt.SpaceTemplates[i].Name + " " + GetTestFileAndFunc()) if err := fxt.runCustomizeEntityFuncs(i, kindSpaceTemplates); err != nil { return errs.WithStack(err) @@ -188,10 +187,9 @@ func makeWorkItemLinkTypes(fxt *TestFixture) error { fxt.WorkItemLinkTypes = make([]*link.WorkItemLinkType, fxt.info[kindWorkItemLinkTypes].numInstances) wiltRepo := link.NewWorkItemLinkTypeRepository(fxt.db) for i := range fxt.WorkItemLinkTypes { - desc := "some description" fxt.WorkItemLinkTypes[i] = &link.WorkItemLinkType{ Name: testsupport.CreateRandomValidTestName("work item link type "), - Description: &desc, + Description: ptr.String("some description " + GetTestFileAndFunc()), Topology: link.TopologyTree, ForwardName: "forward name (e.g. blocks)", ReverseName: "reverse name (e.g. blocked by)", @@ -227,10 +225,9 @@ func makeIterations(fxt *TestFixture) error { fxt.Iterations = make([]*iteration.Iteration, fxt.info[kindIterations].numInstances) iterationRepo := iteration.NewIterationRepository(fxt.db) for i := range fxt.Iterations { - desc := "Some description" fxt.Iterations[i] = &iteration.Iteration{ Name: testsupport.CreateRandomValidTestName("iteration "), - Description: &desc, + Description: ptr.String("some description " + GetTestFileAndFunc()), } if !fxt.isolatedCreation { fxt.Iterations[i].SpaceID = fxt.Spaces[0].ID @@ -324,7 +321,7 @@ func makeWorkItemTypes(fxt *TestFixture) error { fxt.WorkItemTypes[i] = &workitem.WorkItemType{ ID: uuid.NewV4(), Name: testsupport.CreateRandomValidTestName("work item type "), - Description: ptr.String("this work item type was automatically generated"), + Description: ptr.String("this work item type was automatically generated " + GetTestFileAndFunc()), Icon: "fa-bug", Extends: workitem.SystemPlannerItem, CanConstruct: true, @@ -358,11 +355,12 @@ func makeWorkItemTypeGroups(fxt *TestFixture) error { witgRepo := workitem.NewWorkItemTypeGroupRepository(fxt.db) for i := range fxt.WorkItemTypeGroups { fxt.WorkItemTypeGroups[i] = &workitem.WorkItemTypeGroup{ - ID: uuid.NewV4(), - Name: testsupport.CreateRandomValidTestName("work item type group "), - Bucket: workitem.BucketPortfolio, - Icon: "fa fa-suitcase", - Position: i, + ID: uuid.NewV4(), + Name: testsupport.CreateRandomValidTestName("work item type group "), + Description: ptr.String(GetTestFileAndFunc()), + Bucket: workitem.BucketPortfolio, + Icon: "fa fa-suitcase", + Position: i, } if !fxt.isolatedCreation { fxt.WorkItemTypeGroups[i].TypeList = append(fxt.WorkItemTypeGroups[i].TypeList, fxt.WorkItemTypes[0].ID) @@ -470,8 +468,9 @@ func makeWorkItems(fxt *TestFixture) error { for i := range fxt.WorkItems { fxt.WorkItems[i] = &workitem.WorkItem{ Fields: map[string]interface{}{ - workitem.SystemTitle: testsupport.CreateRandomValidTestName("work item "), - workitem.SystemState: workitem.SystemStateNew, + workitem.SystemTitle: testsupport.CreateRandomValidTestName("work item "), + workitem.SystemState: workitem.SystemStateNew, + workitem.SystemDescription: rendering.NewMarkupContent("`"+GetTestFileAndFunc()+"`", rendering.SystemMarkupMarkdown), }, } if !fxt.isolatedCreation { @@ -578,7 +577,7 @@ func makeComments(fxt *TestFixture) error { quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, - sunt in culpa qui officia deserunt mollit anim id est laborum.` + sunt in culpa qui officia deserunt mollit anim id est laborum. ` + GetTestFileAndFunc() fxt.Comments[i] = &comment.Comment{ Markup: rendering.SystemMarkupMarkdown, Body: loremIpsum,