e2e: print kubernetes version at startup
@@ -23,6 +23,16 @@ test.serial('Verify environment variables', t => {
t.truthy(cluster, 'Make sure kubectl is logged into a cluster.')
})
+test.serial('Get Kubernetes version', t => {
+ let result = sh.exec('kubectl version ')
+ if (result.code !== 0) {
+ t.fail('error getting Kubernetes version')
+ } else {
+ t.log('kubernetes version: ' + result.stdout)
+ t.pass()
+ }
+})
+
test.serial('Deploy Keda', t => {
let result = sh.exec('kubectl get namespace keda')
if (result.code !== 0 && result.stderr.indexOf('not found') !== -1) {
