Skip to content

Commit

Permalink
add test for proper dc autoscaling
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Feb 1, 2018
1 parent 7a00eaf commit e0ff016
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cmd/deployments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ os::test::junit::declare_suite_start "cmd/deployments/autoscale"
os::cmd::expect_success 'oc create -f test/integration/testdata/test-deployment-config.yaml'
os::cmd::expect_success 'oc autoscale dc/test-deployment-config --max 5'
os::cmd::expect_success_and_text "oc get hpa/test-deployment-config --template='{{.spec.maxReplicas}}'" "5"
os::cmd::expect_success_and_text "oc get hpa/test-deployment-config -o jsonpath='{.spec.scaleTargetRef.apiVersion}'" "apps.openshift.io/v1"
os::cmd::expect_success 'oc delete dc/test-deployment-config'
os::cmd::expect_success 'oc delete hpa/test-deployment-config'
echo "autoscale: ok"
Expand Down

0 comments on commit e0ff016

Please sign in to comment.