Skip to content

Commit 0afb722

Browse files
jonathannorristoddbaert
authored andcommitted
feat(flagd-api-testkit): add disabled flag e2e scenarios
Signed-off-by: Jonathan Norris <jonathan.norris@dynatrace.com>
1 parent a51c666 commit 0afb722

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

tools/flagd-api-testkit/src/main/java/dev/openfeature/contrib/tools/flagd/api/testkit/EvaluationSteps.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ public void resolvedValueEquals(String value) throws IOException {
9797
assertThat(state.evaluation.getValue()).isEqualTo(EvaluatorUtils.convert(value, state.flagType));
9898
}
9999

100+
/** Asserts the resolved value is absent (null) — used for disabled flags where the evaluator omits the value. */
101+
@Then("the resolved value should be absent")
102+
public void resolvedValueIsAbsent() {
103+
assertThat(state.evaluation.getValue()).isNull();
104+
}
105+
100106
/** Asserts the evaluation reason matches the expected value. */
101107
@Then("the reason should be {string}")
102108
public void reasonEquals(String reason) {

0 commit comments

Comments
 (0)