Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

CLOUDIFY-1503 -Added test for bootstrap Ubuntu on Azure #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package org.cloudifysource.quality.iTests.test.cli.cloudify.cloud.azure;

import org.cloudifysource.quality.iTests.framework.utils.CloudBootstrapper;
import org.cloudifysource.quality.iTests.test.cli.cloudify.cloud.NewAbstractCloudTest;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;

/**
* Created with IntelliJ IDEA.
* User: inbarc
* CLOUDIFY-1503
* Date: 5/28/13
* Time: 1:01 PM
* To change this template use File | Settings | File Templates.
*/
public class AzureUbuntuTest extends NewAbstractCloudTest {

@Test(timeOut = DEFAULT_TEST_TIMEOUT * 5 , enabled = true)
protected void bootstrap() throws Exception {

CloudBootstrapper bootstrapper= new CloudBootstrapper();
bootstrapper.timeoutInMinutes(15);

super.bootstrap(bootstrapper);
}

@AfterClass
public void teardown() {
try {
super.teardown();
} catch (Exception e) {
e.printStackTrace();
}
}

@Override
protected void customizeCloud() throws Exception {
super.customizeCloud();
getService().getAdditionalPropsToReplace().put("managementMachineTemplate \"SMALL_LINUX\"", "managementMachineTemplate \"UBUNTU\"") ;
}


@Override
protected String getCloudName() {
return "azure";
}

@Override
protected boolean isReusableCloud() {
return false;
}
}
36 changes: 35 additions & 1 deletion src/main/resources/apps/cloudify/cloud/azure/azure-cloud.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,41 @@ cloud {
"azure.pfx.password" : pfxPassword
])
},

UBUNTU : computeTemplate{


imageId "0b11de9248dd4d87b18621318e037d37__RightImage-Ubuntu-12.04-x64-v13.4"
machineMemoryMB 1600
hardwareId "Small"
localDirectory "upload"

username username
password password

remoteDirectory "/home/${username}/gs-files"

custom ([

// Optional. each availability set represents a different fault domain.

"azure.availability.set" : "ENTER_AVAILABILITY_SET",

// Choose whether do deploy this instance in Staging or Production environment. defaults to Staging

"azure.deployment.slot": "ENTER_DEPLOYMENT_SLOT",

/**************************************************************
* Mandatory only for templates used for management machines. *
* Put this file under the path specified in 'localDirectory' *
***************************************************************/

"azure.pfx.file": pfxFile,

// Password that was used to create the certificate

"azure.pfx.password" : pfxPassword
])
},
TOMCAT : computeTemplate{


Expand Down