-
Notifications
You must be signed in to change notification settings - Fork 105
[Isolated] Update Pypi dependencies and install efs-proxy dependency #3011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
7c345ec
[Isolated] Install cfn-dependencies only for AL2
a972479
Revert "[Isolated] Install cfn-dependencies only for AL2"
857638c
[Isolated] USe latest cfn-dependencies
b56bb2c
[Isolated] Using Git REF for Uploading cookbook
e49d4a1
[Isolated] Rename the cfn-dependecies files
dd33ac1
[Isolated] Chnage the name of Cookbook Dependencies and the folder na…
506bb33
[Isolated] Chnage the name of CFN Dependencies and the folder name in…
5a30c1a
[Isolated] Installing Cfn-bootstrap using `--no-build-isolation` as 3…
fc056aa
[Isolated] Install efs-proxy cargo dependecies for isolated environment
38a7577
[Isolated] Install new node pypi dependencies and move efs-proxy inst…
hgreebe 4278843
[Isolated] Only install efs-proxy deps when in adc regions
hgreebe ab36358
[Isolated] Only install efs-proxy-deps in adc
hgreebe 29ba943
[Isolated] Fix unit tests
hgreebe ddbc975
[Isolated] Test python pacakges are installed when in an ADC region
hgreebe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,12 +6,15 @@ | |
cached(:python_version) { 'python_version' } | ||
cached(:system_pyenv_root) { 'system_pyenv_root' } | ||
cached(:virtualenv_path) { 'system_pyenv_root/versions/python_version/envs/cookbook_virtualenv' } | ||
cached(:aws_region) { 'us-iso-test' } | ||
|
||
context "when cookbook virtualenv not installed yet" do | ||
cached(:chef_run) do | ||
runner = runner(platform: platform, version: version) do |node| | ||
allow_any_instance_of(Object).to receive(:aws_region).and_return(aws_region) | ||
node.override['cluster']['system_pyenv_root'] = system_pyenv_root | ||
node.override['cluster']['python-version'] = python_version | ||
node.override['cluster']['region'] = aws_region | ||
end | ||
runner.converge(described_recipe) | ||
end | ||
|
@@ -32,13 +35,14 @@ | |
expect(node.default['cluster']['cookbook_virtualenv_path']).to eq(virtualenv_path) | ||
is_expected.to write_node_attributes('dump node attributes') | ||
end | ||
|
||
it 'installs python packages' do | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this removed? |
||
is_expected.to run_bash("pip install").with( | ||
user: 'root', | ||
group: 'root', | ||
cwd: "#{node['cluster']['base_dir']}" | ||
).with_code(/tar xzf cookbook-dependencies.tgz/) | ||
context "when in isolated region" do | ||
it 'installs python packages' do | ||
is_expected.to run_bash("pip install").with( | ||
user: 'root', | ||
group: 'root', | ||
cwd: "#{node['cluster']['base_dir']}" | ||
).with_code(/tar xzf cookbook-dependencies.tgz/) | ||
end | ||
end | ||
end | ||
end | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this moved as part of each action?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can't use
new_resource
outside of an actionblock, so I can't define the variable globally because I would not be able to usenew_resource