-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use in memory provider for e2e suites (#740)
## This PR Removes setup using Flagd Provider and uses In-Memory Provider Fixes #712 --------- Signed-off-by: Mohamed V J <[email protected]> Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Michael Beemer <[email protected]> Co-authored-by: Todd Baert <[email protected]>
- Loading branch information
1 parent
7a4cb82
commit 41b4fdc
Showing
10 changed files
with
154 additions
and
67 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
export default { | ||
'boolean-flag': { | ||
disabled: false, | ||
variants: { | ||
on: true, | ||
off: false, | ||
}, | ||
defaultVariant: 'on', | ||
}, | ||
'string-flag': { | ||
disabled: false, | ||
variants: { | ||
greeting: 'hi', | ||
parting: 'bye', | ||
}, | ||
defaultVariant: 'greeting', | ||
}, | ||
'integer-flag': { | ||
disabled: false, | ||
variants: { | ||
one: 1, | ||
ten: 10, | ||
}, | ||
defaultVariant: 'ten', | ||
}, | ||
'float-flag': { | ||
disabled: false, | ||
variants: { | ||
tenth: 0.1, | ||
half: 0.5, | ||
}, | ||
defaultVariant: 'half', | ||
}, | ||
'object-flag': { | ||
disabled: false, | ||
variants: { | ||
empty: {}, | ||
template: { | ||
showImages: true, | ||
title: 'Check out these pics!', | ||
imagesPerPage: 100, | ||
}, | ||
}, | ||
defaultVariant: 'template', | ||
}, | ||
'context-aware': { | ||
disabled: false, | ||
variants: { | ||
internal: 'INTERNAL', | ||
external: 'EXTERNAL', | ||
}, | ||
defaultVariant: 'external', | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
contextEvaluator(ctx: any) { | ||
const { fn, ln, age, customer } = ctx; | ||
if (fn === 'Sulisław' && ln === 'Świętopełk' && age === 29 && customer === false) { | ||
return 'internal'; | ||
} else { | ||
return 'external'; | ||
} | ||
}, | ||
}, | ||
'wrong-flag': { | ||
disabled: false, | ||
variants: { | ||
one: 'uno', | ||
two: 'dos', | ||
}, | ||
defaultVariant: 'one', | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
export default { | ||
'boolean-flag': { | ||
disabled: false, | ||
variants: { | ||
on: true, | ||
off: false, | ||
}, | ||
defaultVariant: 'on', | ||
}, | ||
'string-flag': { | ||
disabled: false, | ||
variants: { | ||
greeting: 'hi', | ||
parting: 'bye', | ||
}, | ||
defaultVariant: 'greeting', | ||
}, | ||
'integer-flag': { | ||
disabled: false, | ||
variants: { | ||
one: 1, | ||
ten: 10, | ||
}, | ||
defaultVariant: 'ten', | ||
}, | ||
'float-flag': { | ||
disabled: false, | ||
variants: { | ||
tenth: 0.1, | ||
half: 0.5, | ||
}, | ||
defaultVariant: 'half', | ||
}, | ||
'object-flag': { | ||
disabled: false, | ||
variants: { | ||
empty: {}, | ||
template: { | ||
showImages: true, | ||
title: 'Check out these pics!', | ||
imagesPerPage: 100, | ||
}, | ||
}, | ||
defaultVariant: 'template', | ||
}, | ||
'context-aware': { | ||
disabled: false, | ||
variants: { | ||
internal: 'INTERNAL', | ||
external: 'EXTERNAL', | ||
}, | ||
defaultVariant: 'external', | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
contextEvaluator(ctx: any) { | ||
const { fn, ln, age, customer } = ctx; | ||
if (fn === 'Sulisław' && ln === 'Świętopełk' && age === 29 && customer === false) { | ||
return 'internal'; | ||
} else { | ||
return 'external'; | ||
} | ||
}, | ||
}, | ||
'wrong-flag': { | ||
disabled: false, | ||
variants: { | ||
one: 'uno', | ||
two: 'dos', | ||
}, | ||
defaultVariant: 'one', | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.