@@ -160,7 +160,7 @@ class ManifestValidationTest : FunSpec({
160
160
)
161
161
}
162
162
163
- test("primitive types with 'allowedValues ' attribute") {
163
+ test("primitive types with 'allowed-values ' attribute") {
164
164
// given
165
165
val manifest = TypesManifest (
166
166
inputs = mapOf(
@@ -178,10 +178,10 @@ class ManifestValidationTest : FunSpec({
178
178
result shouldBe ActionValidationResult (
179
179
overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
180
180
inputs = mapOf(
181
- "string-input" to ItemValidationResult .Invalid ("'allowedValues ' is not allowed for this type."),
182
- "boolean-input" to ItemValidationResult .Invalid ("'allowedValues ' is not allowed for this type."),
183
- "integer-input" to ItemValidationResult .Invalid ("'allowedValues ' is not allowed for this type."),
184
- "float-input" to ItemValidationResult .Invalid ("'allowedValues ' is not allowed for this type."),
181
+ "string-input" to ItemValidationResult .Invalid ("'allowed-values ' is not allowed for this type."),
182
+ "boolean-input" to ItemValidationResult .Invalid ("'allowed-values ' is not allowed for this type."),
183
+ "integer-input" to ItemValidationResult .Invalid ("'allowed-values ' is not allowed for this type."),
184
+ "float-input" to ItemValidationResult .Invalid ("'allowed-values ' is not allowed for this type."),
185
185
),
186
186
)
187
187
}
@@ -212,7 +212,7 @@ class ManifestValidationTest : FunSpec({
212
212
)
213
213
}
214
214
215
- test("non-list types with 'listItem ' attribute") {
215
+ test("non-list types with 'list-item ' attribute") {
216
216
// given
217
217
val manifest = TypesManifest (
218
218
inputs = mapOf(
@@ -235,11 +235,11 @@ class ManifestValidationTest : FunSpec({
235
235
result shouldBe ActionValidationResult (
236
236
overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
237
237
inputs = mapOf(
238
- "string-input" to ItemValidationResult .Invalid ("'listItem ' is not allowed for this type."),
239
- "boolean-input" to ItemValidationResult .Invalid ("'listItem ' is not allowed for this type."),
240
- "integer-input" to ItemValidationResult .Invalid ("'listItem ' is not allowed for this type."),
241
- "float-input" to ItemValidationResult .Invalid ("'listItem ' is not allowed for this type."),
242
- "enum-input" to ItemValidationResult .Invalid ("'listItem ' is not allowed for this type."),
238
+ "string-input" to ItemValidationResult .Invalid ("'list-item ' is not allowed for this type."),
239
+ "boolean-input" to ItemValidationResult .Invalid ("'list-item ' is not allowed for this type."),
240
+ "integer-input" to ItemValidationResult .Invalid ("'list-item ' is not allowed for this type."),
241
+ "float-input" to ItemValidationResult .Invalid ("'list-item ' is not allowed for this type."),
242
+ "enum-input" to ItemValidationResult .Invalid ("'list-item ' is not allowed for this type."),
243
243
),
244
244
)
245
245
}
@@ -264,7 +264,7 @@ class ManifestValidationTest : FunSpec({
264
264
)
265
265
}
266
266
267
- test("enum type without 'allowedValues ' attribute") {
267
+ test("enum type without 'allowed-values ' attribute") {
268
268
// given
269
269
val manifest = TypesManifest (
270
270
inputs = mapOf(
@@ -304,7 +304,7 @@ class ManifestValidationTest : FunSpec({
304
304
)
305
305
}
306
306
307
- test("list type without 'listItem ' attribute") {
307
+ test("list type without 'list-item ' attribute") {
308
308
// given
309
309
val manifest = TypesManifest (
310
310
inputs = mapOf(
@@ -344,7 +344,7 @@ class ManifestValidationTest : FunSpec({
344
344
)
345
345
}
346
346
347
- test("list type with 'allowedValues ' attribute") {
347
+ test("list type with 'allowed-values ' attribute") {
348
348
// given
349
349
val manifest = TypesManifest (
350
350
inputs = mapOf(
@@ -364,7 +364,7 @@ class ManifestValidationTest : FunSpec({
364
364
result shouldBe ActionValidationResult (
365
365
overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
366
366
inputs = mapOf(
367
- "list-input" to ItemValidationResult .Invalid ("'allowedValues ' is not allowed for this type."),
367
+ "list-input" to ItemValidationResult .Invalid ("'allowed-values ' is not allowed for this type."),
368
368
),
369
369
)
370
370
}
@@ -432,7 +432,7 @@ class ManifestValidationTest : FunSpec({
432
432
"List item type: Allowed values must be specified.",
433
433
),
434
434
"list-of-integers-with-allowed-values-input" to ItemValidationResult .Invalid (
435
- "List item type: 'allowedValues ' is not allowed for this type."
435
+ "List item type: 'allowed-values ' is not allowed for this type."
436
436
),
437
437
"list-of-unknown-type-input" to ItemValidationResult .Invalid (
438
438
"List item type: Unknown type: 'for-sure-unknown-type'."
@@ -460,11 +460,11 @@ class ManifestValidationTest : FunSpec({
460
460
result shouldBe ActionValidationResult (
461
461
overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
462
462
inputs = mapOf(
463
- "string-input" to ItemValidationResult .Invalid ("'namedValues ' are currently supported only for integers."),
464
- "boolean-input" to ItemValidationResult .Invalid ("'namedValues ' are currently supported only for integers."),
465
- "float-input" to ItemValidationResult .Invalid ("'namedValues ' are currently supported only for integers."),
466
- "list-input" to ItemValidationResult .Invalid ("'namedValues ' are currently supported only for integers."),
467
- "enum-input" to ItemValidationResult .Invalid ("'namedValues ' are currently supported only for integers."),
463
+ "string-input" to ItemValidationResult .Invalid ("'named-values ' are currently supported only for integers."),
464
+ "boolean-input" to ItemValidationResult .Invalid ("'named-values ' are currently supported only for integers."),
465
+ "float-input" to ItemValidationResult .Invalid ("'named-values ' are currently supported only for integers."),
466
+ "list-input" to ItemValidationResult .Invalid ("'named-values ' are currently supported only for integers."),
467
+ "enum-input" to ItemValidationResult .Invalid ("'named-values ' are currently supported only for integers."),
468
468
),
469
469
)
470
470
}
0 commit comments