Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change output to outputformat as param changed in drctl #2154

Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
8 changes: 8 additions & 0 deletions .github/workflows/end2end.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,14 @@ jobs:
- name: Configure E2E CTST test environment
run: bash configure-e2e-ctst.sh
working-directory: ./.github/scripts/end2end
- name: "Debug: SSH to runner"
uses: scality/actions/[email protected]
with:
tmate-server-host: ${{ secrets.TMATE_SERVER_HOST }}
tmate-server-port: ${{ secrets.TMATE_SERVER_PORT }}
tmate-server-rsa-fingerprint: ${{ secrets.TMATE_SERVER_RSA_FINGERPRINT }}
tmate-server-ed25519-fingerprint: ${{ secrets.TMATE_SERVER_ED25519_FINGERPRINT }}
timeout-minutes: 30
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should not be commited!

- name: Run CTST end to end tests
run: bash run-e2e-ctst.sh "" "" "" "" --tags @PRA
working-directory: ./.github/scripts/end2end
Expand Down
2 changes: 1 addition & 1 deletion solution/deps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cloudserver:
drctl:
sourceRegistry: ghcr.io/scality
image: zenko-drctl
tag: v1.0.4
tag: e43bce2bfddd5c667e1488c2a2fa846da53c8c07
envsubst: DRCTL_TAG
toolName: zenko-drctl
fubectl:
Expand Down
1 change: 1 addition & 0 deletions tests/ctst/steps/dr/drctl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ type StatusConfig = {
sourceZenkoDrInstance?: string;
sinkZenkoDrInstance?: string;
output?: string;
outputFormat?: string;
};

type ReplicationPauseConfig = {
Expand Down
13 changes: 7 additions & 6 deletions tests/ctst/steps/pra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,14 @@ async function waitForPhase(
sourceZenkoNamespace: 'default',
sinkZenkoDrInstance: 'end2end-pra-sink',
sourceZenkoDrInstance: 'end2end-source',
output: 'json',
outputFormat: 'json',
});

if (!currentStatus) {
world.logger.debug('Failed to get DR status, retrying', {
world.logger.debug('Failed to get DR status', {
currentStatus,
});
await Utils.sleep(1000);
continue;
throw new Error('Failed to get DR status');
}

const lines = currentStatus.split('\n');
Expand Down Expand Up @@ -217,7 +216,8 @@ Then('the DR sink should be in phase {string}', { timeout: 360000 }, async funct
throw new Error(`Unknown state ${state}`);
}

await waitForPhase(this, 'sink', targetPhase);
const res = await waitForPhase(this, 'sink', targetPhase);
assert(res);
});

Then('the DR source should be in phase {string}', { timeout: 360000 }, async function (this: Zenko, state: string) {
Expand Down Expand Up @@ -245,7 +245,8 @@ Then('the DR source should be in phase {string}', { timeout: 360000 }, async fun
throw new Error(`Unknown state ${state}`);
}

await waitForPhase(this, 'source', targetPhase);
const res = await waitForPhase(this, 'source', targetPhase);
assert(res);
});

Then('object {string} should {string} be {string} and have the storage class {string} on {string} site',
Expand Down
Loading