Wait for PVC to be bounded (#2054)

This commit is contained in:
Cesar Celis Hernandez
2022-05-31 00:15:03 -04:00
committed by GitHub
parent 80391b867c
commit c9d174df09
2 changed files with 4 additions and 3 deletions

View File

@@ -78,10 +78,8 @@ const checkPodDescribeHasSections = async () => {
};
test("Test describe section for PVCs in new tenant", async (t) => {
const tenantName = `tenant-${Math.floor(Math.random() * 10000)}`;
const tenantName = `storage-lite`;
await loginToOperator();
await createTenant(tenantName);
await t.wait(20000); // wait for PVCs to be created
await testPvcDescribe(tenantName);
await redirectToTenantsList();
await deleteTenant(tenantName);

View File

@@ -165,6 +165,9 @@ function install_tenant() {
--selector $key=$value \
--timeout=300s
echo "Wait for Prometheus PVC to be bound"
while [[ $(kubectl get pvc storage-lite-prometheus-storage-lite-prometheus-0 -n tenant-lite -o 'jsonpath={..status.phase}') != "Bound" ]]; do echo "waiting for PVC status" && sleep 1 && kubectl get pvc -A; done
echo "Build passes basic tenant creation"
}