File tree Expand file tree Collapse file tree 4 files changed +4
-12
lines changed
aws-parallelcluster-environment/spec/unit/recipes
aws-parallelcluster-platform
aws-parallelcluster-shared/resources Expand file tree Collapse file tree 4 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 3232 )
3333 end
3434
35- it 'installs python packages' do
36- is_expected . to run_bash ( "pip install" ) . with (
37- user : 'root' ,
38- group : 'root' ,
39- cwd : "#{ node [ 'cluster' ] [ 'base_dir' ] } "
40- )
41- end
42-
4335 it 'sets virtualenv path' do
4436 expect ( node . default [ 'cluster' ] [ 'cfn_bootstrap_virtualenv_path' ] ) . to eq ( virtualenv_path )
4537 is_expected . to write_node_attributes ( 'dump node attributes' )
Original file line number Diff line number Diff line change 4747bash 'pip install' do
4848 user 'root'
4949 group 'root'
50+ cwd "#{ node [ 'cluster' ] [ 'base_dir' ] } "
5051 code <<-REQ
5152 #{ virtualenv_path } /bin/pip install -r fail-pls
5253 if [ $? -ne 0 ]; then
53- cd #{ node [ 'cluster' ] [ 'base_dir' ] }
5454 tar xzf cookbook-dependencies.tgz
5555 cd dependencies
5656 #{ virtualenv_path } /bin/pip install * -f ./ --no-index
Original file line number Diff line number Diff line change 1515 it 'downloads awscli-bundle from s3' do
1616 is_expected . to create_remote_file ( 'download awscli bundle from s3' ) . with (
1717 path : "#{ file_cache_path } /awscli-bundle.zip" ,
18- source : ' https://s3.amazonaws.com/aws-cli/ awscli-bundle .zip' ,
18+ source : " https://awscli.test_aws_domain/ awscli-exe-linux- #{ node [ 'kernel' ] [ 'machine' ] } .zip" ,
1919 retries : 5 ,
2020 retry_delay : 5
2121 )
3131
3232 it 'installs awscli into cookbook virtualev path' do
3333 is_expected . to run_bash ( 'install awscli' )
34- . with_code "#{ cookbook_virtualenv_path } /bin/python #{ file_cache_path } /awscli/awscli-bundle /install -i /usr/local/aws -b /usr/local/bin/aws "
34+ . with_code "#{ file_cache_path } /awscli/aws /install -i /usr/local/aws -b /usr/local/bin"
3535 end
3636 end
3737
Original file line number Diff line number Diff line change 1414
1515action :run do
1616 python_version = new_resource . python_version || node [ 'cluster' ] [ 'python-version' ]
17- python_url = "https://www.python.org/ftp/python/ #{ python_version } /Python-#{ python_version } .tgz"
17+ python_url = " #{ node [ 'cluster' ] [ 'artifacts_s3_url' ] } /dependencies/python /Python-#{ python_version } .tgz"
1818
1919 if !aws_region . start_with? ( "us-iso" ) && new_resource . python_version
2020 python_url = "https://www.python.org/ftp/python/#{ python_version } /Python-#{ python_version } .tgz"
You can’t perform that action at this time.
0 commit comments