File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
cookbooks/aws-parallelcluster-platform/spec/unit/recipes Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1111 context "when cookbook virtualenv not installed yet" do
1212 cached ( :chef_run ) do
1313 runner = runner ( platform : platform , version : version ) do |node |
14+ allow_any_instance_of ( String ) . to receive ( :start_with? ) . with ( "us-iso" ) . and_return ( true )
1415 node . override [ 'cluster' ] [ 'system_pyenv_root' ] = system_pyenv_root
1516 node . override [ 'cluster' ] [ 'python-version' ] = python_version
17+ node . override [ 'cluster' ] [ 'region' ] = aws_region
1618 end
1719 runner . converge ( described_recipe )
1820 end
3436 is_expected . to write_node_attributes ( 'dump node attributes' )
3537 end
3638 context "when in isolated region" do
37- before do
38- allow_any_instance_of ( String ) . to receive ( :start_with? ) . with ( "us-iso" ) . and_return ( true )
39- end
40-
4139 it 'installs python packages' do
4240 is_expected . to run_bash ( "pip install" ) . with (
4341 user : 'root' ,
You can’t perform that action at this time.
0 commit comments