Skip to content

Commit e88fd8f

Browse files
committed
Fixing tests
1 parent de413d3 commit e88fd8f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/templates/kuttl/kerberos-hdfs/70-install-access-hive.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ data:
6969
kinit -kt /stackable/kerberos/keytab access-hive/access-hive."$NAMESPACE".svc.cluster.local
7070
klist
7171

72-
python /tmp/scripts/metastore.py -m hive-metastore-default-0.hive-metastore-default.$NAMESPACE.svc.cluster.local
72+
python /tmp/scripts/metastore.py -m hive-metastore-default.$NAMESPACE.svc.cluster.local
7373
metastore.py: |
7474
from hive_metastore_client import HiveMetastoreClient
7575
from hive_metastore_client.builders import (
@@ -92,9 +92,9 @@ data:
9292
@staticmethod
9393
def _init_protocol(host: str, port: int) -> TBinaryProtocol:
9494
transport = TSocket.TSocket(host, int(port))
95-
# host is something like "hive-metastore-default-0.hive-metastore-default.kuttl-test-brave-caribou.svc.cluster.local"
95+
# host is something like "hive-metastore-default..kuttl-test-brave-caribou.svc.cluster.local"
9696
# We need to change it to the host part of the HMS principal e.g. "hive.kuttl-test-brave-caribou.svc.cluster.local"
97-
host = host.replace("hive-metastore-default-0.hive-metastore-default", "hive")
97+
host = host.replace("hive-metastore-default", "hive")
9898
transport = TTransport.TSaslClientTransport(transport,
9999
# host part of the HMS principal (not the HMS client)
100100
host=host,

tests/templates/kuttl/kerberos-s3/70-install-access-hive.yaml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ data:
6969
kinit -kt /stackable/kerberos/keytab access-hive/access-hive."$NAMESPACE".svc.cluster.local
7070
klist
7171

72-
python /tmp/scripts/metastore.py -m hive-metastore-default-0.hive-metastore-default.$NAMESPACE.svc.cluster.local
72+
python /tmp/scripts/metastore.py -m hive-metastore-default.$NAMESPACE.svc.cluster.local
7373
metastore.py: |
7474
from hive_metastore_client import HiveMetastoreClient
7575
from hive_metastore_client.builders import (
@@ -92,9 +92,9 @@ data:
9292
@staticmethod
9393
def _init_protocol(host: str, port: int) -> TBinaryProtocol:
9494
transport = TSocket.TSocket(host, int(port))
95-
# host is something like "hive-metastore-default-0.hive-metastore-default.kuttl-test-brave-caribou.svc.cluster.local"
95+
# host is something like "hive-metastore-default.kuttl-test-brave-caribou.svc.cluster.local"
9696
# We need to change it to the host part of the HMS principal e.g. "hive.kuttl-test-brave-caribou.svc.cluster.local"
97-
host = host.replace("hive-metastore-default-0.hive-metastore-default", "hive")
97+
host = host.replace("hive-metastore-default", "hive")
9898
transport = TTransport.TSaslClientTransport(transport,
9999
# host part of the HMS principal (not the HMS client)
100100
host=host,

tests/templates/kuttl/smoke/80-assert.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: kuttl.dev/v1beta1
33
kind: TestAssert
44
commands:
5-
- script: kubectl exec -n $NAMESPACE test-metastore-0 -- python /tmp/test_metastore.py -m hive-metastore-default-0.hive-metastore-default.$NAMESPACE.svc.cluster.local
5+
- script: kubectl exec -n $NAMESPACE test-metastore-0 -- python /tmp/test_metastore.py -m hive-metastore-default.$NAMESPACE.svc.cluster.local

0 commit comments

Comments
 (0)