Simplify set up for tests that covers selective by namespace

It's not necessary to include subgroups. The generated query will
retrieve registries for the namespaces and their descendants.
parent 2ec72ffb
...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryMismatchFinder, :geo do ...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryMismatchFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns mismatch registries where projects belongs to the namespaces' do it 'returns mismatch registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch) expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch)
end end
...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryMismatchFinder, :geo do ...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryMismatchFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns mismatch registries where projects belongs to the namespaces' do it 'returns mismatch registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_mismatch, registry_wiki_mismatch) expect(subject.execute).to contain_exactly(registry_mismatch, registry_wiki_mismatch)
end end
...@@ -83,7 +83,7 @@ describe Geo::LegacyProjectRegistryMismatchFinder, :geo do ...@@ -83,7 +83,7 @@ describe Geo::LegacyProjectRegistryMismatchFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns all mismatch registries where projects belongs to the namespaces' do it 'returns all mismatch registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch, registry_wiki_mismatch) expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch, registry_wiki_mismatch)
end end
......
...@@ -143,7 +143,7 @@ describe Geo::LegacyProjectRegistryPendingVerificationFinder, :geo do ...@@ -143,7 +143,7 @@ describe Geo::LegacyProjectRegistryPendingVerificationFinder, :geo do
registry_outdated_secondary = create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verification_outdated, project: project_2) registry_outdated_secondary = create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verification_outdated, project: project_2)
create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verified, project: project_3) create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verified, project: project_3)
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute) expect(subject.execute)
.to contain_exactly( .to contain_exactly(
......
...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryRetryingVerificationFinder, :geo do ...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryRetryingVerificationFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns registries retrying verification where projects belongs to the namespaces' do it 'returns registries retrying verification where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(retrying_verification, repository_retrying_verification) expect(subject.execute).to contain_exactly(retrying_verification, repository_retrying_verification)
end end
...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryRetryingVerificationFinder, :geo do ...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryRetryingVerificationFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns registries retrying verification where projects belongs to the namespaces' do it 'returns registries retrying verification where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(retrying_verification, wiki_retrying_verification) expect(subject.execute).to contain_exactly(retrying_verification, wiki_retrying_verification)
end end
......
...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistrySyncFailedFinder, :geo do ...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistrySyncFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_failed, registry_repository_failed]) expect(subject.execute).to match_array([registry_failed, registry_repository_failed])
end end
...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistrySyncFailedFinder, :geo do ...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistrySyncFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_failed, registry_wiki_failed]) expect(subject.execute).to match_array([registry_failed, registry_wiki_failed])
end end
...@@ -83,7 +83,7 @@ describe Geo::LegacyProjectRegistrySyncFailedFinder, :geo do ...@@ -83,7 +83,7 @@ describe Geo::LegacyProjectRegistrySyncFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns all failed registries where projects belongs to the namespaces' do it 'returns all failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_failed, registry_repository_failed, registry_wiki_failed]) expect(subject.execute).to match_array([registry_failed, registry_repository_failed, registry_wiki_failed])
end end
......
...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistrySyncedFinder, :geo do ...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistrySyncedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns synced registries where projects belongs to the namespaces' do it 'returns synced registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_synced, registry_wiki_dirty]) expect(subject.execute).to match_array([registry_synced, registry_wiki_dirty])
end end
...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistrySyncedFinder, :geo do ...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistrySyncedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns synced registries where projects belongs to the namespaces' do it 'returns synced registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_synced, registry_repository_dirty]) expect(subject.execute).to match_array([registry_synced, registry_repository_dirty])
end end
......
...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryVerificationFailedFinder, :geo do ...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryVerificationFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed) expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed)
end end
...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryVerificationFailedFinder, :geo do ...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryVerificationFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verification_failed, registry_wiki_verification_failed) expect(subject.execute).to contain_exactly(registry_verification_failed, registry_wiki_verification_failed)
end end
...@@ -83,7 +83,7 @@ describe Geo::LegacyProjectRegistryVerificationFailedFinder, :geo do ...@@ -83,7 +83,7 @@ describe Geo::LegacyProjectRegistryVerificationFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns all failed registries where projects belongs to the namespaces' do it 'returns all failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed, registry_wiki_verification_failed) expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed, registry_wiki_verification_failed)
end end
......
...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryVerifiedFinder, :geo do ...@@ -31,7 +31,7 @@ describe Geo::LegacyProjectRegistryVerifiedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns verified registries where projects belongs to the namespaces' do it 'returns verified registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verified, registry_wiki_verification_failed) expect(subject.execute).to contain_exactly(registry_verified, registry_wiki_verification_failed)
end end
...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryVerifiedFinder, :geo do ...@@ -57,7 +57,7 @@ describe Geo::LegacyProjectRegistryVerifiedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns verified registries where projects belongs to the namespaces' do it 'returns verified registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verified, registry_repository_verification_failed) expect(subject.execute).to contain_exactly(registry_verified, registry_repository_verification_failed)
end end
......
...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryMismatchFinder, :geo do ...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryMismatchFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns mismatch registries where projects belongs to the namespaces' do it 'returns mismatch registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch) expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch)
end end
...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryMismatchFinder, :geo do ...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryMismatchFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns mismatch registries where projects belongs to the namespaces' do it 'returns mismatch registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_mismatch, registry_wiki_mismatch) expect(subject.execute).to contain_exactly(registry_mismatch, registry_wiki_mismatch)
end end
...@@ -89,7 +89,7 @@ describe Geo::ProjectRegistryMismatchFinder, :geo do ...@@ -89,7 +89,7 @@ describe Geo::ProjectRegistryMismatchFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns all mismatch registries where projects belongs to the namespaces' do it 'returns all mismatch registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch, registry_wiki_mismatch) expect(subject.execute).to contain_exactly(registry_mismatch, registry_repository_mismatch, registry_wiki_mismatch)
end end
......
...@@ -149,7 +149,7 @@ describe Geo::ProjectRegistryPendingVerificationFinder, :geo do ...@@ -149,7 +149,7 @@ describe Geo::ProjectRegistryPendingVerificationFinder, :geo do
registry_outdated_secondary = create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verification_outdated, project: project_2) registry_outdated_secondary = create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verification_outdated, project: project_2)
create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verified, project: project_3) create(:geo_project_registry, :synced, :repository_verification_outdated, :wiki_verified, project: project_3)
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute) expect(subject.execute)
.to contain_exactly( .to contain_exactly(
......
...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryRetryingVerificationFinder, :geo do ...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryRetryingVerificationFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns registries retrying verification where projects belongs to the namespaces' do it 'returns registries retrying verification where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(retrying_verification, repository_retrying_verification) expect(subject.execute).to contain_exactly(retrying_verification, repository_retrying_verification)
end end
...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryRetryingVerificationFinder, :geo do ...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryRetryingVerificationFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns registries retrying verification where projects belongs to the namespaces' do it 'returns registries retrying verification where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(retrying_verification, wiki_retrying_verification) expect(subject.execute).to contain_exactly(retrying_verification, wiki_retrying_verification)
end end
......
...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistrySyncFailedFinder, :geo do ...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistrySyncFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_failed, registry_repository_failed]) expect(subject.execute).to match_array([registry_failed, registry_repository_failed])
end end
...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistrySyncFailedFinder, :geo do ...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistrySyncFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_failed, registry_wiki_failed]) expect(subject.execute).to match_array([registry_failed, registry_wiki_failed])
end end
...@@ -89,7 +89,7 @@ describe Geo::ProjectRegistrySyncFailedFinder, :geo do ...@@ -89,7 +89,7 @@ describe Geo::ProjectRegistrySyncFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns all failed registries where projects belongs to the namespaces' do it 'returns all failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_failed, registry_repository_failed, registry_wiki_failed]) expect(subject.execute).to match_array([registry_failed, registry_repository_failed, registry_wiki_failed])
end end
......
...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistrySyncedFinder, :geo do ...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistrySyncedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns synced registries where projects belongs to the namespaces' do it 'returns synced registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_synced, registry_wiki_dirty]) expect(subject.execute).to match_array([registry_synced, registry_wiki_dirty])
end end
...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistrySyncedFinder, :geo do ...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistrySyncedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns synced registries where projects belongs to the namespaces' do it 'returns synced registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to match_array([registry_synced, registry_repository_dirty]) expect(subject.execute).to match_array([registry_synced, registry_repository_dirty])
end end
......
...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryVerificationFailedFinder, :geo do ...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryVerificationFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed) expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed)
end end
...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryVerificationFailedFinder, :geo do ...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryVerificationFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns failed registries where projects belongs to the namespaces' do it 'returns failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verification_failed, registry_wiki_verification_failed) expect(subject.execute).to contain_exactly(registry_verification_failed, registry_wiki_verification_failed)
end end
...@@ -89,7 +89,7 @@ describe Geo::ProjectRegistryVerificationFailedFinder, :geo do ...@@ -89,7 +89,7 @@ describe Geo::ProjectRegistryVerificationFailedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns all failed registries where projects belongs to the namespaces' do it 'returns all failed registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed, registry_wiki_verification_failed) expect(subject.execute).to contain_exactly(registry_verification_failed, registry_repository_verification_failed, registry_wiki_verification_failed)
end end
......
...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryVerifiedFinder, :geo do ...@@ -37,7 +37,7 @@ describe Geo::ProjectRegistryVerifiedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns verified registries where projects belongs to the namespaces' do it 'returns verified registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verified, registry_wiki_verification_failed) expect(subject.execute).to contain_exactly(registry_verified, registry_wiki_verification_failed)
end end
...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryVerifiedFinder, :geo do ...@@ -63,7 +63,7 @@ describe Geo::ProjectRegistryVerifiedFinder, :geo do
context 'with selective sync by namespace' do context 'with selective sync by namespace' do
it 'returns verified registries where projects belongs to the namespaces' do it 'returns verified registries where projects belongs to the namespaces' do
node.update!(selective_sync_type: 'namespaces', namespaces: [group_1, nested_group_1]) node.update!(selective_sync_type: 'namespaces', namespaces: [group_1])
expect(subject.execute).to contain_exactly(registry_verified, registry_repository_verification_failed) expect(subject.execute).to contain_exactly(registry_verified, registry_repository_verification_failed)
end 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