Commit Graph

18 Commits

Author SHA1 Message Date
776ebb9f54
Support test pillars
Allow directories to be specified in suite and test configuration
sections which will be linked to /srv/pillar on either the master or the
minion.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-06-08 18:04:41 +02:00
2cb6d95ec3
Improve cleanup logic
- ensure .scullery_* files are removed more reliably
- always write new Vagrant SSH configuration, do not rely on the
  existing one being the latest

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-24 00:32:01 +02:00
9895c56984
Improve test result logging
Handle Enum correctly.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-21 11:23:10 +02:00
f2e6df7448
Implement test.ping
Wait for minions to respond to test.ping before attempting a state.apply.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-21 10:42:09 +02:00
d37bd67b2e
Prevent option override
Do not override box/suite specific configuration with global
configuration.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-21 07:56:48 +02:00
4cbda6b5a1
Correct typo in log message
Caught during testing.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-21 03:03:54 +02:00
4c787b5628
Repair undefined box section check
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-21 02:38:44 +02:00
345ff9ca7e
Handle undefined __file__
Needed for running non-interactively.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-21 02:22:44 +02:00
7024eb6fae
Refine Vagrantfile location
Read from script directory if run from Git checkout and from /usr/share/
if run from a packaged installation.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-21 00:28:38 +02:00
c0af9d8a68
Repair apply targeting
In a master setup, target the minions, not the master itself.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 23:11:20 +02:00
fee235753f
Implement tests/state.apply + improve config logic
- consolidate config parsing (boxes, suites, tests)
- implement state.apply execution
- implement test execution
- minor "refresh" logic improvement

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 22:58:24 +02:00
5eb8acbe01
Implement force-stop argument
By default, the running-detection is good enough, and avoids a useless
Vagrant "destroy" call with a misleading informational message if
"--stop" is used.
However if the deployment was interupted and is in an inconsistent state,
the running-detection returns false results - in such cases, "--force-stop"
can be used to issue a "destroy" call without considering the detected
status.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 18:52:21 +02:00
f110f92150
Default option handling
Merge default options from [box] and [suite] blocks into the
respective [box.*]/[suite.*] sections.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 18:51:03 +02:00
c5e404c9c6
Repair configuration check
Use membership test instead.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 18:32:05 +02:00
ce0ad136aa
Implement refresh argument
Allows for re-provisioning of VM's.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 18:01:13 +02:00
42235b9d62
Improve option handling
- move bootstrap script to configuration option
- repair typo
- handle undefined but required options gracefully

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 17:51:32 +02:00
7c209509ed
Refactor environment handling
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 15:02:28 +02:00
efb24e362f
Initial commit
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2023-05-20 13:39:45 +02:00