diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-08 00:32:37 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-01-08 00:32:37 +0000 |
commit | 469a50879c1085ec77c95d650b7f135fee2c9e13 (patch) | |
tree | 0d639a63294b5abdb4e4a7bf1ed5a497d5e6869f /spec/features | |
parent | aa5ca44f172f02f04cca448b1f9c17d6d933de40 (diff) | |
download | gitlab-ce-469a50879c1085ec77c95d650b7f135fee2c9e13.tar.gz |
Add latest changes from gitlab-org/gitlab@13-7-stable-ee
Diffstat (limited to 'spec/features')
5 files changed, 22 insertions, 4 deletions
diff --git a/spec/features/projects/container_registry_spec.rb b/spec/features/projects/container_registry_spec.rb index ee453aa7bbf..d0ad6668c07 100644 --- a/spec/features/projects/container_registry_spec.rb +++ b/spec/features/projects/container_registry_spec.rb @@ -3,6 +3,8 @@ require 'spec_helper' RSpec.describe 'Container Registry', :js do + include_context 'container registry tags' + let(:user) { create(:user) } let(:project) { create(:project) } @@ -99,6 +101,20 @@ RSpec.describe 'Container Registry', :js do expect(page).to have_content '20' end end + + describe 'with a tag missing digest' do + before do + stub_container_registry_tags(repository: %r{my/image}, tags: %w[latest stable]) + stub_next_container_registry_tags_call(:digest, nil) + visit_container_registry_details 'my/image' + end + + it 'renders the tags list correctly' do + expect(page).to have_content('latest') + expect(page).to have_content('stable') + expect(page).to have_content('Digest: N/A') + end + end end describe 'image repo details when image has no name' do diff --git a/spec/features/projects/jobs_spec.rb b/spec/features/projects/jobs_spec.rb index 4edda9febbe..1557a8a2d72 100644 --- a/spec/features/projects/jobs_spec.rb +++ b/spec/features/projects/jobs_spec.rb @@ -1212,9 +1212,11 @@ RSpec.describe 'Jobs', :clean_gitlab_redis_shared_state do end describe "GET /:project/jobs/:id/trace.json" do + let(:build) { create(:ci_build, :trace_artifact, pipeline: pipeline) } + context "Job from project" do before do - visit trace_project_job_path(project, job, format: :json) + visit trace_project_job_path(project, build, format: :json) end it { expect(page.status_code).to eq(200) } diff --git a/spec/features/security/project/internal_access_spec.rb b/spec/features/security/project/internal_access_spec.rb index cb9f9a6e680..2440b738db3 100644 --- a/spec/features/security/project/internal_access_spec.rb +++ b/spec/features/security/project/internal_access_spec.rb @@ -430,7 +430,7 @@ RSpec.describe "Internal Project Access" do describe 'GET /:project_path/builds/:id/trace' do let(:pipeline) { create(:ci_pipeline, project: project) } - let(:build) { create(:ci_build, pipeline: pipeline) } + let(:build) { create(:ci_build, :trace_artifact, pipeline: pipeline) } subject { trace_project_job_path(project, build.id) } diff --git a/spec/features/security/project/private_access_spec.rb b/spec/features/security/project/private_access_spec.rb index dda218c5de5..9d3109b92e6 100644 --- a/spec/features/security/project/private_access_spec.rb +++ b/spec/features/security/project/private_access_spec.rb @@ -423,7 +423,7 @@ RSpec.describe "Private Project Access" do describe 'GET /:project_path/builds/:id/trace' do let(:pipeline) { create(:ci_pipeline, project: project) } - let(:build) { create(:ci_build, pipeline: pipeline) } + let(:build) { create(:ci_build, :trace_artifact, pipeline: pipeline) } subject { trace_project_job_path(project, build.id) } diff --git a/spec/features/security/project/public_access_spec.rb b/spec/features/security/project/public_access_spec.rb index f2dbab72a48..28a1f1cda7f 100644 --- a/spec/features/security/project/public_access_spec.rb +++ b/spec/features/security/project/public_access_spec.rb @@ -238,7 +238,7 @@ RSpec.describe "Public Project Access" do describe 'GET /:project_path/builds/:id/trace' do let(:pipeline) { create(:ci_pipeline, project: project) } - let(:build) { create(:ci_build, pipeline: pipeline) } + let(:build) { create(:ci_build, :trace_artifact, pipeline: pipeline) } subject { trace_project_job_path(project, build.id) } |