diff options
author | Fabio Pitino <fpitino@gitlab.com> | 2019-05-21 09:21:53 +0000 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-05-21 09:21:53 +0000 |
commit | cef8d1d40847322a8cce3fdeb6f353ebfd298193 (patch) | |
tree | 30f3c6156f17af569890de8a7d523636535bb1f1 /spec | |
parent | ea7b10cd57f5c4f1739725eff79c1d340ece7a15 (diff) | |
download | gitlab-ce-cef8d1d40847322a8cce3fdeb6f353ebfd298193.tar.gz |
Add allow_failure attribute to Job API
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50813
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fixtures/api/schemas/public_api/v4/job.json | 1 | ||||
-rw-r--r-- | spec/requests/api/jobs_spec.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/spec/fixtures/api/schemas/public_api/v4/job.json b/spec/fixtures/api/schemas/public_api/v4/job.json index 454935422a0..c038ae0a664 100644 --- a/spec/fixtures/api/schemas/public_api/v4/job.json +++ b/spec/fixtures/api/schemas/public_api/v4/job.json @@ -28,6 +28,7 @@ "ref": { "type": "string" }, "tag": { "type": "boolean" }, "coverage": { "type": ["number", "null"] }, + "allow_failure": { "type": "boolean" }, "created_at": { "type": "string" }, "started_at": { "type": ["null", "string"] }, "finished_at": { "type": ["null", "string"] }, diff --git a/spec/requests/api/jobs_spec.rb b/spec/requests/api/jobs_spec.rb index c14507de186..43462913497 100644 --- a/spec/requests/api/jobs_spec.rb +++ b/spec/requests/api/jobs_spec.rb @@ -286,6 +286,7 @@ describe API::Jobs do expect(json_response['ref']).to eq(job.ref) expect(json_response['tag']).to eq(job.tag) expect(json_response['coverage']).to eq(job.coverage) + expect(json_response['allow_failure']).to eq(job.allow_failure) expect(Time.parse(json_response['created_at'])).to be_like_time(job.created_at) expect(Time.parse(json_response['started_at'])).to be_like_time(job.started_at) expect(Time.parse(json_response['finished_at'])).to be_like_time(job.finished_at) |