Skip to content

Commit d8a9c05

Browse files
committed
Merge branch 'staging' into new-istio-version
2 parents b4e0d10 + 934dc0e commit d8a9c05

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/test_resources.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ def checkStringNotEmpty(res,element):
103103
and (element != "") and (element != None)
104104

105105
def checkListNotEmpty(res,element):
106-
assert (res['app'] != "") and (res['kind'] != "") and (type(element) == list) \
107-
and (len(element) > 0)
106+
assert (res['app'] != "") and (res['kind'] != "") and (type(element) == list)
108107

109108
def checkValidJSON(element):
110109
try:
@@ -216,7 +215,9 @@ def testDescriptionElement():
216215

217216
# Tests for configurations elements
218217
# For the resources with configurations:
219-
# Is list not empty
218+
# - app is not empty
219+
# - kind is not empty
220+
# - configuration is list
220221
def testConfigurationsElement():
221222
for kind in all_resources:
222223
for res in kind:

0 commit comments

Comments
 (0)