-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate tests to syrup, avoiding use of pytest-golden which hasn't been updated for awhile and uses yaml files which are harder to use. The test commands have been moved into the test fixture parameters which isn't so bad to maintain, and makes it easy to see all commands run in one place. The test files were grouped in some small groupings that make it reasonable to manage the separate ambr files, since everything in one file might be too hard to deal with.
- Loading branch information
1 parent
e7ce942
commit d954c91
Showing
81 changed files
with
1,636 additions
and
1,024 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
# serializer version: 1 | ||
# name: test_build[path0] | ||
''' | ||
apiVersion: v1 | ||
data: | ||
CLUSTER: dev | ||
DOMAIN: example.org | ||
kind: ConfigMap | ||
metadata: | ||
name: cluster-settings | ||
namespace: flux-system | ||
--- | ||
apiVersion: v1 | ||
data: | ||
PWD: secret | ||
kind: Secret | ||
metadata: | ||
name: cluster-secrets | ||
namespace: flux-system | ||
|
||
''' | ||
# --- | ||
# name: test_build[path1] | ||
''' | ||
apiVersion: v1 | ||
data: | ||
CLUSTER: dev | ||
DOMAIN: example.org | ||
kind: ConfigMap | ||
metadata: | ||
name: cluster-settings | ||
namespace: flux-system | ||
--- | ||
apiVersion: v1 | ||
data: | ||
PWD: secret | ||
kind: Secret | ||
metadata: | ||
name: cluster-secrets | ||
namespace: flux-system | ||
|
||
''' | ||
# --- | ||
# name: test_build_flags | ||
''' | ||
apiVersion: v1 | ||
data: | ||
CLUSTER: dev | ||
DOMAIN: example.org | ||
kind: ConfigMap | ||
metadata: | ||
name: cluster-settings | ||
namespace: flux-system | ||
--- | ||
apiVersion: v1 | ||
data: | ||
PWD: secret | ||
kind: Secret | ||
metadata: | ||
name: cluster-secrets | ||
namespace: flux-system | ||
|
||
''' | ||
# --- | ||
# name: test_build_grep[path0] | ||
''' | ||
apiVersion: v1 | ||
data: | ||
CLUSTER: dev | ||
DOMAIN: example.org | ||
kind: ConfigMap | ||
metadata: | ||
name: cluster-settings | ||
namespace: flux-system | ||
annotations: | ||
config.kubernetes.io/index: '0' | ||
internal.config.kubernetes.io/index: '0' | ||
|
||
''' | ||
# --- | ||
# name: test_build_grep[path1] | ||
''' | ||
apiVersion: v1 | ||
data: | ||
CLUSTER: dev | ||
DOMAIN: example.org | ||
kind: ConfigMap | ||
metadata: | ||
name: cluster-settings | ||
namespace: flux-system | ||
annotations: | ||
config.kubernetes.io/index: '0' | ||
internal.config.kubernetes.io/index: '0' | ||
|
||
''' | ||
# --- | ||
# name: test_grep[path0] | ||
''' | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
namespace: flux-system | ||
name: cluster-settings | ||
annotations: | ||
config.kubernetes.io/index: '0' | ||
config.kubernetes.io/path: 'cluster-settings.yaml' | ||
internal.config.kubernetes.io/index: '0' | ||
internal.config.kubernetes.io/path: 'cluster-settings.yaml' | ||
data: | ||
CLUSTER: dev | ||
DOMAIN: example.org | ||
|
||
''' | ||
# --- | ||
# name: test_grep[path1] | ||
''' | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
namespace: flux-system | ||
name: cluster-settings | ||
annotations: | ||
config.kubernetes.io/index: '0' | ||
config.kubernetes.io/path: 'cluster-settings.yaml' | ||
internal.config.kubernetes.io/index: '0' | ||
internal.config.kubernetes.io/path: 'cluster-settings.yaml' | ||
data: | ||
CLUSTER: dev | ||
DOMAIN: example.org | ||
|
||
''' | ||
# --- | ||
# name: test_objects[path0] | ||
list([ | ||
dict({ | ||
'apiVersion': 'v1', | ||
'data': dict({ | ||
'CLUSTER': 'dev', | ||
'DOMAIN': 'example.org', | ||
}), | ||
'kind': 'ConfigMap', | ||
'metadata': dict({ | ||
'annotations': dict({ | ||
'config.kubernetes.io/index': '0', | ||
'internal.config.kubernetes.io/index': '0', | ||
}), | ||
'name': 'cluster-settings', | ||
'namespace': 'flux-system', | ||
}), | ||
}), | ||
]) | ||
# --- | ||
# name: test_objects[path1] | ||
list([ | ||
dict({ | ||
'apiVersion': 'v1', | ||
'data': dict({ | ||
'CLUSTER': 'dev', | ||
'DOMAIN': 'example.org', | ||
}), | ||
'kind': 'ConfigMap', | ||
'metadata': dict({ | ||
'annotations': dict({ | ||
'config.kubernetes.io/index': '0', | ||
'internal.config.kubernetes.io/index': '0', | ||
}), | ||
'name': 'cluster-settings', | ||
'namespace': 'flux-system', | ||
}), | ||
}), | ||
]) | ||
# --- |
Oops, something went wrong.