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 9304c5b commit 43ce4d1
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 43ce4d1

Please sign in to comment.