Skip to content

Commit 760573f

Browse files
committed
Adopting tests to role listener
1 parent aa56092 commit 760573f

5 files changed

Lines changed: 7 additions & 9 deletions

File tree

tests/templates/kuttl/external-access/20-assert.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ metadata:
3030
name: test-hive-metastore
3131
spec:
3232
type: ClusterIP # cluster-internal
33-

tests/templates/kuttl/external-access/listener-classes.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ metadata:
55
name: test-cluster-internal-$NAMESPACE
66
spec:
77
serviceType: ClusterIP
8-

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.$NAMESPACE.svc.cluster.local
72+
python /tmp/scripts/metastore.py -m hive-metastore.$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..kuttl-test-brave-caribou.svc.cluster.local"
95+
# host is something like "hive-metastore..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", "hive")
97+
host = host.replace("hive-metastore", "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.$NAMESPACE.svc.cluster.local
72+
python /tmp/scripts/metastore.py -m hive-metastore.$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.kuttl-test-brave-caribou.svc.cluster.local"
95+
# host is something like "hive-metastore.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", "hive")
97+
host = host.replace("hive-metastore", "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.$NAMESPACE.svc.cluster.local
5+
- script: kubectl exec -n $NAMESPACE test-metastore-0 -- python /tmp/test_metastore.py -m hive-metastore.$NAMESPACE.svc.cluster.local

0 commit comments

Comments
 (0)