mirror of
https://github.com/lingble/talos.git
synced 2025-12-15 20:17:05 +00:00
feat: implement service events
This implements service events, adds test for events API based on service events as they're the easiest to generate on demand. Disabled validate test for 'metal' as it validates disk device against local system which doesn't make much sense. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
committed by
talos-bot
parent
0cd86f17c3
commit
a6b3bd2ff6
@@ -7,6 +7,7 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
@@ -47,8 +48,10 @@ func (suite *ValidateSuite) TestValidate() {
|
||||
suite.RunCLI([]string{"gen", "config", "foobar", "https://10.0.0.1"})
|
||||
|
||||
for _, configFile := range []string{"init.yaml", "controlplane.yaml", "join.yaml"} {
|
||||
for _, mode := range []string{"cloud", "container", "metal"} {
|
||||
suite.RunCLI([]string{"validate", "-m", mode, "-c", configFile})
|
||||
for _, mode := range []string{"cloud", "container"} {
|
||||
suite.Run(fmt.Sprintf("%s-%s", configFile, mode), func() {
|
||||
suite.RunCLI([]string{"validate", "-m", mode, "-c", configFile})
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user