Skip to content

Commit

Permalink
Fix up tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
dturn committed Jun 28, 2018
1 parent 55a218c commit 837ecc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/kubernetes_deploy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def test_full_hello_cloud_set_deploy_succeeds
%r{DaemonSet/ds-app\s+1 updatedNumberScheduled, 1 desiredNumberScheduled, 1 numberReady},
%r{StatefulSet/stateful-busybox},
%r{Service/redis-external\s+Doesn't require any endpoint},
%r{HorizontalPodAutoscaler/hello-hpa\s+Exists},
%r{hpa.v2beta1.autoscaling/hello-hpa\s+Exists},
])

# Verify that success section isn't duplicated for predeployed resources
Expand Down Expand Up @@ -1010,10 +1010,12 @@ def test_raise_on_yaml_missing_kind
end

def test_hpa_can_be_successful
skip if KUBE_SERVER_VERSION < Gem::Version.new('1.8.0')
assert_deploy_success(deploy_fixtures("hello-cloud", subset: ["configmap-data.yml", "web.yml.erb", "hpa.yml"]))
end

def test_hpa_can_times_out_when_no_matching_deployment
skip if KUBE_SERVER_VERSION < Gem::Version.new('1.8.0')
assert_deploy_failure(deploy_fixtures("hello-cloud", subset: ["hpa.yml"]), :timed_out)
end
end

0 comments on commit 837ecc2

Please sign in to comment.