k8s-features
Version:
A Cucumber-js base library for Kubernetes Gherkin tests, with base world class, basic steps, reusable utility functions and k8s client
28 lines (25 loc) • 614 B
JavaScript
const { When } = require('@cucumber/cucumber');
When(
'resource {word} is applied:',
/**
* @this import("../support/world.cjs").MyWorld
* @param {string} alias
* @param {string} manifest
* @returns {Promise}
*/
async function(alias, manifest) {
await this.applyWatchedManifest(alias, manifest);
}
);
When(
'resource {word} is created:',
/**
* @this import("../support/world.cjs").MyWorld
* @param {string} alias
* @param {string} manifest
* @returns {Promise}
*/
async function(alias, manifest) {
await this.applyWatchedManifest(alias, manifest, true);
}
);