@@ -36,6 +36,7 @@ public class CloudStackTestNGBase extends AbstractTestNGSpringContextTests {
3636 private String localStorageUuid ;
3737 private String primaryStorageUrl ;
3838 private String secondaryStorage ;
39+ private String imageInstallPath ;
3940 private Transaction txn ;
4041
4142 private String s3AccessKey ;
@@ -66,20 +67,22 @@ protected void closeDB(Method testMethod) throws Exception {
6667 }
6768
6869 @ BeforeMethod (alwaysRun = true )
70+
6971 @ Parameters ({"devcloud-host-uuid" , "devcloud-host-gateway" , "devcloud-host-cidr" ,
7072 "devcloud-host-ip" , "template-url" , "devcloud-local-storage-uuid" ,
71- "primary-storage-want-to-add" , "devcloud-secondary-storage" , "s3-accesskey" , "s3-secretkey" , "s3-endpoint" , "s3-template-bucket" , "s3-usehttps" })
73+ "primary-storage-want-to-add" , "devcloud-secondary-storage" , "s3-accesskey" , "s3-secretkey" , "s3-endpoint" , "s3-template-bucket" , "s3-usehttps" , "image-install-path" })
7274 protected void setup (String hostuuid , String gateway , String cidr ,
7375 String hostIp , String templateUrl , String localStorageUuid ,
7476 String primaryStorage , String secondaryStorage , String s3_accessKey , String s3_secretKey , String s3_endpoint , String s3_template_bucket ,
75- String s3_usehttps ) {
77+ String s3_usehttps , String imageInstallPath ) {
7678 this .hostGuid = hostuuid ;
7779 this .hostGateway = gateway ;
7880 this .hostCidr = cidr ;
7981 this .hostIp = hostIp ;
8082 this .templateUrl = templateUrl ;
8183 this .localStorageUuid = localStorageUuid ;
8284 this .primaryStorageUrl = primaryStorage ;
85+ this .imageInstallPath = imageInstallPath ;
8386 this .setSecondaryStorage (secondaryStorage );
8487 // set S3 parameters
8588 this .s3AccessKey = s3_accessKey ;
@@ -125,6 +128,7 @@ public void setSecondaryStorage(String secondaryStorage) {
125128 this .secondaryStorage = secondaryStorage ;
126129 }
127130
131+
128132 public String getS3AccessKey () {
129133 return s3AccessKey ;
130134 }
@@ -145,6 +149,12 @@ public boolean isS3UseHttps() {
145149 return s3UseHttps ;
146150 }
147151
152+ public String getImageInstallPath () {
153+ return imageInstallPath ;
154+ }
148155
156+ public void setImageInstallPath (String imageInstallPath ) {
157+ this .imageInstallPath = imageInstallPath ;
158+ }
149159
150160}
0 commit comments