use of com.ibm.streamsx.topology.test.AllowAll in project streamsx.topology by IBMStreams.
the class PlaceableTest method testSimpleDistributedHostTags.
/**
* Test with a distributed execution with explicit
* colocation of two functions end up on the same container.
*/
@Test
// TODO
@Ignore("Need to figure out how to get the tags set by the test")
public void testSimpleDistributedHostTags() throws Exception {
assumeTrue(SC_OK);
assumeTrue(getTesterType() == StreamsContext.Type.DISTRIBUTED_TESTER);
Topology t = newTopology();
TStream<String> sa = t.strings("a");
sa.addResourceTags("application");
sa = sa.filter(new AllowAll<String>());
sa.addResourceTags("application");
getConfig().put(ContextProperties.KEEP_ARTIFACTS, Boolean.TRUE);
Condition<List<String>> aout = t.getTester().stringContents(sa, "a");
complete(t.getTester(), aout, 10, TimeUnit.SECONDS);
assertTrue(aout.getResult().toString(), aout.valid());
}
Aggregations