feat(test/helm/simple): test passing values

This commit is contained in:
Jaka Hudoklin 2019-02-28 13:29:59 +01:00
parent ba1144a8df
commit 9ee7262465
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95

View file

@ -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;
};
}; };
} }