mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-13 00:20:07 +01:00
feat(test/helm/simple): test passing values
This commit is contained in:
parent
ba1144a8df
commit
9ee7262465
1 changed files with 11 additions and 2 deletions
|
|
@ -16,14 +16,18 @@ in {
|
||||||
assertions = [{
|
assertions = [{
|
||||||
message = "should have generated resources";
|
message = "should have generated resources";
|
||||||
assertion =
|
assertion =
|
||||||
appsv1beta2.StatefulSet ? "app-psql-postgreql" &&
|
appsv1beta2.StatefulSet ? "app-psql-postgreql-master" &&
|
||||||
|
appsv1beta2.StatefulSet ? "app-psql-postgresql-slave" &&
|
||||||
corev1.ConfigMap ? "app-psql-postgresql-init-scripts" &&
|
corev1.ConfigMap ? "app-psql-postgresql-init-scripts" &&
|
||||||
corev1.Secret ? "app-psql-postgresql" &&
|
corev1.Secret ? "app-psql-postgresql" &&
|
||||||
corev1.Service ? "app-psql-postgresql-headless" ;
|
corev1.Service ? "app-psql-postgresql-headless" ;
|
||||||
|
} {
|
||||||
|
message = "should have values passed";
|
||||||
|
assertion = appsv1beta2.StatefulSet.app-psql-postgresql-slave.spec.replicas == 2;
|
||||||
} {
|
} {
|
||||||
message = "should have namespace defined";
|
message = "should have namespace defined";
|
||||||
assertion =
|
assertion =
|
||||||
appsv1beta2.StatefulSet.app-psql-postgresql.metadata.namespace == "test-namespace";
|
appsv1beta2.StatefulSet.app-psql-postgresql-master.metadata.namespace == "test-namespace";
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -36,5 +40,10 @@ in {
|
||||||
version = "3.0.0";
|
version = "3.0.0";
|
||||||
sha256 = "0icnnpcqvf1hqn7fc9niyifd0amlm9jfrx3iks0y360rk8wndbch";
|
sha256 = "0icnnpcqvf1hqn7fc9niyifd0amlm9jfrx3iks0y360rk8wndbch";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
values = {
|
||||||
|
replication.enabled = true;
|
||||||
|
replication.slaveReplicas = 2;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue