Skip to content

Commit 11d4703

Browse files
committed
[Isolated] Test python pacakges are installed when in an ADC region
1 parent 95ce661 commit 11d4703

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cookbooks/aws-parallelcluster-platform/spec/unit/recipes/cookbook_virtualenv_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
cached(:virtualenv_path) { 'system_pyenv_root/versions/python_version/envs/cookbook_virtualenv' }
99
cached(:aws_region) { 'us-iso-test' }
1010

11+
before do
12+
allow_any_instance_of(String).to receive(:start_with?).with("us-iso").and_return(true)
13+
end
14+
15+
1116
context "when cookbook virtualenv not installed yet" do
1217
cached(:chef_run) do
1318
runner = runner(platform: platform, version: version) do |node|

0 commit comments

Comments
 (0)