-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for disabling of order verification for simple collection (#160)
Support for disabling of order verification for simple collection
- Loading branch information
1 parent
6a0fc5b
commit 0b8e211
Showing
12 changed files
with
190 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
release_version = 3.9.1 | ||
release_version = 3.10.0 | ||
|
||
description = 'th2 check1 box' | ||
|
||
|
91 changes: 0 additions & 91 deletions
91
src/main/java/com/exactpro/th2/check1/configuration/Check1Configuration.java
This file was deleted.
Oops, something went wrong.
56 changes: 56 additions & 0 deletions
56
src/main/kotlin/com/exactpro/th2/check1/configuration/Check1Configuration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright 2020-2022 Exactpro (Exactpro Systems Limited) | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.exactpro.th2.check1.configuration | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
import com.fasterxml.jackson.annotation.JsonPropertyDescription | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize | ||
import com.fasterxml.jackson.datatype.jsr310.deser.DurationDeserializer | ||
import java.time.Duration | ||
import java.time.temporal.ChronoUnit | ||
|
||
class Check1Configuration( | ||
@field:JsonProperty(value = "message-cache-size", defaultValue = "1000") | ||
val messageCacheSize: Int = 1000, | ||
|
||
@field:JsonProperty(value = "cleanup-older-than", defaultValue = "60") | ||
val cleanupOlderThan: Long = 60L, | ||
|
||
@field:JsonProperty(value = "max-event-batch-content-size", defaultValue = "1048576") | ||
val maxEventBatchContentSize: Int = 1048576, | ||
|
||
@field:JsonProperty(value = "cleanup-time-unit", defaultValue = "SECONDS") | ||
val cleanupTimeUnit: ChronoUnit = ChronoUnit.SECONDS, | ||
|
||
@field:JsonProperty(value = "rule-execution-timeout", defaultValue = "5000") | ||
val ruleExecutionTimeout: Long = 5000L, | ||
|
||
@field:JsonProperty("auto-silence-check-after-sequence-rule") | ||
@field:JsonPropertyDescription("The default behavior in case the SequenceCheckRule does not have silenceCheck parameter specified") | ||
val isAutoSilenceCheckAfterSequenceRule: Boolean = false, | ||
|
||
@field:JsonProperty(value = "decimal-precision", defaultValue = "0.00001") | ||
val decimalPrecision: Double = 0.00001, | ||
|
||
@field:JsonProperty(value = "time-precision", defaultValue = "PT0.000000001S") | ||
@field:JsonDeserialize(using = DurationDeserializer::class) | ||
@field:JsonPropertyDescription("The default time precision value uses java duration format") | ||
val timePrecision: Duration = Duration.parse("PT0.000000001S"), | ||
|
||
@field:JsonProperty(value = "check-null-value-as-empty") | ||
val isCheckNullValueAsEmpty: Boolean = false, | ||
|
||
@field:JsonProperty(value = "default-check-simple-collections-order", defaultValue = "true") | ||
val isDefaultCheckSimpleCollectionsOrder: Boolean = true | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/kotlin/com/exactpro/th2/check1/rule/RuleFactoryTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.