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 TestFiles Support: Enables additional files to be transfered to the VMs #21

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

landhb
Copy link
Contributor

@landhb landhb commented Sep 15, 2020

This PR adds a FileTransfer struct, that contains the user, local path, and remote path for a file transfer:

type FileTransfer struct {
	User    string
	Local   string
	Remote  string
}

And adds a field TestFiles to the Artifact struct, so that multiple files can be defined in the configuration and transferred to test VMs. Example configuration:

# install a utility into the VM
[[test_files]]
user = "root"
local = "./db"
remote = "/usr/bin/db"

# Bring along a test RSA key
[[test_files]]
user = "root"
local = "./db_rsa"
remote = "/tmp/db_rsa"

[[supported_kernels]]
distro_type = "Ubuntu"
distro_release = "16.04"
release_mask = "4[.]4[.]0-70-.*"

@jollheef jollheef merged commit e43993c into out-of-tree:master Sep 15, 2020
@jollheef
Copy link
Collaborator

Thank you!

@landhb
Copy link
Contributor Author

landhb commented Sep 16, 2020

No problem!

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