Skip to content

Commit d6df659

Browse files
committed
[Isolated] Fix unit tests
1 parent acd00a1 commit d6df659

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
runner = runner(platform: platform, version: version) do |node|
1313
node.override['cluster']['system_pyenv_root'] = system_pyenv_root
1414
node.override['cluster']['python-version'] = python_version
15+
node.override['cluster']['region'] = 'us-iso-east-1'
1516
end
1617
runner.converge(described_recipe)
1718
end
@@ -34,13 +35,9 @@
3435
end
3536

3637
context "when region starts with us-iso" do
37-
before do
38-
allow(node).to receive(:[]).with('cluster').and_return({'region' => 'us-iso-east-1'})
39-
end
40-
4138
it 'installs python packages' do
4239
is_expected.to run_bash("pip install").with(
43-
user: '****',
40+
user: 'root',
4441
group: 'root',
4542
cwd: "#{node['cluster']['base_dir']}"
4643
).with_code(/tar xzf cookbook-dependencies.tgz/)

0 commit comments

Comments
 (0)