Skip to content

Commit

Permalink
Clean datadog namespaces before running tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ara Pulido <[email protected]>
  • Loading branch information
arapulido committed Jan 11, 2022
1 parent e52a7d0 commit 09c2fb5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/scalers/datadog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ test.before(t => {
datadogSite = 'datadoghq.com'
}

sh.config.silent = true

sh.exec(`kubectl delete namespace ${datadogNamespace} --force`)
sh.exec(`kubectl delete namespace ${testNamespace} --force`)

sh.exec(`helm repo add datadog ${datadogHelmRepo}`)
sh.exec(`helm repo update`)

sh.config.silent = false

let helmInstallStatus = sh.exec(`helm upgrade \
--install \
--set datadog.apiKey=${datadogApiKey} \
Expand Down

0 comments on commit 09c2fb5

Please sign in to comment.