File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
cookbooks/aws-parallelcluster-platform/spec/unit/recipes Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments