diff options
| author | Walmyr Lima <walmyr@gitlab.com> | 2019-06-13 14:52:48 +0200 |
|---|---|---|
| committer | Walmyr Lima <walmyr@gitlab.com> | 2019-06-13 14:52:50 +0200 |
| commit | e29f1f39a507190fa2a51d0a61ae6a0d5a0aad83 (patch) | |
| tree | bb8cc8718fa9ec675c3d78ab1bac8ebd2abbb463 | |
| parent | e408d150f9027ff4f934aa4ccfeb59b0cc9d0965 (diff) | |
| download | gitlab-ce-e29f1f39a507190fa2a51d0a61ae6a0d5a0aad83.tar.gz | |
Update issue resource with missing attribute
Also, update the documentation in accordance with the change.
| -rw-r--r-- | doc/development/testing_guide/end_to_end/quick_start_guide.md | 8 | ||||
| -rw-r--r-- | qa/qa/resource/issue.rb | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/development/testing_guide/end_to_end/quick_start_guide.md b/doc/development/testing_guide/end_to_end/quick_start_guide.md index 521e3e56e7a..5520cc021db 100644 --- a/doc/development/testing_guide/end_to_end/quick_start_guide.md +++ b/doc/development/testing_guide/end_to_end/quick_start_guide.md @@ -357,13 +357,13 @@ In the following we describe the changes needed in each of the resource files me Now, let's make it possible to create an issue resource through the API. -First, in the [issue resource](https://gitlab.com/gitlab-org/gitlab-ee/blob/d3584e80b4236acdf393d815d604801573af72cc/qa/qa/resource/issue.rb), let's expose its labels attribute. +First, in the [issue resource](https://gitlab.com/gitlab-org/gitlab-ee/blob/d3584e80b4236acdf393d815d604801573af72cc/qa/qa/resource/issue.rb), let's expose its id and labels attributes. -Add the following `attribute :labels` right above the [`attribute :title`](https://gitlab.com/gitlab-org/gitlab-ee/blob/d3584e80b4236acdf393d815d604801573af72cc/qa/qa/resource/issue.rb#L15). +Add the following `attribute :id` and `attribute :labels` right above the [`attribute :title`](https://gitlab.com/gitlab-org/gitlab-ee/blob/d3584e80b4236acdf393d815d604801573af72cc/qa/qa/resource/issue.rb#L15). -> This line is needed to allow for labels to be automatically added to an issue when fabricating it via API. +This line is needed to allow for the issue fabrication, and for labels to be automatically added to the issue when fabricating it via API. -> We add the new line above the existing attribute to keep them alphabetically organized. +> We add the attributes above the existing attribute to keep them alphabetically organized. Next, add the following code right below the [`fabricate!`](https://gitlab.com/gitlab-org/gitlab-ee/blob/d3584e80b4236acdf393d815d604801573af72cc/qa/qa/resource/issue.rb#L27) method. diff --git a/qa/qa/resource/issue.rb b/qa/qa/resource/issue.rb index 4246d74fa84..9c57a0f5afb 100644 --- a/qa/qa/resource/issue.rb +++ b/qa/qa/resource/issue.rb @@ -12,6 +12,7 @@ module QA end end + attribute :id attribute :labels attribute :title |
