-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add inject option for ipa testing. #78
Conversation
Provides the following options for injection: :inject_packages: an rpm path or list of rpm paths which will be copied and installed on instance. :inject_archives: an archive or list of archives which will be copied and extracted on instance. :inject_files: a file path or list of file paths which will be copied to instance. :execute: a command or list of commands to run. :install: a package name or list of package names to install from an existing repo. The injection happens in that order.
6628740
to
b6155f4
Compare
ipa/ipa_provider.py
Outdated
There are 5 injection options: | ||
|
||
:inject_packages: an rpm path or list of rpm paths which will be | ||
copied and installed on instance. |
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.
... installed on the test instance.
ipa/ipa_provider.py
Outdated
:inject_packages: an rpm path or list of rpm paths which will be | ||
copied and installed on instance. | ||
:inject_archives: an archive or list of archives which will | ||
be copied and extracted on instance. |
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.
dito
ipa/ipa_provider.py
Outdated
:inject_archives: an archive or list of archives which will | ||
be copied and extracted on instance. | ||
:inject_files: a file path or list of file paths which | ||
will be copied to instance. |
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.
dito
ipa/ipa_provider.py
Outdated
will be copied to instance. | ||
:execute: a command or list of commands to run. | ||
:install: a package name or list of package names to | ||
install from an existing repo. |
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.
Please add the order of processing to the doc string
inject_files = [inject_files] | ||
|
||
for file_path in inject_files: | ||
self.put_file(client, file_path) |
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.
One could, and some people will argue that packages and tar archives are files as well. I am OK leaving this option as if one want to inject a config file that effects a package forcing them to create an archive is silly and it saves us the logic of having to determine file types for certain operation.
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.
Yeah "put" is the first step to injecting a package and an archive. So exposing it independently I think is nice. I.e. like your example to copy a single file.
Provides the following options for injection:
:inject_packages: an rpm path or list of rpm paths which will be copied and installed on instance.
:inject_archives: an archive or list of archives which will be copied and extracted on instance.
:inject_files: a file path or list of file paths which will be copied to instance.
:execute: a command or list of commands to run.
:install: a package name or list of package names to install from an existing repo.
The injection happens in that order.