Skip to content

Commit 4d16c65

Browse files
committed
Use different IDs for HYBRID test storage profiles.
1 parent 5a6ef94 commit 4d16c65

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

hub/src/test/java/cloud/katta/core/AbstractHubSynchronizeTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,16 +190,16 @@ public void test01Bootstrapping(final HubTestConfig hubTestConfig) throws Except
190190
.apiStorageprofileGet(false);
191191
// aws static
192192
assertTrue(storageProfileDtos.stream().anyMatch(storageProfileDto -> StorageProfileDtoWrapper.coerce(storageProfileDto).getId().toString()
193-
.equals("72736c19-283c-49d3-80a5-ab74b5202543")));
193+
.startsWith("72736c19-283c-49d3-80a5-ab74b520254")));
194194
// aws sts
195195
assertTrue(storageProfileDtos.stream().anyMatch(storageProfileDto -> StorageProfileDtoWrapper.coerce(storageProfileDto).getId().toString()
196-
.equals("844bd517-96d4-4787-bcfa-238e103149f6")));
196+
.startsWith("844bd517-96d4-4787-bcfa-238e103149f")));
197197
// minio static
198198
assertTrue(storageProfileDtos.stream().anyMatch(storageProfileDto -> StorageProfileDtoWrapper.coerce(storageProfileDto).getId().toString()
199-
.equals("71b910e0-2ecc-46de-a871-8db28549677e")));
199+
.startsWith("71b910e0-2ecc-46de-a871-8db28549677")));
200200
// minio sts
201201
assertTrue(storageProfileDtos.stream().anyMatch(storageProfileDto -> StorageProfileDtoWrapper.coerce(storageProfileDto).getId().toString()
202-
.equals("732d43fa-3716-46c4-b931-66ea5405ef1c")));
202+
.startsWith("732d43fa-3716-46c4-b931-66ea5405ef1")));
203203
}
204204
catch(ApiException e) {
205205
log.error("{} {}", e.getCode(), e.getMessage(), e);

hub/src/test/java/cloud/katta/testsetup/AbstractHubTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,20 @@ public abstract class AbstractHubTest extends VaultTest {
108108

109109

110110
public static final Arguments HYBRID_MINIO_STATIC = prepareArgumentsHybrid.apply(new HubTestConfig.VaultSpec(
111-
"MinIO static", "71B910E0-2ECC-46DE-A871-8DB28549677E", PROPERTIES.get("minio.testing.katta.cloud.handmade_access_user.name"), PROPERTIES.get("minio.testing.katta.cloud.handmade_access_user.password"), "us-east-1"
111+
"MinIO static", "71B910E0-2ECC-46DE-A871-8DB285496779", PROPERTIES.get("minio.testing.katta.cloud.handmade_access_user.name"), PROPERTIES.get("minio.testing.katta.cloud.handmade_access_user.password"), "us-east-1"
112112
));
113113
public static final Arguments HYBRID_MINIO_STS = prepareArgumentsHybrid.apply(new HubTestConfig.VaultSpec(
114-
"MinIO STS", "732D43FA-3716-46C4-B931-66EA5405EF1C", null, null, "eu-central-1"
114+
"MinIO STS", "732D43FA-3716-46C4-B931-66EA5405EF19", null, null, "eu-central-1"
115115
));
116116

117117
public static final Arguments HYBRID_AWS_STATIC = prepareArgumentsHybrid.apply(new HubTestConfig.VaultSpec(
118-
"AWS static", "72736C19-283C-49D3-80A5-AB74B5202543", PROPERTIES.get("handmade2.s3.amazonaws.com.username"), PROPERTIES.get("handmade2.s3.amazonaws.com.password"),
118+
"AWS static", "72736C19-283C-49D3-80A5-AB74B5202549", PROPERTIES.get("handmade2.s3.amazonaws.com.username"), PROPERTIES.get("handmade2.s3.amazonaws.com.password"),
119119
// TODO https://github.com/shift7-ch/katta-server/issues/87
120120
// "eu-north-1"
121121
"us-east-1"
122122
));
123123
public static final Arguments HYBRID_AWS_STS = prepareArgumentsHybrid.apply(new HubTestConfig.VaultSpec(
124-
"AWS STS", "844BD517-96D4-4787-BCFA-238E103149F6", null, null, "eu-west-1"
124+
"AWS STS", "844BD517-96D4-4787-BCFA-238E103149F9", null, null, "eu-west-1"
125125
));
126126

127127
@BeforeEach

hub/src/test/resources/setup/hybrid/aws_static/aws_static_profile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "72736C19-283C-49D3-80A5-AB74B5202543",
2+
"id": "72736C19-283C-49D3-80A5-AB74B5202549",
33
"name": "AWS S3 static",
44
"region": "eu-north-1",
55
"protocol": "S3",

hub/src/test/resources/setup/hybrid/aws_sts/aws_sts_profile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "844BD517-96D4-4787-BCFA-238E103149F6",
2+
"id": "844BD517-96D4-4787-BCFA-238E103149F9",
33
"name": "AWS S3 STS",
44
"bucketPrefix": "katta-test-",
55
"stsRoleArnHub": "arn:aws:iam::430118840017:role/testing.katta.cloud-kc-realms-chipotle-createbucket",

hub/src/test/resources/setup/hybrid/minio_static/minio_static_profile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "71B910E0-2ECC-46DE-A871-8DB28549677E",
2+
"id": "71B910E0-2ECC-46DE-A871-8DB285496779",
33
"name": "MinIO S3 static",
44
"protocol": "S3",
55
"withPathStyleAccessEnabled": "true",

hub/src/test/resources/setup/hybrid/minio_sts/minio_sts_profile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "732D43FA-3716-46C4-B931-66EA5405EF1C",
2+
"id": "732D43FA-3716-46C4-B931-66EA5405EF19",
33
"name": "MinIO S3 STS",
44
"bucketPrefix": "katta-test-",
55
"region": "eu-central-1",

0 commit comments

Comments
 (0)