diff --git a/tests/templates/kuttl/kerberos/40-access-hbase.j2 b/tests/templates/kuttl/kerberos/40-access-hbase.j2 deleted file mode 100644 index 543f52d0..00000000 --- a/tests/templates/kuttl/kerberos/40-access-hbase.j2 +++ /dev/null @@ -1,70 +0,0 @@ ---- -apiVersion: kuttl.dev/v1beta1 -kind: TestStep -commands: - - script: | - kubectl apply -n $NAMESPACE -f - < /stackable/conf/hbase/hbase-site.xml + cat /stackable/conf/hdfs_mount/core-site.xml | sed -e 's/${env.KERBEROS_REALM}/'"$KERBEROS_REALM/g" > /stackable/conf/hbase/core-site.xml + cat /stackable/conf/hdfs_mount/hdfs-site.xml | sed -e 's/${env.KERBEROS_REALM}/'"$KERBEROS_REALM/g" > /stackable/conf/hbase/hdfs-site.xml + + cat > /tmp/hbase-script << 'EOF' + disable 'test'; + drop 'test'; + + create 'test', 'cf1'; + put 'test', 'row1', 'cf1', 42; + put 'test', 'row2', 'cf1', 43; + put 'test', 'row3', 'cf1', 44; + scan 'test'; + count 'test'; + EOF + + if bin/hbase shell /tmp/hbase-script | grep -q '=> 3'; then + echo "test passed" + exit 0 + else + echo "test failed" + echo "Lets re-run to get command output:" + bin/hbase shell /tmp/hbase-script + exit 1 + fi diff --git a/tests/templates/kuttl/kerberos/40-assert.yaml b/tests/templates/kuttl/kerberos/41-assert.yaml similarity index 100% rename from tests/templates/kuttl/kerberos/40-assert.yaml rename to tests/templates/kuttl/kerberos/41-assert.yaml