forked from LaconicNetwork/kompose
Adding save command to annotation
This command will add `kompose command` used to generate artifacts as well as `kompose version`,
for ex,
```
metadata:
annotations:
kompose.cmd: kompose convert -f /home/snarwade --stdout
kompose.version: 1.0.0 (HEAD)
```
For functional test, Now each test has template like,
```
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
```
Because, for every machine these values will be different.
Updated functional test with new annotations
This commit is contained in:
@@ -197,9 +197,7 @@ func checkMeta(config kobject.ServiceConfig, meta api.ObjectMeta, expectedName s
|
||||
if expectedName != meta.Name {
|
||||
return fmt.Errorf("Found unexpected name: %s vs. %s", expectedName, meta.Name)
|
||||
}
|
||||
if !equalStringMaps(config.Annotations, meta.Annotations) {
|
||||
return fmt.Errorf("Found different annotations: %#v vs. %#v", config.Annotations, meta.Annotations)
|
||||
}
|
||||
|
||||
if shouldSetLabels != (len(meta.Labels) > 0) {
|
||||
return fmt.Errorf("Unexpected labels: %#v", meta.Labels)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user