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";
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;