Skip to content

Commit

Permalink
Fix failover
Browse files Browse the repository at this point in the history
Issue: ZENKO-4903
  • Loading branch information
KillianG committed Oct 4, 2024
1 parent 65318a2 commit a9b51da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/ctst/steps/dr/drctl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ type FailoverConfig = {
timeout?: string;
sinkKubeconfigPath?: string;
sinkKubeconfigData?: string;
sinkZenkoInstance?: string;
sinkZenkoDrInstance?: string;
sinkZenkoDrNamespace?: string;
};

Expand All @@ -117,8 +117,8 @@ type FailbackConfig = {
timeout?: string;
sinkKubeconfigPath?: string;
sinkKubeconfigData?: string;
sinkZenkoInstance?: string;
sinkZenkoNamespace?: string;
sinkZenkoDrInstance?: string;
sinkZenkoDrNamespace?: string;
};

type UninstallConfig = {
Expand Down
4 changes: 3 additions & 1 deletion tests/ctst/steps/pra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ const failoverTimeout = 360000;
When ('I request the failover state for the DR', { timeout: failoverTimeout + 2000 }, async function (this: Zenko) {
await this.zenkoDrCtl?.failover({
sinkZenkoDrNamespace: 'default',
sinkZenkoDrInstance: 'end2end-pra-sink',
wait: true,
timeout: `${failoverTimeout.toString()}ms`,
});
Expand All @@ -335,7 +336,8 @@ When ('I request the failover state for the DR', { timeout: failoverTimeout + 20
const failbackTimeout = 360000;
When ('I resume operations for the DR', { timeout: failbackTimeout + 2000 }, async function (this: Zenko) {
await this.zenkoDrCtl?.failback({
sinkZenkoNamespace: 'default',
sinkZenkoDrNamespace: 'default',
sinkZenkoDrInstance: 'end2end-pra-sink',
wait: true,
timeout: `${failbackTimeout.toString()}ms`,
});
Expand Down

0 comments on commit a9b51da

Please sign in to comment.