From 6a6266b594b0375ea30afbf11923cbf1813b8d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Pro=C3=9F?= Date: Wed, 29 Nov 2023 08:38:34 +0100 Subject: [PATCH] Use local schema as default --- .../ogcapiprocesses10/SuiteFixtureListener.java | 13 +------------ src/main/scripts/ctl/ogcapi-processes-1.0-suite.ctl | 10 ---------- src/site/asciidoc/index.adoc | 1 - 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/src/main/java/org/opengis/cite/ogcapiprocesses10/SuiteFixtureListener.java b/src/main/java/org/opengis/cite/ogcapiprocesses10/SuiteFixtureListener.java index 00b031b..93407fc 100644 --- a/src/main/java/org/opengis/cite/ogcapiprocesses10/SuiteFixtureListener.java +++ b/src/main/java/org/opengis/cite/ogcapiprocesses10/SuiteFixtureListener.java @@ -90,18 +90,7 @@ void processSuiteParameters( ISuite suite ) { TestRunArg.PROCESSTESTLIMIT.toString(), limit ) ); } - String useLocalSchema = params.get( TestRunArg.USELOCALSCHEMA.toString() ); - try { - if ( useLocalSchema != null ) { - suite.setAttribute( SuiteAttribute.USE_LOCAL_SCHEMA.getName(), Boolean.valueOf(useLocalSchema.equals("on")?true:false) ); - }else { - suite.setAttribute( SuiteAttribute.USE_LOCAL_SCHEMA.getName(), false ); - } - } catch ( NumberFormatException e ) { - TestSuiteLogger.log( Level.WARNING, - String.format( "Could not parse parameter %s: %s. Expected is a valid string", - TestRunArg.USELOCALSCHEMA.toString(), useLocalSchema ) ); - } + suite.setAttribute( SuiteAttribute.USE_LOCAL_SCHEMA.getName(), true ); String testAllProcesses = params.get( TestRunArg.TESTALLPROCESSES.toString() ); diff --git a/src/main/scripts/ctl/ogcapi-processes-1.0-suite.ctl b/src/main/scripts/ctl/ogcapi-processes-1.0-suite.ctl index bdfb013..be679a4 100644 --- a/src/main/scripts/ctl/ogcapi-processes-1.0-suite.ctl +++ b/src/main/scripts/ctl/ogcapi-processes-1.0-suite.ctl @@ -80,13 +80,6 @@

-

-

Use local OpenAPI schema

-
- - -
-

@@ -109,9 +102,6 @@ - - - diff --git a/src/site/asciidoc/index.adoc b/src/site/asciidoc/index.adoc index 0d1504c..0f6d272 100644 --- a/src/site/asciidoc/index.adoc +++ b/src/site/asciidoc/index.adoc @@ -36,5 +36,4 @@ The test run arguments are summarized in Table 3\. The _Obligation_ descriptor c | echoprocessid | String | M | The identifier of the process used for execute operation tests. | testallprocesses | Boolean | C | If true, all processes of the test instance will be used for testing. | processtestlimit | Integer | C | Number of processes to be tested. Not applicable when _testallprocesses_ is set to true. -| uselocalschema | Boolean | O | If true, a local OpenAPI schema will be used for testing. |=== \ No newline at end of file