public interface RelativeEntityTestCase extends TargetableTestComponent
For example, to run tests against a named child of an entity:
services
- id: app
brooklyn.children:
id: child-id
- id: test-case
brooklyn.config:
anchor: $brooklyn:component("app").descendant("child-id")
The anchor entity is resolved from the anchor, target or
targetId, in order of preference. The latter two are useful when using
the test with with entities like LoopOverGroupMembersTestCase. Values for
target will be overwritten with the resolved entity so child test
cases work as expected.org.apache.brooklyn.api.entity.Entity.AdjunctSupport<T extends org.apache.brooklyn.api.objs.EntityAdjunct>, org.apache.brooklyn.api.entity.Entity.EnricherSupport, org.apache.brooklyn.api.entity.Entity.GroupSupport, org.apache.brooklyn.api.entity.Entity.PolicySupport, org.apache.brooklyn.api.entity.Entity.SensorSupportorg.apache.brooklyn.api.objs.BrooklynObject.RelationSupport<T extends org.apache.brooklyn.api.objs.BrooklynObject>, org.apache.brooklyn.api.objs.BrooklynObject.SubscriptionSupport, org.apache.brooklyn.api.objs.BrooklynObject.TagSupportorg.apache.brooklyn.api.objs.Configurable.ConfigurationSupportStartable.RestartEffectorBody, Startable.StartEffectorBody, Startable.StopEffectorBody| Modifier and Type | Field and Description |
|---|---|
static AttributeSensorAndConfigKey<org.apache.brooklyn.api.entity.Entity,org.apache.brooklyn.api.entity.Entity> |
ANCHOR |
static org.apache.brooklyn.config.ConfigKey<DslComponent> |
COMPONENT |
TARGET_ENTITY, TARGET_ENTITY_ID, TARGET_ENTITY_NAME, TARGET_ENTITY_TYPE, TARGET_ID, TARGET_RESOLUTION_TIMEOUTRESTART, SERVICE_UP, START, STOPresolveTargetaddChild, addChild, addEnricher, addEnricher, addFeed, addGroup, addPolicy, addPolicy, clearParent, enrichers, getApplication, getApplicationId, getAttribute, getChildren, getConfig, getCreationTime, getDisplayName, getEnrichers, getEntityType, getGroups, getIconUrl, getId, getLocations, getParent, getPolicies, groups, invoke, policies, relations, removeChild, removeEnricher, removeGroup, removePolicy, sensors, setDisplayName, setParentgetCatalogItemId, getCatalogItemIdSearchPath, subscriptions, tagsstatic final AttributeSensorAndConfigKey<org.apache.brooklyn.api.entity.Entity,org.apache.brooklyn.api.entity.Entity> ANCHOR
static final org.apache.brooklyn.config.ConfigKey<DslComponent> COMPONENT
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.