diff --git a/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy b/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy index aac0364a7..3240fdd90 100644 --- a/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy +++ b/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy @@ -225,7 +225,7 @@ class MetacatSmokeSpec extends Specification { tableDTO.metadata.get("metadata_location").equals(metadataLocation) } tableDTO.getFields().size() == 2 - def nestedFieldDto = tableDTO.getFields().find { it.pos == 1 } + def nestedFieldDto = tableDTO.getFields().find { it.name == "info" } // assert that the type field also keeps the name fidelity assert nestedFieldDto.type == "(name: chararray,address: (NAME: chararray),nestedArray: {(FIELD1: chararray,field2: chararray)})" : "The type differ from the expected. They are: $nestedFieldDto.type"