Skip to content

Commit cfb3f7c

Browse files
author
mrMoZ1
committed
control-service: check test variables
Signed-off-by: mrMoZ1 <mzhivkov@vmware.com>
1 parent ba5782b commit cfb3f7c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

projects/control-service/projects/pipelines_control_service/src/integration-test/java/com/vmware/taurus/datajobs/it/TestJobDeployTempCredsIT.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ public class TestJobDeployTempCredsIT extends BaseIT {
7272
@Value("${datajobs.docker.repositoryUrl}")
7373
private String dockerRepositoryUrl;
7474

75+
@Value("datajobs.aws.serviceAccountAccessKeyId")
76+
private String iamServiceAccountAccessKeyId;
77+
78+
@Value("datajobs.aws.serviceAccountSecretAccessKey")
79+
private String iamUserServiceAccountSecretAccessKey;
80+
7581
private AWSCredentialsService.AWSCredentialsDTO credentialsDTO;
7682
private AmazonECR ecrClient;
7783
private String repositoryName;
@@ -98,6 +104,9 @@ public void setup() throws Exception {
98104
String.format(
99105
"/data-jobs/for-team/%s/jobs/%s",
100106
TEST_TEAM_NAME, TEST_JOB_NAME)))));
107+
// Check authentication credentials are filled properly before continuing test.
108+
Assertions.assertFalse(iamServiceAccountAccessKeyId.isBlank());
109+
Assertions.assertFalse(iamUserServiceAccountSecretAccessKey.isBlank());
101110

102111
this.repositoryName = dockerRepositoryUrl + "/" + TEST_JOB_NAME;
103112
this.credentialsDTO = awsCredentialsService.createTemporaryCredentials();

0 commit comments

Comments
 (0)