Repository: incubator-brooklyn Updated Branches: refs/heads/master 10853fc04 -> c43a619bf
Riak - Add SoftlayerTest Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/23817b4a Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/23817b4a Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/23817b4a Branch: refs/heads/master Commit: 23817b4a0cd6fcc4c4ea2c79935dbda8e285181b Parents: 4f6fa6c Author: Valentin Aitken <[email protected]> Authored: Tue Apr 14 17:10:22 2015 +0300 Committer: Valentin Aitken <[email protected]> Committed: Tue Apr 14 17:10:22 2015 +0300 ---------------------------------------------------------------------- .../nosql/riak/RiakNodeSoftlayerLiveTest.java | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/23817b4a/software/nosql/src/test/java/brooklyn/entity/nosql/riak/RiakNodeSoftlayerLiveTest.java ---------------------------------------------------------------------- diff --git a/software/nosql/src/test/java/brooklyn/entity/nosql/riak/RiakNodeSoftlayerLiveTest.java b/software/nosql/src/test/java/brooklyn/entity/nosql/riak/RiakNodeSoftlayerLiveTest.java new file mode 100644 index 0000000..3ddd4b8 --- /dev/null +++ b/software/nosql/src/test/java/brooklyn/entity/nosql/riak/RiakNodeSoftlayerLiveTest.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package brooklyn.entity.nosql.riak; + +import brooklyn.entity.AbstractSoftlayerLiveTest; +import brooklyn.entity.proxying.EntitySpec; +import brooklyn.location.Location; +import brooklyn.test.EntityTestUtils; +import com.google.common.collect.ImmutableList; +import org.testng.annotations.BeforeMethod; + +public class RiakNodeSoftlayerLiveTest extends AbstractSoftlayerLiveTest { + + @BeforeMethod(alwaysRun=true) + public void setUp() throws Exception { + super.setUp(); + } + + @Override + protected void doTest(Location loc) throws Exception { + RiakNode entity = app.createAndManageChild(EntitySpec.create(RiakNode.class)); + app.start(ImmutableList.of(loc)); + + EntityTestUtils.assertAttributeEqualsEventually(entity, RiakNode.SERVICE_UP, true); + } +}
