github.com/kyma-project/kyma-environment-broker@v0.0.1/testing/e2e/skr/skr-aws-upgrade-integration/upgrade/upgrade-skr.js (about) 1 const {kcp} = require('../../skr-test/helpers'); 2 3 async function upgradeSKRInstance(options, kymaUpgradeVersion, timeout) { 4 try { 5 await kcp.upgradeKyma(options.instanceID, kymaUpgradeVersion, timeout); 6 console.log('Upgrade Done!'); 7 } catch (e) { 8 throw new Error(`Upgrade failed: ${e.toString()}`); 9 } finally { 10 const runtimeStatus = await kcp.getRuntimeStatusOperations(options.instanceID); 11 const events = await kcp.getRuntimeEvents(options.instanceID); 12 console.log(`\nRuntime status after upgrade: ${runtimeStatus}\nEvents:\n${events}`); 13 await kcp.reconcileInformationLog(runtimeStatus); 14 } 15 } 16 17 module.exports = { 18 upgradeSKRInstance, 19 };