Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 583a6da

Browse files
author
Rustam Aliyev
committed
Move IT account password to abstract IT class, add more jclouds
providers.
1 parent 2ae88e4 commit 583a6da

File tree

3 files changed

+35
-7
lines changed

3 files changed

+35
-7
lines changed

itests/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@
258258
<type>bundle</type>
259259
<scope>provided</scope>
260260
</dependency>
261+
<dependency>
262+
<groupId>org.jclouds.api</groupId>
263+
<artifactId>filesystem</artifactId>
264+
<version>${bundle.jclouds.version}</version>
265+
<type>bundle</type>
266+
<scope>provided</scope>
267+
</dependency>
268+
<!-- Enable Amazon S3 -->
261269
<dependency>
262270
<groupId>org.jclouds.common</groupId>
263271
<artifactId>aws-common</artifactId>
@@ -279,6 +287,22 @@
279287
<type>bundle</type>
280288
<scope>provided</scope>
281289
</dependency>
290+
<!-- Enable Windows Azure Blob -->
291+
<dependency>
292+
<groupId>org.jclouds.common</groupId>
293+
<artifactId>azure-common</artifactId>
294+
<version>${bundle.jclouds.version}</version>
295+
<type>bundle</type>
296+
<scope>provided</scope>
297+
</dependency>
298+
<dependency>
299+
<groupId>org.jclouds.provider</groupId>
300+
<artifactId>azureblob</artifactId>
301+
<version>${bundle.jclouds.version}</version>
302+
<type>bundle</type>
303+
<scope>provided</scope>
304+
</dependency>
305+
282306
<dependency>
283307
<groupId>org.apache.servicemix.bundles</groupId>
284308
<artifactId>org.apache.servicemix.bundles.aopalliance</artifactId>

itests/src/test/java/com/elasticinbox/itests/AbstractIntegrationTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
public abstract class AbstractIntegrationTest
2626
{
2727
static final String TEST_ACCOUNT = "test@elasticinbox.com";
28+
static final String TEST_PASSWORD = "valid";
2829
static final String REST_PATH = "/rest/v2/elasticinbox.com/test";
2930
static final String EMAIL_LARGE_ATT = "/01-attach-utf8.eml";
3031
static final String EMAIL_REGULAR = "/01-headers-utf8.eml";
@@ -84,9 +85,12 @@ public Option[] config()
8485
mavenBundle().groupId("com.google.inject").artifactId("guice").versionAsInProject(),
8586
mavenBundle().groupId("org.jclouds").artifactId("jclouds-core").versionAsInProject(),
8687
mavenBundle().groupId("org.jclouds").artifactId("jclouds-blobstore").versionAsInProject(),
88+
mavenBundle().groupId("org.jclouds.api").artifactId("filesystem").versionAsInProject(),
8789
mavenBundle().groupId("org.jclouds.common").artifactId("aws-common").versionAsInProject(),
8890
mavenBundle().groupId("org.jclouds.provider").artifactId("aws-s3").versionAsInProject(),
8991
mavenBundle().groupId("org.jclouds.api").artifactId("s3").versionAsInProject(),
92+
mavenBundle().groupId("org.jclouds.common").artifactId("azure-common").versionAsInProject(),
93+
mavenBundle().groupId("org.jclouds.provider").artifactId("azureblob").versionAsInProject(),
9094
mavenBundle().groupId("org.apache.servicemix.bundles").artifactId("org.apache.servicemix.bundles.aopalliance").versionAsInProject(),
9195
mavenBundle().groupId("org.apache.servicemix.bundles").artifactId("org.apache.servicemix.bundles.javax-inject").versionAsInProject(),
9296
mavenBundle().groupId("org.apache.servicemix.bundles").artifactId("org.apache.servicemix.bundles.oauth-commons").versionAsInProject(),

itests/src/test/java/com/elasticinbox/itests/Pop3IT.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void testListUidl() throws IOException
109109
POP3Client client = new POP3Client();
110110
client.connect(POP3_HOST, POP3_PORT);
111111

112-
boolean loginSuccess = client.login(TEST_ACCOUNT, "valid");
112+
boolean loginSuccess = client.login(TEST_ACCOUNT, TEST_PASSWORD);
113113
assertThat(loginSuccess, is(true));
114114

115115
// LIST all messages
@@ -169,7 +169,7 @@ public void testDele() throws IOException
169169
client.connect(POP3_HOST, POP3_PORT);
170170

171171
// Login
172-
boolean loginSuccess = client.login(TEST_ACCOUNT, "valid");
172+
boolean loginSuccess = client.login(TEST_ACCOUNT, TEST_PASSWORD);
173173
assertThat(loginSuccess, is(true));
174174

175175
// LIST all messages
@@ -207,7 +207,7 @@ public void testDele() throws IOException
207207
client.connect(POP3_HOST, POP3_PORT);
208208

209209
// Login
210-
loginSuccess = client.login(TEST_ACCOUNT, "valid");
210+
loginSuccess = client.login(TEST_ACCOUNT, TEST_PASSWORD);
211211
assertThat(loginSuccess, is(true));
212212

213213
info = client.listMessages();
@@ -230,7 +230,7 @@ public void testRset() throws IOException
230230
client.connect(POP3_HOST, POP3_PORT);
231231

232232
// Login
233-
boolean loginSuccess = client.login(TEST_ACCOUNT, "valid");
233+
boolean loginSuccess = client.login(TEST_ACCOUNT, TEST_PASSWORD);
234234
assertThat(loginSuccess, is(true));
235235

236236
// LIST all messages
@@ -275,7 +275,7 @@ public void testStat() throws IOException
275275
POP3Client client = new POP3Client();
276276
client.connect(POP3_HOST, POP3_PORT);
277277

278-
boolean loginSuccess = client.login(TEST_ACCOUNT, "valid");
278+
boolean loginSuccess = client.login(TEST_ACCOUNT, TEST_PASSWORD);
279279
assertThat(loginSuccess, is(true));
280280

281281
POP3MessageInfo info = client.status();
@@ -300,7 +300,7 @@ public void testRetr() throws IOException
300300
client.connect(POP3_HOST, POP3_PORT);
301301

302302
// Login
303-
boolean loginSuccess = client.login(TEST_ACCOUNT, "valid");
303+
boolean loginSuccess = client.login(TEST_ACCOUNT, TEST_PASSWORD);
304304
assertThat(loginSuccess, is(true));
305305

306306
// RETR message
@@ -335,7 +335,7 @@ public void testTop() throws IOException
335335
client.connect(POP3_HOST, POP3_PORT);
336336

337337
// Login
338-
boolean loginSuccess = client.login(TEST_ACCOUNT, "valid");
338+
boolean loginSuccess = client.login(TEST_ACCOUNT, TEST_PASSWORD);
339339
assertThat(loginSuccess, is(true));
340340

341341
// TOP message with all lines

0 commit comments

Comments
 (0)