Skip to content

Commit

Permalink
Remove Trailing Whitespaces
Browse files Browse the repository at this point in the history
Signed-off-by: jorturfer <jorge_turrado@hotmail.es>
  • Loading branch information
JorTurFer committed Aug 4, 2021
1 parent 419582b commit 863a075
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/scalers/kubernetes-workload.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ test.serial(`Deployment should scale to fit the amount of pods which match the s
`kubectl scale deployment.apps/monitored-deployment --namespace ${testNamespace} --replicas=5`
)
t.true(await waitForDeploymentReplicaCount(5, 'sut-deployment', testNamespace, 6, 10000), 'Replica count should be 5 after 60 seconds')

sh.exec(
`kubectl scale deployment.apps/monitored-deployment --namespace ${testNamespace} --replicas=10`
)
t.true(await waitForDeploymentReplicaCount(10, 'sut-deployment', testNamespace, 6, 10000), 'Replica count should be 10 after 60 seconds')

sh.exec(
`kubectl scale deployment.apps/monitored-deployment --namespace ${testNamespace} --replicas=5`
)
t.true(await waitForDeploymentReplicaCount(5, 'sut-deployment', testNamespace, 6, 10000), 'Replica count should be 5 after 60 seconds')

sh.exec(
`kubectl scale deployment.apps/monitored-deployment --namespace ${testNamespace} --replicas=1`
)
Expand All @@ -59,15 +59,15 @@ test.serial(`Deployment should scale to fit the amount of pods which match the s

test.after.always.cb('clean up workload test related deployments', t => {
const resources = [
'scaledobject.keda.sh/sut-scaledobject',
'scaledobject.keda.sh/sut-scaledobject',
'deployment.apps/sut-deployment',
'deployment.apps/monitored-deployment',
]

for (const resource of resources) {
sh.exec(`kubectl delete ${resource} --namespace ${testNamespace}`)
}
sh.exec(`kubectl delete namespace ${testNamespace}`)
sh.exec(`kubectl delete namespace ${testNamespace}`)
t.end()
})

Expand Down Expand Up @@ -123,13 +123,13 @@ spec:
minReplicaCount: 1
maxReplicaCount: 10
advanced:
horizontalPodAutoscalerConfig:
horizontalPodAutoscalerConfig:
behavior:
scaleDown:
stabilizationWindowSeconds: 15
triggers:
- type: kubernetes-workload
metadata:
metadata:
podSelector: 'pod=workload-test'
namespace: ${testNamespace}
value: '1'`

0 comments on commit 863a075

Please sign in to comment.