This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Support shield v8 #155
Merged
Merged
Support shield v8 #155
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b910c3f
#143: Support shield v8 and v7 transparently
ampersand8 465ee7c
#143: Refactor ShieldRestClient
ampersand8 4342f7e
#143: Implement ShieldRestClient interface in Abstract class
ampersand8 8245b74
#143: Ignore test if not specifically enabled
ampersand8 c7cb1c8
#143: Support automated functional test for shield
ampersand8 dba3919
#143: Make sure shield is running before starting setup
ampersand8 c480c07
#143: Uset setup_docker.sh script
ampersand8 46f063c
#143: Execute setup in docker directory
ampersand8 6ed0f46
#143: Add sleep in wait shield wait loop
ampersand8 81cb0ef
#143: Use 127.0.0.1 as default mariadb host
ampersand8 7686134
#143: Fix ShieldRestClientv1 matcher
ampersand8 230128b
#143: Use 127.0.0.1 as default mariadb host
ampersand8 ef98dd7
ignore test if not activated
ampersand8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...main/groovy/com/swisscom/cloud/sb/broker/backup/shield/restClient/ShieldRestClient.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright (c) 2018 Swisscom (Switzerland) Ltd. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
* this file except in compliance with the License. You may obtain a copy of the | ||
* License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed | ||
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | ||
* CONDITIONS OF ANY KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations under the License. | ||
*/ | ||
|
||
package com.swisscom.cloud.sb.broker.backup.shield.restClient | ||
|
||
import com.swisscom.cloud.sb.broker.backup.shield.ShieldTarget | ||
import com.swisscom.cloud.sb.broker.backup.shield.dto.* | ||
|
||
interface ShieldRestClient { | ||
Object getStatus() | ||
|
||
boolean matchVersion() | ||
|
||
StoreDto getStoreByName(String name) | ||
|
||
RetentionDto getRetentionByName(String name) | ||
|
||
ScheduleDto getScheduleByName(String name) | ||
|
||
TargetDto getTargetByName(String name) | ||
|
||
String createTarget(String targetName, ShieldTarget target, String agent) | ||
|
||
String updateTarget(TargetDto existingTarget, ShieldTarget target, String agent) | ||
|
||
void deleteTarget(String uuid) | ||
|
||
JobDto getJobByName(String name) | ||
|
||
JobDto getJobByUuid(String uuid) | ||
|
||
String createJob(String jobName, | ||
String targetUuid, | ||
String storeUuid, | ||
String retentionUuid, | ||
String scheduleUuid, | ||
boolean paused) | ||
|
||
String updateJob(JobDto existingJob, | ||
String targetUuid, | ||
String storeUuid, | ||
String retentionUuid, | ||
String scheduleUuid, | ||
boolean paused) | ||
|
||
String runJob(String uuid) | ||
|
||
void deleteJob(String uuid) | ||
|
||
TaskDto getTaskByUuid(String uuid) | ||
|
||
void deleteTaskByUuid(String uuid) | ||
|
||
ArchiveDto getArchiveByUuid(String uuid) | ||
|
||
String restoreArchive(String uuid) | ||
|
||
void deleteArchive(String uuid) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops