chore(cilib_test) Improved tests for generating cache settings

Changed tests for generating cache configurations to consider single settings for ci.
This commit is contained in:
Skryta Istota 2025-11-30 14:44:44 +01:00
parent 8487c78246
commit fc79dd5120
No known key found for this signature in database

View file

@ -57,10 +57,10 @@
{ {
name = "jobPatched nix disabled"; name = "jobPatched nix disabled";
expected = { expected = {
cache = [{ cache = {
name = "some"; name = "some";
paths = [ "this" ]; paths = [ "this" ];
}]; };
variables = { variables = {
BASH = toString pkgs.bash; BASH = toString pkgs.bash;
TEST = "work"; TEST = "work";
@ -70,10 +70,10 @@
key = "test"; key = "test";
pipelineName = "test"; pipelineName = "test";
job = { job = {
cache = [{ cache = {
name = "some"; name = "some";
paths = [ "this" ]; paths = [ "this" ];
}]; };
variables = { variables = {
BASH = toString pkgs.bash; BASH = toString pkgs.bash;
TEST = "work"; TEST = "work";
@ -100,10 +100,10 @@
key = "test"; key = "test";
pipelineName = "test"; pipelineName = "test";
job = { job = {
cache = [{ cache = {
name = "some"; name = "some";
paths = [ "this" ]; paths = [ "this" ];
}]; };
variables = { variables = {
BASH = toString pkgs.bash; BASH = toString pkgs.bash;
TEST = "work"; TEST = "work";
@ -137,10 +137,10 @@
key = "test"; key = "test";
pipelineName = "test"; pipelineName = "test";
job = { job = {
cache = [{ cache = {
name = "some"; name = "some";
paths = [ "this" ]; paths = [ "this" ];
}]; };
variables = { variables = {
BASH = toString pkgs.bash; BASH = toString pkgs.bash;
TEST = "work"; TEST = "work";
@ -206,10 +206,10 @@
before_script = [ "./init" ]; before_script = [ "./init" ];
script = [ "echo Hello World!" ]; script = [ "echo Hello World!" ];
after_script = [ "./clean" ]; after_script = [ "./clean" ];
cache = [{ cache = {
key = "simple"; key = "simple";
paths = [ "~/random/" ]; paths = [ "~/random/" ];
}]; };
variables = { variables = {
SAMPLE = "working"; SAMPLE = "working";
HELLO = toString pkgs.hello; HELLO = toString pkgs.hello;
@ -230,10 +230,10 @@
before_script = [ "./init" ]; before_script = [ "./init" ];
script = [ "echo Hello World!" ]; script = [ "echo Hello World!" ];
after_script = [ "./clean" ]; after_script = [ "./clean" ];
cache = [{ cache = {
key = "simple"; key = "simple";
paths = [ "~/random/" ]; paths = [ "~/random/" ];
}]; };
variables = { variables = {
SAMPLE = "working"; SAMPLE = "working";
HELLO = toString pkgs.hello; HELLO = toString pkgs.hello;
@ -287,10 +287,10 @@
before_script = [ "./init" ]; before_script = [ "./init" ];
script = [ "echo Hello World!" ]; script = [ "echo Hello World!" ];
after_script = [ "./clean" ]; after_script = [ "./clean" ];
cache = [{ cache = {
key = "simple"; key = "simple";
paths = [ "~/random/" ]; paths = [ "~/random/" ];
}]; };
variables = { variables = {
SAMPLE = "working"; SAMPLE = "working";
HELLO = toString pkgs.hello; HELLO = toString pkgs.hello;