Wait for PVC to be bounded (#2054)
This commit is contained in:
committed by
GitHub
parent
80391b867c
commit
c9d174df09
@@ -78,10 +78,8 @@ const checkPodDescribeHasSections = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
test("Test describe section for PVCs in new tenant", async (t) => {
|
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 loginToOperator();
|
||||||
await createTenant(tenantName);
|
|
||||||
await t.wait(20000); // wait for PVCs to be created
|
|
||||||
await testPvcDescribe(tenantName);
|
await testPvcDescribe(tenantName);
|
||||||
await redirectToTenantsList();
|
await redirectToTenantsList();
|
||||||
await deleteTenant(tenantName);
|
await deleteTenant(tenantName);
|
||||||
|
|||||||
@@ -165,6 +165,9 @@ function install_tenant() {
|
|||||||
--selector $key=$value \
|
--selector $key=$value \
|
||||||
--timeout=300s
|
--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"
|
echo "Build passes basic tenant creation"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user