Package com.netflix.simianarmy.conformity

Examples of com.netflix.simianarmy.conformity.AutoScalingGroup


        Assert.assertEquals(result.getFailedComponents().iterator().next(), INSTANCE_ID);
    }

    @Test
    public void testAsgInstances() throws Exception {
        AutoScalingGroup autoScalingGroup = new AutoScalingGroup("Conforming", VPC_INSTANCE_ID);
        Cluster conformingCluster = new Cluster("Conforming", REGION, autoScalingGroup);
        Conformity result = instanceInVPC.check(conformingCluster);
        Assert.assertNotNull(result);
        Assert.assertEquals(result.getRuleId(), instanceInVPC.getName());
        Assert.assertEquals(result.getFailedComponents().size(), 0);

        autoScalingGroup = new AutoScalingGroup("NonConforming", INSTANCE_ID);
        Cluster nonConformingCluster = new Cluster("NonConforming", REGION, autoScalingGroup);
        result = instanceInVPC.check(nonConformingCluster);
        Assert.assertNotNull(result);
        Assert.assertEquals(result.getRuleId(), instanceInVPC.getName());
        Assert.assertEquals(result.getFailedComponents().size(), 1);
View Full Code Here

TOP

Related Classes of com.netflix.simianarmy.conformity.AutoScalingGroup

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.