From d098df0aa68822697e3f2045c5dcd4d51fce8ce1 Mon Sep 17 00:00:00 2001 From: Kyriacos Kyriacou Date: Sun, 10 Dec 2023 01:55:03 +0100 Subject: [PATCH] Add test case --- fig_test.go | 3 +++ testdata/valid/pod.json | 3 +++ testdata/valid/pod.toml | 1 + testdata/valid/pod.yaml | 2 ++ 4 files changed, 9 insertions(+) diff --git a/fig_test.go b/fig_test.go index e464615..737ab64 100644 --- a/fig_test.go +++ b/fig_test.go @@ -126,6 +126,9 @@ func validPodConfig() Pod { "-w": { Value: "true", }, + "--mem": { + Value: "low", + }, }, }, } diff --git a/testdata/valid/pod.json b/testdata/valid/pod.json index 345b84e..d9b8d3f 100644 --- a/testdata/valid/pod.json +++ b/testdata/valid/pod.json @@ -43,6 +43,9 @@ "args": { "-w": { "value": "true" + }, + "--mem": { + "value": "low" } } } diff --git a/testdata/valid/pod.toml b/testdata/valid/pod.toml index c40f9ee..d88e175 100644 --- a/testdata/valid/pod.toml +++ b/testdata/valid/pod.toml @@ -36,6 +36,7 @@ master = true [spec.containers.args] "-w" = { value = "true" } + "--mem" = { value = "low" } [[spec.volumes]] name = "data" diff --git a/testdata/valid/pod.yaml b/testdata/valid/pod.yaml index 230dec8..609150d 100644 --- a/testdata/valid/pod.yaml +++ b/testdata/valid/pod.yaml @@ -26,6 +26,8 @@ spec: args: "-w": value: "true" + "--mem": + value: "low" volumes: - name: data - name: config