Skip to content

Commit

Permalink
Use local schema as default
Browse files Browse the repository at this point in the history
  • Loading branch information
bpross-52n committed Nov 29, 2023
1 parent 7d3e7d9 commit 6a6266b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() );

Expand Down
10 changes: 0 additions & 10 deletions src/main/scripts/ctl/ogcapi-processes-1.0-suite.ctl
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,6 @@
<input type="number" id="processTestLimit" name="processTestLimit" value="3"/>
</div>
</p>
<p>
<h4 style="margin-bottom: 0.5em">Use local OpenAPI schema</h4>
<div>
<label for="useLocalSchema">Use OpenAPI schema included in ETS instead of remote schema.</label>
<input type="checkBox" id="useLocalSchema" name="useLocalSchema" />
</div>
</p>
</fieldset>
<p>
<input class="form-button" type="submit" value="Start" />
Expand All @@ -109,9 +102,6 @@
<entry key="processtestlimit">
<xsl:value-of select="$form-data/values/value[@key='processTestLimit']" />
</entry>
<entry key="uselocalschema">
<xsl:value-of select="$form-data/values/value[@key='useLocalSchema']" />
</entry>
</properties>
</xsl:variable>
<xsl:variable name="testRunDir">
Expand Down
1 change: 0 additions & 1 deletion src/site/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
|===

0 comments on commit 6a6266b

Please sign in to comment.