github.com/kyma-project/kyma-environment-broker@v0.0.1/testing/e2e/skr/skr-test/deprovision-skr.js (about) 1 const { 2 gatherOptions, 3 } = require('./index'); 4 const {deprovisionAndUnregisterSKR} = require('./provision/deprovision-skr'); 5 const {getEnvOrThrow} = require('./helpers'); 6 7 const deprovisioningTimeout = 1000 * 60 * 95; // 95m 8 let globalTimeout = 1000 * 60 * 70; // 70m 9 const slowTime = 5000; 10 11 describe('De-provision SKR instance', function() { 12 globalTimeout += deprovisioningTimeout; 13 14 this.timeout(globalTimeout); 15 this.slow(slowTime); 16 17 let options; 18 const instanceID = getEnvOrThrow('INSTANCE_ID'); 19 20 before('Gather options', async function() { 21 options = gatherOptions(); // with default values 22 options.instanceID = instanceID; 23 }); 24 25 it('should de-provision SKR cluster', async function() { 26 this.timeout(deprovisioningTimeout); 27 console.log(`SKR Instance ID: ${options.instanceID}`); 28 await deprovisionAndUnregisterSKR(options, deprovisioningTimeout, false, false); 29 }); 30 });