Skip to content
Permalink
Browse files

Minor

  • Loading branch information...
richturner committed Oct 4, 2019
1 parent 13dd81b commit e797039b603eb1f78cb5449f580b40ef9710b529
@@ -76,7 +76,7 @@
null)),

TAGS(
"tags", AttributeValueType.ARRAY,
"assetTags", AttributeValueType.ARRAY,
LABEL.withInitialValue(Values.create("Asset Tags")),
DESCRIPTION.withInitialValue(Values.create("List of tags associated with an asset"))
);
@@ -81,7 +81,7 @@ class AssetModelResourceTest extends Specification implements ManagerContainerTr
def attributeTypeDescriptors = assetModelResource.getAttributeDescriptors(null)

then: "the default types should be present"
attributeTypeDescriptors.size() == 12
attributeTypeDescriptors.size() == 13
attributeTypeDescriptors.any {it.attributeName == "consoleName"}
attributeTypeDescriptors.any {it.attributeName == "consoleVersion"}
attributeTypeDescriptors.any {it.attributeName == "consolePlatform"}
@@ -93,7 +93,8 @@ class AssetModelResourceTest extends Specification implements ManagerContainerTr
attributeTypeDescriptors.any {it.attributeName == "street"}
attributeTypeDescriptors.any {it.attributeName == "location"}
attributeTypeDescriptors.any {it.attributeName == "surfaceArea"}
attributeTypeDescriptors.any {it.attributeName == "status"}
attributeTypeDescriptors.any {it.attributeName == "assetStatus"}
attributeTypeDescriptors.any {it.attributeName == "assetTags"}

when: "a request for Attribute value types is made"

0 comments on commit e797039

Please sign in to comment.
You can’t perform that action at this time.