Skip to content
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

Merged
merged 2 commits into from
May 15, 2018
Merged

Add inject option for ipa testing. #78

merged 2 commits into from
May 15, 2018

Conversation

smarlowucf
Copy link
Collaborator

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.

@smarlowucf smarlowucf requested a review from rjschwei May 10, 2018 19:49
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.
There are 5 injection options:

:inject_packages: an rpm path or list of rpm paths which will be
copied and installed on instance.
Copy link
Collaborator

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.

: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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

: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.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

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.
Copy link
Collaborator

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)
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

@rjschwei rjschwei merged commit 81e2d28 into master May 15, 2018
@smarlowucf smarlowucf deleted the inject-requirements branch May 15, 2018 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants