Skip to content

Commit

Permalink
control-service: check test variables
Browse files Browse the repository at this point in the history
Signed-off-by: mrMoZ1 <[email protected]>
  • Loading branch information
mrMoZ1 committed May 18, 2023
1 parent ba5782b commit cfb3f7c
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ public class TestJobDeployTempCredsIT extends BaseIT {
@Value("${datajobs.docker.repositoryUrl}")
private String dockerRepositoryUrl;

@Value("datajobs.aws.serviceAccountAccessKeyId")
private String iamServiceAccountAccessKeyId;

@Value("datajobs.aws.serviceAccountSecretAccessKey")
private String iamUserServiceAccountSecretAccessKey;

private AWSCredentialsService.AWSCredentialsDTO credentialsDTO;
private AmazonECR ecrClient;
private String repositoryName;
Expand All @@ -98,6 +104,9 @@ public void setup() throws Exception {
String.format(
"/data-jobs/for-team/%s/jobs/%s",
TEST_TEAM_NAME, TEST_JOB_NAME)))));
// Check authentication credentials are filled properly before continuing test.
Assertions.assertFalse(iamServiceAccountAccessKeyId.isBlank());
Assertions.assertFalse(iamUserServiceAccountSecretAccessKey.isBlank());

this.repositoryName = dockerRepositoryUrl + "/" + TEST_JOB_NAME;
this.credentialsDTO = awsCredentialsService.createTemporaryCredentials();
Expand Down

0 comments on commit cfb3f7c

Please sign in to comment.