Github user neykov commented on a diff in the pull request:
https://github.com/apache/incubator-brooklyn/pull/346#discussion_r20653841
--- Diff:
usage/rest-server/src/test/java/brooklyn/rest/resources/CatalogResourceTest.java
---
@@ -194,6 +194,19 @@ public void testGetCatalogEntityDetails() {
}
@Test
+ @Deprecated
+ //If we move to using a yaml catalog item, the details will be of the
wrapping app,
+ //not of the entity itself, so the test won't make sense any more.
+ public void testGetCatalogEntityPlusVersionDetails() {
+ CatalogEntitySummary details = client().resource(
+
URI.create("/v1/catalog/entities/brooklyn.entity.nosql.redis.RedisStore:0.0.0.SNAPSHOT"))
+ .get(CatalogEntitySummary.class);
+ assertTrue(details.toString().contains("redis.port"), "expected more
config, only got: "+details);
+ String iconUrl = "/v1/catalog/icon/" + details.getSymbolicName();
--- End diff --
Use the versioned API where possible - "/v1/catalog/icon/" +
details.getSymbolicName() + "/" + details.getVersion()
The current URL will return the latest item (not necessary the one we
expect).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---