Skip to content

Commit dc466df

Browse files
committed
split test to 6061 and 702 because of different results (e.g. 6061 doesn't support searchterms so 0 results)
1 parent f3aceaa commit dc466df

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+14146
-13882
lines changed

elmclient/examples/batchquery.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def do_tests(inputargs=None):
130130
# now go down the rows executing the specified test
131131
npassed = 0
132132
nfailed = 0
133+
failedtests = []
133134
firstquery = True
134135
for rep in range(args.reps):
135136
for n,row in enumerate(rows):
@@ -205,6 +206,7 @@ def do_tests(inputargs=None):
205206
# raise
206207
if (result != 0 and not exceptionexpected) or (result == 0 and exceptionexpected):
207208
nfailed += 1
209+
failedtests.append(str(testnumber))
208210

209211
print( f" TEST {testnumber} FAILED!!!!!!!!!!!!!!!!!!!!!\n" )
210212
if args.stoponfail:
@@ -216,6 +218,9 @@ def do_tests(inputargs=None):
216218

217219
if not args.dryrun:
218220
print( f"\nPassed {npassed} Failed {nfailed}" )
221+
if failedtests:
222+
faileds = '\n '+'\n '.join(failedtests)
223+
print( f"Failed tests:{faileds}" )
219224
else:
220225
print( f"Dry run completed" )
221226

elmclient/examples/oslcquery.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,12 +302,13 @@ def do_oslc_query(inputargs=None):
302302
args.component = args.projectname
303303
# not all apps support components, and even if the app does this project may not be opt-in
304304
if app.supports_components and not ( themaindomain == "gc" and args.resourcetype == 'Component'):
305-
if not p.singlemode and args.component is None:
306-
print( f"Warning - project '{args.projectname}' is opt-out, assuming the component has the same name as the project" )
307-
args.component = args.projectname
308305
if not p.singlemode and args.component is None and args.globalconfiguration is None:
309-
raise Exception( f"Project {args.projectname} supports components so you must provide a component name or use a global configuration" )
306+
# neither GC nor component provided, assume component name is same as project name
307+
args.component = args.projectname
308+
# print( f"Warning - project '{args.projectname}' is opt-out, assuming the component has the same name as the project" )
309+
# raise Exception( f"Project {args.projectname} supports components so you must provide a component name or use a global configuration" )
310310
if p.singlemode and args.globalconfiguration is None:
311+
# opt-out, the "component" name is the same as the project name
311312
args.component = args.projectname
312313
if args.saveconfigs:
313314
comps = p.report_components_and_configurations()
@@ -344,7 +345,9 @@ def do_oslc_query(inputargs=None):
344345
# assert the default configuration for this component if none is specified
345346
if args.configuration is None and args.globalconfiguration is None:
346347
args.configuration = c.initial_stream_name()
347-
print( f"Warning - project '{args.projectname}' is opt-in but for component '{args.component}' you didn't specify a local configuration - using default stream '{c.initial_stream_name()}'" )
348+
if not p.singlemode:
349+
# only warn that config not provided/assumed to be Initial Stream for an opt-in project
350+
print( f"Warning - project '{args.projectname}' is opt-in but for component '{args.component}' you didn't specify a local configuration - using default stream '{c.initial_stream_name()}'" )
348351
logger.info( f"{args.configuration=}" )
349352
if p.is_optin:
350353
if ( args.configuration or p.singlemode ) and args.globalconfiguration is None:

elmclient/tests/results/ccm301.html

Lines changed: 1291 additions & 1272 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)