Skip to content

Commit

Permalink
feat(seeding): adjust seeding from consortia to test
Browse files Browse the repository at this point in the history
Refs: #205
  • Loading branch information
Phil91 committed Aug 23, 2024
1 parent 7232f27 commit 7dae55d
Show file tree
Hide file tree
Showing 19 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion environments/consortia/helm-values/values-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ migrations:
logging:
default: "Debug"
seeding:
testDataEnvironments: "consortia"
testDataEnvironments: "test"

processesworker:
image:
Expand Down
2 changes: 1 addition & 1 deletion environments/consortia/helm-values/values-int.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ migrations:
logging:
default: "Debug"
seeding:
testDataEnvironments: "consortia"
testDataEnvironments: "test"

processesworker:
logging:
Expand Down
2 changes: 1 addition & 1 deletion environments/consortia/helm-values/values-rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ migrations:
logging:
default: "Debug"
seeding:
testDataEnvironments: "consortia"
testDataEnvironments: "test"

processesworker:
image:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ await _container.StartAsync()

var seederOptions = Options.Create(new SeederSettings
{
TestDataEnvironments = new[] { "test" },
TestDataEnvironments = new[] { "unittest" },
DataPaths = new[] { "Seeder/Data" }
});
var insertSeeder = new BatchInsertSeeder(context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ public async Task GetCertificateTypes()
var types = await _client.GetFromJsonAsync<IEnumerable<VerifiedCredentialTypeId>>($"{BaseUrl}/certificateTypes", JsonOptions);

// Assert
types.Should().NotBeNull().And.HaveCount(3).And.Satisfy(
types.Should().NotBeNull().And.HaveCount(2).And.Satisfy(
x => x == VerifiedCredentialTypeId.MEMBERSHIP,
x => x == VerifiedCredentialTypeId.BUSINESS_PARTNER_NUMBER,
x => x == VerifiedCredentialTypeId.FRAMEWORK_AGREEMENT
x => x == VerifiedCredentialTypeId.BUSINESS_PARTNER_NUMBER
);
}

Expand Down

0 comments on commit 7dae55d

Please sign in to comment.