-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove legacy reconciler template test artifact (#767)
The old reconciler template has confused multiple people now. So instead of keeping it to test that the reconciler template can be changed, pull the current template in the test, modify it, and persist the change. This way we can test a single-line change of a managed field is reverted without needing the old config to keep working in perpetuity. Now there's only one template in the repo.
- Loading branch information
Showing
7 changed files
with
212 additions
and
470 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,8 @@ func TestPublicHelm(t *testing.T) { | |
expectedMemoryRequest = "250Mi" | ||
expectedMemoryLimit = "300Mi" | ||
} | ||
if err := nt.Validate("my-wordpress", "wordpress", &appsv1.Deployment{}, containerImagePullPolicy("Always"), | ||
if err := nt.Validate("my-wordpress", "wordpress", &appsv1.Deployment{}, | ||
testpredicates.DeploymentContainerPullPolicyEquals("wordpress", "Always"), | ||
testpredicates.HasCorrectResourceRequestsLimits("wordpress", | ||
resource.MustParse(expectedCPURequest), | ||
resource.MustParse(expectedCPULimit), | ||
|
@@ -272,7 +273,8 @@ service: | |
expectedMemoryRequest = "250Mi" | ||
expectedMemoryLimit = "300Mi" | ||
} | ||
if err := nt.Validate("my-wordpress", "wordpress", &appsv1.Deployment{}, containerImagePullPolicy("Always"), | ||
if err := nt.Validate("my-wordpress", "wordpress", &appsv1.Deployment{}, | ||
testpredicates.DeploymentContainerPullPolicyEquals("wordpress", "Always"), | ||
testpredicates.HasCorrectResourceRequestsLimits("wordpress", | ||
resource.MustParse(expectedCPURequest), | ||
resource.MustParse(expectedCPULimit), | ||
|
@@ -364,7 +366,8 @@ image: | |
} | ||
|
||
// duplicated keys from later files should override the keys from previous files. | ||
if err := nt.Validate("my-wordpress", "wordpress", &appsv1.Deployment{}, containerImagePullPolicy("Always"), | ||
if err := nt.Validate("my-wordpress", "wordpress", &appsv1.Deployment{}, | ||
testpredicates.DeploymentContainerPullPolicyEquals("wordpress", "Always"), | ||
testpredicates.HasExactlyImage("wordpress", "bitnami/wordpress", "", "sha256:362cb642db481ebf6f14eb0244fbfb17d531a84ecfe099cd3bba6810db56694e"), | ||
testpredicates.DeploymentHasEnvVar("wordpress", "WORDPRESS_USERNAME", "test-user-2"), | ||
testpredicates.DeploymentHasEnvVar("wordpress", "WORDPRESS_EMAIL", "[email protected]"), | ||
|
@@ -733,7 +736,7 @@ func TestHelmGCENode(t *testing.T) { | |
nt.T.Fatal(err) | ||
} | ||
if err := nt.Validate(fmt.Sprintf("my-coredns-%s", remoteHelmChart.ChartName), "coredns", &appsv1.Deployment{}, | ||
containerImagePullPolicy("IfNotPresent")); err != nil { | ||
testpredicates.DeploymentContainerPullPolicyEquals("coredns", "IfNotPresent")); err != nil { | ||
nt.T.Error(err) | ||
} | ||
} | ||
|
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
Oops, something went wrong.