add debug message for annotation tests

This commit is contained in:
Felix Kunde 2020-04-30 09:53:18 +02:00
parent d9f9b17338
commit 83849befd0
1 changed files with 2 additions and 0 deletions

View File

@ -732,6 +732,7 @@ class K8s:
for svc in svcs: for svc in svcs:
for key, value in annotations: for key, value in annotations:
if key not in svc.metadata.annotations or svc.metadata.annotations[key] != value: if key not in svc.metadata.annotations or svc.metadata.annotations[key] != value:
print("Expected key {} not found in annotations {}".format(key, svc.metadata.annotation))
return False return False
return True return True
@ -740,6 +741,7 @@ class K8s:
for sset in ssets: for sset in ssets:
for key, value in annotations: for key, value in annotations:
if key not in sset.metadata.annotations or sset.metadata.annotations[key] != value: if key not in sset.metadata.annotations or sset.metadata.annotations[key] != value:
print("Expected key {} not found in annotations {}".format(key, sset.metadata.annotation))
return False return False
return True return True