From fc79dd5120758733671f2618db216d9ed2a6d0fc Mon Sep 17 00:00:00 2001 From: Skryta Istota <6970043-hidden-being@users.noreply.gitlab.com> Date: Sun, 30 Nov 2025 14:44:44 +0100 Subject: [PATCH] chore(cilib_test) Improved tests for generating cache settings Changed tests for generating cache configurations to consider single settings for ci. --- tests/cilib_test.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/cilib_test.nix b/tests/cilib_test.nix index 4fc9933..6de4ed6 100644 --- a/tests/cilib_test.nix +++ b/tests/cilib_test.nix @@ -57,10 +57,10 @@ { name = "jobPatched nix disabled"; expected = { - cache = [{ + cache = { name = "some"; paths = [ "this" ]; - }]; + }; variables = { BASH = toString pkgs.bash; TEST = "work"; @@ -70,10 +70,10 @@ key = "test"; pipelineName = "test"; job = { - cache = [{ + cache = { name = "some"; paths = [ "this" ]; - }]; + }; variables = { BASH = toString pkgs.bash; TEST = "work"; @@ -100,10 +100,10 @@ key = "test"; pipelineName = "test"; job = { - cache = [{ + cache = { name = "some"; paths = [ "this" ]; - }]; + }; variables = { BASH = toString pkgs.bash; TEST = "work"; @@ -137,10 +137,10 @@ key = "test"; pipelineName = "test"; job = { - cache = [{ + cache = { name = "some"; paths = [ "this" ]; - }]; + }; variables = { BASH = toString pkgs.bash; TEST = "work"; @@ -206,10 +206,10 @@ before_script = [ "./init" ]; script = [ "echo Hello World!" ]; after_script = [ "./clean" ]; - cache = [{ + cache = { key = "simple"; paths = [ "~/random/" ]; - }]; + }; variables = { SAMPLE = "working"; HELLO = toString pkgs.hello; @@ -230,10 +230,10 @@ before_script = [ "./init" ]; script = [ "echo Hello World!" ]; after_script = [ "./clean" ]; - cache = [{ + cache = { key = "simple"; paths = [ "~/random/" ]; - }]; + }; variables = { SAMPLE = "working"; HELLO = toString pkgs.hello; @@ -287,10 +287,10 @@ before_script = [ "./init" ]; script = [ "echo Hello World!" ]; after_script = [ "./clean" ]; - cache = [{ + cache = { key = "simple"; paths = [ "~/random/" ]; - }]; + }; variables = { SAMPLE = "working"; HELLO = toString pkgs.hello;