Package com.sequenceiq.cloudbreak.domain

Examples of com.sequenceiq.cloudbreak.domain.AwsTemplate


                azureTemplate.setVolumeSize(100);
                azureTemplate.setDescription("azure test template");
                azureTemplate.setPublicInAccount(true);
                return azureTemplate;
            case AWS:
                AwsTemplate awsTemplate = new AwsTemplate();
                awsTemplate.setId(1L);
                awsTemplate.setOwner(owner);
                awsTemplate.setAccount(account);
                awsTemplate.setInstanceType(InstanceType.C1Medium);
                awsTemplate.setRegion(Regions.EU_WEST_1);
                awsTemplate.setAmiId("ami-12345");
                awsTemplate.setVolumeType(VolumeType.Gp2);
                awsTemplate.setSshLocation("0.0.0.0/0");
                awsTemplate.setVolumeCount(1);
                awsTemplate.setVolumeSize(100);
                awsTemplate.setDescription("aws test template");
                awsTemplate.setPublicInAccount(true);
                return awsTemplate;
            case GCC:
                GccTemplate gccTemplate = new GccTemplate();
                gccTemplate.setId(1L);
                gccTemplate.setContainerCount(0);
View Full Code Here


        credential.setPublicKey(PUBLIC_KEY);
        return credential;
    }

    public static AwsTemplate createAwsTemplate() {
        AwsTemplate awsTemplate = new AwsTemplate();
        awsTemplate.setId(DEFAULT_ID);
        awsTemplate.setRegion(Regions.DEFAULT_REGION);
        awsTemplate.setInstanceType(InstanceType.C1Medium);
        awsTemplate.setSshLocation(SSH_LOCATION);
        awsTemplate.setVolumeCount(2);
        awsTemplate.setVolumeSize(60);
        awsTemplate.setVolumeType(VolumeType.Gp2);
        awsTemplate.setSpotPrice(0.4);
        return awsTemplate;
    }
View Full Code Here

        awsTemplate.setSpotPrice(0.4);
        return awsTemplate;
    }

    public static AwsTemplate createAwsTemplateWithZeroVolumes() {
        AwsTemplate awsTemplate = new AwsTemplate();
        awsTemplate.setId(DEFAULT_ID);
        awsTemplate.setRegion(Regions.DEFAULT_REGION);
        awsTemplate.setInstanceType(InstanceType.C1Medium);
        awsTemplate.setSshLocation(SSH_LOCATION);
        awsTemplate.setVolumeCount(0);
        awsTemplate.setVolumeSize(60);
        awsTemplate.setVolumeType(VolumeType.Gp2);
        return awsTemplate;
    }
View Full Code Here

    @Before
    public void setUp() {
        underTest = new SimpleTemplateService();
        MockitoAnnotations.initMocks(this);
        awsTemplate = new AwsTemplate();
        awsTemplate.setId(1L);
        azureTemplate = new AzureTemplate();
        azureTemplate.setId(1L);
    }
View Full Code Here

    @Test
    public void testConvertAwsTemplateConverterJsonToEntity() {
        // GIVEN
        // WHEN
        AwsTemplate result = underTest.convert(templateJson);
        assertEquals(result.cloudPlatform(), templateJson.getCloudPlatform());
    }
View Full Code Here

        templateJson.setParameters(props);
        return templateJson;
    }

    private AwsTemplate creteAwsTemplate() {
        AwsTemplate awsTemplate = new AwsTemplate();
        awsTemplate.setId(DUMMY_ID);
        awsTemplate.setDescription(DUMMY_DESCRIPTION);
        awsTemplate.setInstanceType(InstanceType.C1Medium);
        awsTemplate.setRegion(Regions.DEFAULT_REGION);
        awsTemplate.setSshLocation(DUMMY_SSH_LOCATION);
        awsTemplate.setAmiId(DUMMY_AMI_ID);
        awsTemplate.setName(DUMMY_NAME);
        awsTemplate.setPublicInAccount(true);
        return awsTemplate;
    }
View Full Code Here

TOP

Related Classes of com.sequenceiq.cloudbreak.domain.AwsTemplate

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.