Skip to content

Commit

Permalink
Update tests to omit default values
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Dec 21, 2023
1 parent 1464945 commit 6a44ea6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 61 deletions.
54 changes: 0 additions & 54 deletions tests/__snapshots__/test_git_repo.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'apps',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/apps/prod',
Expand All @@ -33,8 +31,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'flux-system',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/clusters/prod',
Expand All @@ -43,7 +39,6 @@
'cluster_policies': list([
dict({
'name': 'test-allow-policy',
'namespace': None,
}),
]),
'helm_releases': list([
Expand All @@ -68,8 +63,6 @@
'url': 'oci://ghcr.io/weaveworks/charts',
}),
]),
'images': list([
]),
'name': 'infra-configs',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/configs',
Expand Down Expand Up @@ -99,8 +92,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'infra-controllers',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/controllers',
Expand Down Expand Up @@ -129,8 +120,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'apps',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/apps/prod',
Expand All @@ -142,8 +131,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'flux-system',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/clusters/prod',
Expand All @@ -152,7 +139,6 @@
'cluster_policies': list([
dict({
'name': 'test-allow-policy',
'namespace': None,
}),
]),
'helm_releases': list([
Expand All @@ -177,8 +163,6 @@
'url': 'oci://ghcr.io/weaveworks/charts',
}),
]),
'images': list([
]),
'name': 'infra-configs',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/configs',
Expand All @@ -190,8 +174,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'infra-controllers',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/controllers',
Expand Down Expand Up @@ -223,8 +205,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'apps',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/apps/prod',
Expand All @@ -236,8 +216,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'flux-system',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/clusters/prod',
Expand All @@ -246,7 +224,6 @@
'cluster_policies': list([
dict({
'name': 'test-allow-policy',
'namespace': None,
}),
]),
'helm_releases': list([
Expand All @@ -271,8 +248,6 @@
'url': 'oci://ghcr.io/weaveworks/charts',
}),
]),
'images': list([
]),
'name': 'infra-configs',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/configs',
Expand Down Expand Up @@ -302,8 +277,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'infra-controllers',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/controllers',
Expand Down Expand Up @@ -357,8 +330,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'apps',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/apps/prod',
Expand All @@ -370,8 +341,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'flux-system',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/clusters/prod',
Expand All @@ -380,15 +349,12 @@
'cluster_policies': list([
dict({
'name': 'test-allow-policy',
'namespace': None,
}),
]),
'helm_releases': list([
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'infra-configs',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/configs',
Expand Down Expand Up @@ -418,8 +384,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'infra-controllers',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/controllers',
Expand Down Expand Up @@ -451,8 +415,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'apps',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/apps/prod',
Expand All @@ -464,8 +426,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'flux-system',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/clusters/prod',
Expand All @@ -474,7 +434,6 @@
'cluster_policies': list([
dict({
'name': 'test-allow-policy',
'namespace': None,
}),
]),
'helm_releases': list([
Expand All @@ -499,8 +458,6 @@
'url': 'oci://ghcr.io/weaveworks/charts',
}),
]),
'images': list([
]),
'name': 'infra-configs',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/configs',
Expand Down Expand Up @@ -530,8 +487,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'infra-controllers',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/controllers',
Expand Down Expand Up @@ -940,8 +895,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'apps',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/apps/prod',
Expand All @@ -953,8 +906,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'flux-system',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/clusters/prod',
Expand All @@ -963,7 +914,6 @@
'cluster_policies': list([
dict({
'name': 'test-allow-policy',
'namespace': None,
}),
]),
'helm_releases': list([
Expand All @@ -988,8 +938,6 @@
'url': 'oci://ghcr.io/weaveworks/charts',
}),
]),
'images': list([
]),
'name': 'infra-configs',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/configs',
Expand Down Expand Up @@ -1019,8 +967,6 @@
]),
'helm_repos': list([
]),
'images': list([
]),
'name': 'infra-controllers',
'namespace': 'flux-system',
'path': 'tests/testdata/cluster/infrastructure/controllers',
Expand Down
7 changes: 0 additions & 7 deletions tests/tool/__snapshots__/test_get_cluster.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@
helm_repos: []
helm_releases: []
cluster_policies: []
images: []
- name: flux-system
namespace: flux-system
path: tests/testdata/cluster8/cluster
helm_repos: []
helm_releases: []
cluster_policies: []
images: []

'''
# ---
Expand All @@ -103,14 +101,12 @@
repo_name: podinfo
repo_namespace: flux-system
cluster_policies: []
images: []
- name: flux-system
namespace: flux-system
path: tests/testdata/cluster/clusters/prod
helm_repos: []
helm_releases: []
cluster_policies: []
images: []
- name: infra-configs
namespace: flux-system
path: tests/testdata/cluster/infrastructure/configs
Expand All @@ -130,8 +126,6 @@
helm_releases: []
cluster_policies:
- name: test-allow-policy
namespace: null
images: []
- name: infra-controllers
namespace: flux-system
path: tests/testdata/cluster/infrastructure/controllers
Expand All @@ -150,7 +144,6 @@
repo_name: weave-charts
repo_namespace: flux-system
cluster_policies: []
images: []

'''
# ---

0 comments on commit 6a44ea6

Please sign in to comment.