Commit graph

93 commits

Author SHA1 Message Date
Pedro Algarvio
185a352d00 Update the tools requirements
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-23 08:44:35 +00:00
Pedro Algarvio
02b147ae59 Add a FIPS enabled test run under PhotonOS 4 to the CI process
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-11-14 20:42:57 +00:00
Pedro Algarvio
2b142dc81b Update tools/vm.py 2023-11-09 17:25:00 +00:00
Megan Wilhite
404a659a39 Add download flag to tool's rsync cmd 2023-11-09 17:25:00 +00:00
twangboy
07bb453204 Fix test_get_yum_config 2023-11-08 18:07:30 +00:00
twangboy
5e50ccf31c Fix rsync on Windows using cwRsync 2023-11-08 18:07:30 +00:00
Pedro Algarvio
5242d44474 Reduce code duplication and some code coverage reporting improvements
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-07 08:37:06 +01:00
Pedro Algarvio
a7bcc6f90a Log in which environment the developer VM is getting created
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-04 20:54:42 +01:00
Pedro Algarvio
c12bbd1995 Fix the security groups selection for developer created VMs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-10-04 20:54:42 +01:00
Pedro Algarvio
4b02270161 Create the XML coverage reports using the onedir
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-30 18:36:40 +01:00
Pedro Algarvio
309829e5e3 Set and make use of the TOOLS_DISTRO_SLUG environment variable in CI
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-29 16:12:59 +01:00
Pedro Algarvio
d53eff39fd On VMs, use Salt's onedir to combine code coverage
And newer Python versions where we don't want to download the onedir

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-29 16:12:59 +01:00
Pedro Algarvio
313264bbe0 Disable password authentication
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-29 16:12:59 +01:00
Pedro Algarvio
29a57d2d32 Generate the XML code coverage reports before trying to use them
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-26 20:57:49 +01:00
Pedro Algarvio
d35ff0a9a0 If the IP address that is on file doesn't match, write the file again
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-25 17:26:12 +01:00
Pedro Algarvio
be09ff0c92 Continue using the old Windows AMIs
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-25 17:26:12 +01:00
Pedro Algarvio
96e59557ef Update to latest golden images
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-09-25 17:26:12 +01:00
MKLeb
253eb49eae Terminating 2023-09-11 21:41:05 +01:00
MKLeb
bc3d04d207 Add support for removing corrupted cache entries in tools vm sync-cache 2023-09-11 21:41:05 +01:00
Pedro Algarvio
5ed925ea5e Use the VM slug as the code coverage default context
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-08-31 17:32:01 +00:00
Pedro Algarvio
aa34a59dad Check the existence of the file before trying to read from it
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-08-24 16:29:00 +01:00
MKLeb
3f3610f670 Add docs explaining key name in environment 2023-08-04 21:24:53 +01:00
MKLeb
a98d31775f Allow setting the key name using an environment variable 2023-08-04 21:24:53 +01:00
Pedro Algarvio
897360029e Starting VM's on developer machines now requires VPN access
Choose the `prod` or `test` VPN depending on what kind of environment is
being targeted.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-07-28 10:58:38 +01:00
MKLeb
4e90e0e7fe Add --delete option to tools vm sync-cache to force the user to know that they are deleting cache entries that are no longer valid 2023-07-19 12:45:04 +01:00
MKLeb
86719a68b5 Add sync-cache command to make the stored state of the machine match up to what ec2 has for all running machines 2023-07-19 12:45:04 +01:00
MKLeb
6d5e8ce887 Add states filtering 2023-07-19 12:45:04 +01:00
MKLeb
a73e73e74b Add tools vm list command 2023-07-19 12:45:04 +01:00
Pedro Algarvio
f4af592400 Sometimes the first page does not have any results. Try next page if there's a next token.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-22 18:40:56 +01:00
Pedro Algarvio
f6188fddfc Handle stale cache
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-05-05 10:11:18 +01:00
Pedro Algarvio
faaddc0d0e Don't wait for the whole vm destroy process to complete.
Just confirm it started and exit.

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-04-14 15:46:15 -07:00
Pedro Algarvio
e2374a9f1d Run windows package download tests from a bastion VM
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-29 11:37:08 -07:00
Pedro Algarvio
88f945598f Fix symlinks when decompressing instead of replacing them when compressing dependencies
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-29 11:37:08 -07:00
Pedro Algarvio
f2121b9a10 Adjust bucket names depending on the salt project bot environment we're in
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-12 15:19:38 +00:00
Pedro Algarvio
af5e2e3390 Try to get the VM environment from the instance tags
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-03-08 23:48:54 +00:00
Megan Wilhite
bdbe9cfde4 Set PYTHONUTF8 for everything except icacls command 2023-02-28 15:27:46 +00:00
Twangboy
5d31b7e824 Handle the MSI installer starting the salt-minion
It's not supposed to start the salt-minion when
START_MINION="" is passed
2023-02-28 15:27:46 +00:00
Twangboy
0c91f8bb1c Maybe this will get the MSI to install... 2023-02-28 15:27:46 +00:00
Twangboy
cdd5065667 We only need to reset inheritance 2023-02-28 15:27:46 +00:00
Twangboy
2a48eb1b76 We only need to reset inheritance 2023-02-28 15:27:46 +00:00
Twangboy
fcfa1e0abb Use double quotes for nox_session 2023-02-28 15:27:46 +00:00
Twangboy
80eb232364 Add back rsync_remote_path 2023-02-28 15:27:46 +00:00
Megan Wilhite
f9422e8643 Set correct permissions for directory rsyncd 2023-02-28 15:27:46 +00:00
Twangboy
c0b9ee3d83 Fix MSI tests not completing properly 2023-02-28 15:27:46 +00:00
MKLeb
1fde3f9578 include the package artifacts when we rsync 2023-02-28 15:27:46 +00:00
Pedro Algarvio
62afd9bfcb Pass the local LANG environment variable if set
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-23 05:49:08 +00:00
Pedro Algarvio
46ace5e44a Pick the launch template from the right environment
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-18 08:18:26 +00:00
Pedro Algarvio
a6e68eeb76 Properly handle RequestExpired when getting the VMs state
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-18 08:18:26 +00:00
Pedro Algarvio
4c8cc60629 Add tools/utils.py and move some common functionality there.
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-02-15 07:11:45 +00:00
Pedro Algarvio
0a45ddaa4c Make sure we always try to use our PyPi proxy
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
2023-01-27 07:35:00 -07:00