From 9ce13926ff94ab8bf7f463c4c5cf7c3481b485f7 Mon Sep 17 00:00:00 2001 From: Bryan Florkiewicz Date: Thu, 26 Sep 2024 18:05:06 -0400 Subject: [PATCH] [Do Not Merge] Bump sleep to 180 seconds for cachebuster --- controllers/reconcile.go | 2 +- tests/e2e/cachebust/02-assert.yaml | 4 ++-- tests/e2e/cachebust/04-assert.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/controllers/reconcile.go b/controllers/reconcile.go index 20bd51c3..49aff262 100644 --- a/controllers/reconcile.go +++ b/controllers/reconcile.go @@ -302,7 +302,7 @@ func (r *FrontendReconciliation) populateCacheBustContainer(j *batchv1.Job) erro pathsToCacheBust := createCachePurgePathList(r.Frontend, r.FrontendEnvironment) // Construct the akamai cache bust command - command := fmt.Sprintf("sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete %s", strings.Join(pathsToCacheBust, " ")) + command := fmt.Sprintf("sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete %s", strings.Join(pathsToCacheBust, " ")) // Modify the obejct to set the things we care about cacheBustContainer := v1.Container{ diff --git a/tests/e2e/cachebust/02-assert.yaml b/tests/e2e/cachebust/02-assert.yaml index bb3e8d1d..0e49f5b3 100644 --- a/tests/e2e/cachebust/02-assert.yaml +++ b/tests/e2e/cachebust/02-assert.yaml @@ -69,7 +69,7 @@ spec: command: - /bin/bash - '-c' - - 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html' + - 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html' resources: {} volumeMounts: - name: akamai-edgerc @@ -148,7 +148,7 @@ spec: command: - /bin/bash - '-c' - - 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json' + - 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json' resources: {} volumeMounts: - name: akamai-edgerc diff --git a/tests/e2e/cachebust/04-assert.yaml b/tests/e2e/cachebust/04-assert.yaml index 203770a0..a6d9690a 100644 --- a/tests/e2e/cachebust/04-assert.yaml +++ b/tests/e2e/cachebust/04-assert.yaml @@ -69,7 +69,7 @@ spec: command: - /bin/bash - '-c' - - 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html' + - 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/config/chrome/fed-modules.json https://console.doesntexist.redhat.com/apps/chrome/index.html' resources: {} volumeMounts: - name: akamai-edgerc @@ -148,7 +148,7 @@ spec: command: - /bin/bash - '-c' - - 'sleep 60; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json' + - 'sleep 180; /cli/.akamai-cli/src/cli-purge/bin/akamai-purge --edgerc /opt/app-root/edgerc delete https://console.doesntexist.redhat.com/apps/chrome-test-defaults/fed-mods.json' resources: {} volumeMounts: - name: akamai-edgerc