Skip to content

Commit f2951dc

Browse files
committed
BNPPFSLA-1125 [cleanup]
1 parent 2c455a2 commit f2951dc

File tree

3 files changed

+4
-37
lines changed

3 files changed

+4
-37
lines changed

integration-tests/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies {
3434
testImplementation('com.amazonaws:aws-java-sdk-s3')
3535
testImplementation("com.amazonaws:aws-java-sdk-sts")
3636
testRuntimeOnly "org.glassfish.jaxb:jaxb-runtime:${jaxBVersion}"
37+
3738
}
3839
test {
3940
useJUnitPlatform()

integration-tests/src/test/java/eu/xenit/solr/backup/s3/SolrBackupTest.java

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class SolrBackupTest {
2929
private static final Log log = LogFactory.getLog(SolrBackupTest.class);
3030
static RequestSpecification spec;
3131
static RequestSpecification specBackup;
32-
static RequestSpecification specBackup2;
33-
static RequestSpecification specBackup3;
3432
static RequestSpecification specBackupDetails;
3533
static RequestSpecification specRestore;
3634
static RequestSpecification specRestoreStatus;
@@ -72,25 +70,6 @@ public void setup() {
7270
.addParam("numberToKeep", "2")
7371
.addParam("wt", "json")
7472
.build();
75-
specBackup2 = new RequestSpecBuilder()
76-
.setBaseUri(baseURISolr)
77-
.setPort(solrPort)
78-
.setBasePath(basePathSolrBackup)
79-
.addParam("command", "backup")
80-
.addParam("repository", "s3")
81-
.addParam("numberToKeep", "2")
82-
.addParam("name", "my-test-name-1")
83-
.addParam("wt", "json")
84-
.build();
85-
specBackup3 = new RequestSpecBuilder()
86-
.setBaseUri(baseURISolr)
87-
.setPort(solrPort)
88-
.setBasePath(basePathSolrBackup)
89-
.addParam("command", "backup")
90-
.addParam("repository", "s3")
91-
.addParam("numberToKeep", "2")
92-
.addParam("wt", "json")
93-
.build();
9473
specBackupDetails = new RequestSpecBuilder()
9574
.setBaseUri(baseURISolr)
9675
.setPort(solrPort)
@@ -112,7 +91,6 @@ public void setup() {
11291
.addParam("command", "restorestatus")
11392
.addParam("wt", "json")
11493
.build();
115-
// s3:/opt/alfresco-search-services/data/solr6Backup/alfresco/snapshot.my-test-name-0
11694
specRestorePointInTimeStatus = new RequestSpecBuilder()
11795
.setBaseUri(baseURISolr)
11896
.setPort(8081)
@@ -129,12 +107,9 @@ public void setup() {
129107
}
130108
}
131109

132-
// Startup new SOLR container and check if we can fetch the S3 backups for point-in-time restore...
133110
@Test
134111
@Order(3)
135112
void testRestorePointInTimeScriptEndpoint() {
136-
// After the solr-restore-in-time has started-up check if restore was succesfull
137-
// Restore is run via startup script in container.
138113
System.out.println("Restore triggered at solr-startup after health-check succeeded, will wait maximum 3 minutes");
139114
long startTime = System.currentTimeMillis();
140115
await().atMost(180, TimeUnit.SECONDS)
@@ -194,7 +169,6 @@ void testBackupWithNumberToLiveEndpoint() {
194169

195170

196171
void validateSnapshotCount(long count) {
197-
System.out.println("validateSnapshotCount count: " + count + ", ");
198172
await().atMost(180, TimeUnit.SECONDS)
199173
.until(() -> s3Client.listObjects(BUCKET)
200174
.getObjectSummaries()

integration-tests/src/test/resources/compose/docker-compose.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#version: '3.8'
2-
31
services:
42
alfresco:
53
image: "${ALFRESCO_IMAGE:-local}"
@@ -14,7 +12,6 @@ services:
1412
- GLOBAL_local.transform.service.enabled=false
1513
- GLOBAL_solr.sharedSecret=mysolrsecret
1614
- JAVA_XMX=2048M
17-
# s3:/opt/alfresco-search-services/data/solr6Backup/alfresco/snapshot.my-test-name-0
1815
postgresql:
1916
image: docker.io/xenit/postgres
2017
networks:
@@ -77,8 +74,8 @@ services:
7774
- S3_SECRET_KEY=secret_key
7875
- S3_PATH_STYLE_ACCESS_ENABLED=true
7976
- RESTORE_FROM_BACKUP=true
80-
# - RESTORE_BACKUP_NAME='snapshot.my-test-name-1'
81-
# - RESTORE_BACKUP_PATH='opt/alfresco-search-services/data/solr6Backup/alfresco'
77+
- RESTORE_BACKUP_NAME='snapshot.my-test-name-1'
78+
- RESTORE_BACKUP_PATH='opt/alfresco-search-services/data/solr6Backup/alfresco'
8279
localstack:
8380
container_name: localstack
8481
image: localstack/localstack:2.3.2
@@ -96,9 +93,4 @@ services:
9693
- ./solr_backups:/backups
9794
networks:
9895
solr-backup-local-network:
99-
driver: bridge
100-
101-
# curl 'http://localhost:8080/solr/alfresco/replication?command=backup&name=my-test-name-0'
102-
103-
#attempt restore on special solr container...
104-
#"https://localhost:8081/solr/alfresco/replication?command=restore&repository=s3&name=my-test-name-0"
96+
driver: bridge

0 commit comments

Comments
 (0)