From 7edee61f341a1f2477f9a937bec3c6987bf3e35a Mon Sep 17 00:00:00 2001 From: Steve Hipwell Date: Fri, 25 Oct 2024 12:42:07 +0100 Subject: [PATCH] chore: Added wait for tests on an update Signed-off-by: Steve Hipwell --- kubernetes/resource_kubectl_manifest_test.go | 185 +++++++++++++++++++ 1 file changed, 185 insertions(+) diff --git a/kubernetes/resource_kubectl_manifest_test.go b/kubernetes/resource_kubectl_manifest_test.go index 31e61a3b..4afb06d3 100644 --- a/kubernetes/resource_kubectl_manifest_test.go +++ b/kubernetes/resource_kubectl_manifest_test.go @@ -527,6 +527,7 @@ EOF }) log.Println(config) } + func TestAccKubectl_WaitForField(t *testing.T) { //language=hcl config := ` @@ -683,6 +684,190 @@ YAML }) } +func TestAccKubectl_WaitForConditionUpdate(t *testing.T) { + //language=hcl + createConfig := ` +resource "kubectl_manifest" "test" { + wait_for_rollout = true + yaml_body = <