Commit a8b0c4f0 authored by Tiffany Rea's avatar Tiffany Rea

Merge branch 'ml-wait-for-repo-contents-after-mirroring' into 'master'

Wait for mirrored repo contents to appear

See merge request gitlab-org/gitlab!81105
parents f796383f 2c584d77
......@@ -3,7 +3,7 @@
module QA
RSpec.describe 'Create' do
describe 'Push mirror a repository over HTTP' do
it 'configures and syncs LFS objects for a (push) mirrored repository', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347847' do
it 'configures and syncs LFS objects for a (push) mirrored repository', :aggregate_failures, testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347847' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
......@@ -30,14 +30,15 @@ module QA
mirror_settings.authentication_method = 'Password'
mirror_settings.password = Runtime::User.password
mirror_settings.mirror_repository
mirror_settings.update target_project_uri # rubocop:disable Rails/SaveBang
mirror_settings.update(target_project_uri) # rubocop:disable Rails/SaveBang
mirror_settings.verify_update(target_project_uri)
end
end
# Check that the target project has the commit from the source
target_project.visit!
Page::Project::Show.perform do |project_page|
expect(project_page).to have_file('README.md')
expect { project_page.has_file?('README.md') }.to eventually_be_truthy.within(max_duration: 60), "Expected a file named README.md but it did not appear."
expect(project_page).to have_readme_content('The rendered file could not be displayed because it is stored in LFS')
end
end
......
......@@ -25,7 +25,7 @@ module QA
target_project.visit!
end
it 'configures and syncs a (pull) mirrored repository',
it 'configures and syncs a (pull) mirrored repository', :aggregate_failures,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347736',
quarantine: {
only: { subdomain: :staging },
......@@ -77,7 +77,7 @@ module QA
# Check that the target project has the commit from the source
target_project.visit!
Page::Project::Show.perform do |project|
expect(project).to have_file('README.md')
expect { project.has_file?('README.md') }.to eventually_be_truthy.within(max_duration: 60), "Expected a file named README.md but it did not appear."
expect(project).to have_readme_content('This is a pull mirroring test project')
expect(project).to have_text("Mirrored from #{masked_url(source_project_uri)}")
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment