Skip to content

Commit

Permalink
Set PVs count to match parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
dturn committed Sep 27, 2019
1 parent 99c3a02 commit 27ebe38
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/hello-cloud/redis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 1M
storage: 100M
---
apiVersion: apps/v1beta1
kind: Deployment
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/pvc/pvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 1M
storage: 150Mi
storageClassName: k8s-deploy-test
volumeMode: Filesystem
---
Expand All @@ -22,5 +22,5 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 1M
storage: 150Mi
volumeMode: Filesystem
3 changes: 1 addition & 2 deletions test/helpers/test_provisioner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class << self
def prepare_cluster
WebMock.allow_net_connect!
$stderr.print("Preparing test cluster... ")
prepare_pv("pv0001")
prepare_pv("pv0002")
[ENV['PARALLELISM'].to_i, 2].max.times { |i| prepare_pv("pv000#{i}") }
$stderr.puts "Done."
WebMock.disable_net_connect!
end
Expand Down
1 change: 0 additions & 1 deletion test/integration/kubernetes_deploy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1522,7 +1522,6 @@ def test_pvc_immediate_bind
sc["volumeBindingMode"] = "Immediate"
end
assert_deploy_success(result)

TestProvisioner.prepare_pv(pvname, storage_class_name: storage_class_name)
result = deploy_fixtures("pvc", subset: ["pvc.yml"]) do |fixtures|
pvc = fixtures["pvc.yml"]["PersistentVolumeClaim"].first
Expand Down

0 comments on commit 27ebe38

Please sign in to comment.