Skip to content

Commit

Permalink
changed callSampleApp location and removed no-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielzolty committed Oct 31, 2023
1 parent 2e9a5c1 commit 9409631
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/validation/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ resource "null_resource" "validator" {
provisioner "local-exec" {
command = <<-EOT
docker-compose -f ${local.docker_compose_path} down
docker-compose -f ${local.docker_compose_path} build --no-cache
docker-compose -f ${local.docker_compose_path} build
docker-compose -f ${local.docker_compose_path} up --abort-on-container-exit
EOT
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class CWLogValidator implements IValidator {
private JsonSchema schema;
protected String logGroupName;

private ICaller caller;

private Context context;

protected final ObjectMapper mapper = new ObjectMapper();
Expand All @@ -50,6 +52,7 @@ public void init(
FileConfig expectedDataTemplate)
throws Exception {
this.context = context;
this.caller = caller;
cloudWatchService = new CloudWatchService(context.getRegion());
logGroupName = String.format(LOGGROUPPATH, context.getTestingId());
MustacheHelper mustacheHelper = new MustacheHelper();
Expand All @@ -61,11 +64,11 @@ public void init(
.freeze();
JsonSchema jsonSchema = jsonSchemaFactory.getJsonSchema(jsonNode);
this.schema = jsonSchema;
caller.callSampleApp();
}

@Override
public void validate() throws Exception {
caller.callSampleApp();
RetryHelper.retry(
getMaxRetryCount(),
CHECK_INTERVAL_IN_MILLI,
Expand Down

0 comments on commit 9409631

Please sign in to comment.