brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ahgittin <...@git.apache.org>
Subject [GitHub] brooklyn-server pull request #462: Inherit config default values
Date Tue, 14 Feb 2017 00:50:45 GMT
Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/462#discussion_r100937270
  
    --- Diff: camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/catalog/SpecParameterUnwrappingTest.java
---
    @@ -309,7 +298,7 @@ public void testCatalogConfigOverridesParameters() {
             CatalogItem<?, ?> item = catalog.getCatalogItem(SYMBOLIC_NAME, TEST_VERSION);
             AbstractBrooklynObjectSpec<?,?> spec = catalog.peekSpec(item);
             List<SpecParameter<?>> params = spec.getParameters();
    -        assertEquals(params.size(), 3);
    +        assertEquals(params.size(), NUM_ENTITY_DEFAULT_CONFIG_KEYS + 2);
    --- End diff --
    
    if we deployed i think it would be; here we're just doing `peekSpec` so it doesn't have
the app config keys, it just has `NUM_ENTITY_DEFAULT_CONFIG_KEYS + ConfigEntityForTest.NUM_CONFIG_KEYS_DEFINED_HERE
+ NUM_CONFIG_KEYS_FROM_TEST_BLUEPRINT` = `1+1+1`


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message