Assert PVC created name is === input name

pull/273/head
Frostebite 2021-06-19 01:48:41 +01:00
parent 6aecb70e9b
commit b22ed1cd3c
3 changed files with 26 additions and 26 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(((_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, 'pvc name matches input');
});
}
}

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(result.body.metadata?.name === pvcName, 'pvc name matches input');
assert.strictEqual(result.body.metadata?.name, pvcName, 'pvc name matches input');
}
}