Skip to content

Commit 95ce661

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
cached(:python_version) { 'python_version' }
77
cached(:system_pyenv_root) { 'system_pyenv_root' }
88
cached(:virtualenv_path) { 'system_pyenv_root/versions/python_version/envs/cookbook_virtualenv' }
9+
cached(:aws_region) { 'us-iso-test' }
910

1011
context "when cookbook virtualenv not installed yet" do
1112
cached(:chef_run) do
@@ -32,6 +33,14 @@
3233
expect(node.default['cluster']['cookbook_virtualenv_path']).to eq(virtualenv_path)
3334
is_expected.to write_node_attributes('dump node attributes')
3435
end
36+
37+
it 'installs python packages' do
38+
is_expected.to run_bash("pip install").with(
39+
user: 'root',
40+
group: 'root',
41+
cwd: "#{node['cluster']['base_dir']}"
42+
).with_code(/tar xzf cookbook-dependencies.tgz/)
43+
end
3544
end
3645
end
3746
end

0 commit comments

Comments
 (0)