Assert PVC created name is === input name

pull/273/head
Frostebite 2021-06-19 02:18:44 +01:00
parent 4354561432
commit 9fb09da753
3 changed files with 3 additions and 3 deletions

2
dist/index.js vendored
View File

@ -1761,7 +1761,7 @@ class KubernetesStorage {
};
const result = yield kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
core.info(`Persistent Volume Claim ${(_a = result.body.metadata) === null || _a === void 0 ? void 0 : _a.name} created`);
assert_1.strict.strictEqual((_b = result.body.metadata) === null || _b === void 0 ? void 0 : _b.name, pvcName, 'pvc name matches input');
assert_1.strict.strictEqual((_b = result.body.metadata) === null || _b === void 0 ? void 0 : _b.name, pvcName);
});
}
}

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -43,7 +43,7 @@ class KubernetesStorage {
};
const result = await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc);
core.info(`Persistent Volume Claim ${result.body.metadata?.name} created`);
assert.strictEqual(result.body.metadata?.name, pvcName, 'pvc name matches input');
assert.strictEqual(result.body.metadata?.name, pvcName);
}
}