Skip to content

Commit 934dc0e

Browse files
Merge pull request #228 from sysdiglabs/check-test-configuration-field
Check test configuration field
2 parents 91348f3 + f5da486 commit 934dc0e

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)