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

Feature request: Add optional flag to be able to tag/label all resources created by the test suite #1047

Open
philroche opened this issue Jan 29, 2024 · 2 comments
Assignees

Comments

@philroche
Copy link

It would be really neat if we could pass in an optional flag to specify a test string to be used as a tag or label applied to any resource created by the test suite, VM, disks etc.

This will help with tracking usage per test run and also help with cleanup after a test run should there be any resources remaining after the test suite has been completed or if the tests are interrupted.

@philroche
Copy link
Author

This is in reference to the imagetest specifically

@a-crate
Copy link
Contributor

a-crate commented Feb 23, 2024

All resources created by the test suite should have a description of something like "Instance created by Daisy in workflow "network" on behalf of root" and name like vm1-network-m2jl8 (for an example run of running test network/ubuntu-2004-lts (ID m2jl8) in project whatever), but that doesn't make it very easy to identify programatically since you have to parse out the workflow ID.

We should be able to add a label to make it more easy to identify these, I'll just have to go through all the creation functions and add some labeling.

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

No branches or pull requests

2 participants