* Run tests in parallel and output github formats on workflow
Signed-off-by: Itxaka <itxaka@kairos.io>
* Fix broken parallel tests
We were using a fixed file for the tests which several tests could be
accessing at the same time.
This fixes it by setting a temp random file at the test start
Signed-off-by: Itxaka <itxaka@kairos.io>
* Fix the tests logging to stdout
Signed-off-by: Itxaka <itxaka@kairos.io>
* Drop the verbose
Signed-off-by: Itxaka <itxaka@kairos.io>
* Fix agent test
Signed-off-by: Itxaka <itxaka@kairos.io>
* Let the event consumer create the logfile or whatever
Signed-off-by: Itxaka <itxaka@kairos.io>
* Drop Focus
Signed-off-by: Itxaka <itxaka@kairos.io>
---------
Signed-off-by: Itxaka <itxaka@kairos.io>
* Fix config loading, install device and call sanitize
Syncs the cfg.install.device to the installspec.target
As on manual-install the device can actually come from a flag and its
not on the cloud-config, we need to initialize the InstallSpec with the
value of the cfg.Install.Device as by that time we already have the
final value of the install target.
Also calls sanitize on config and specs and warns if anything goes wrong
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
* Fix platform override and tests
The sanitize method for Config was never called so we never noticed that
its overriding the platform, even if we pass the WithPLatform option.
This patch fixes it by only overriding platform by default on sanitize
if the platform is empty, otherwise leave the platform on it values.
Also fixes the tests to use test facilities and a small fix to not try
to load the platform values form yaml
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
* Init the Install in the Config init
Just in case something tries to access it so they dont find a nil
Also adjusts some more tests
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
---------
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>