@@ -160,7 +160,7 @@ class ManifestValidationTest : FunSpec({
160160 )
161161 }
162162
163- test("primitive types with 'allowedValues ' attribute") {
163+ test("primitive types with 'allowed-values ' attribute") {
164164 // given
165165 val manifest = TypesManifest (
166166 inputs = mapOf(
@@ -178,10 +178,10 @@ class ManifestValidationTest : FunSpec({
178178 result shouldBe ActionValidationResult (
179179 overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
180180 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."),
185185 ),
186186 )
187187 }
@@ -212,7 +212,7 @@ class ManifestValidationTest : FunSpec({
212212 )
213213 }
214214
215- test("non-list types with 'listItem ' attribute") {
215+ test("non-list types with 'list-item ' attribute") {
216216 // given
217217 val manifest = TypesManifest (
218218 inputs = mapOf(
@@ -235,11 +235,11 @@ class ManifestValidationTest : FunSpec({
235235 result shouldBe ActionValidationResult (
236236 overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
237237 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."),
243243 ),
244244 )
245245 }
@@ -264,7 +264,7 @@ class ManifestValidationTest : FunSpec({
264264 )
265265 }
266266
267- test("enum type without 'allowedValues ' attribute") {
267+ test("enum type without 'allowed-values ' attribute") {
268268 // given
269269 val manifest = TypesManifest (
270270 inputs = mapOf(
@@ -304,7 +304,7 @@ class ManifestValidationTest : FunSpec({
304304 )
305305 }
306306
307- test("list type without 'listItem ' attribute") {
307+ test("list type without 'list-item ' attribute") {
308308 // given
309309 val manifest = TypesManifest (
310310 inputs = mapOf(
@@ -344,7 +344,7 @@ class ManifestValidationTest : FunSpec({
344344 )
345345 }
346346
347- test("list type with 'allowedValues ' attribute") {
347+ test("list type with 'allowed-values ' attribute") {
348348 // given
349349 val manifest = TypesManifest (
350350 inputs = mapOf(
@@ -364,7 +364,7 @@ class ManifestValidationTest : FunSpec({
364364 result shouldBe ActionValidationResult (
365365 overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
366366 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."),
368368 ),
369369 )
370370 }
@@ -432,7 +432,7 @@ class ManifestValidationTest : FunSpec({
432432 "List item type: Allowed values must be specified.",
433433 ),
434434 "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."
436436 ),
437437 "list-of-unknown-type-input" to ItemValidationResult .Invalid (
438438 "List item type: Unknown type: 'for-sure-unknown-type'."
@@ -460,11 +460,11 @@ class ManifestValidationTest : FunSpec({
460460 result shouldBe ActionValidationResult (
461461 overallResult = ItemValidationResult .Invalid ("Some typing is invalid."),
462462 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."),
468468 ),
469469 )
470470 }
0 commit comments