Skip to content

Commit 6b012ba

Browse files
committed
fixup: deactivating the tests
Signed-off-by: Simon Schrottner <[email protected]>
1 parent 90526fe commit 6b012ba

File tree

2 files changed

+22
-44
lines changed

2 files changed

+22
-44
lines changed

providers/openfeature-provider-flagd/tests/e2e/test_in-process-file.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55

66
import pytest
77
import yaml
8-
from asserts import assert_true
9-
from pytest_bdd import parsers, scenarios, then
8+
from pytest_bdd import scenario, scenarios
109

1110
from openfeature import api
1211
from openfeature.contrib.provider.flagd import FlagdProvider
@@ -60,18 +59,10 @@ def setup(request, file_name):
6059
)
6160

6261

63-
@then(
64-
parsers.cfparse("the PROVIDER_CONFIGURATION_CHANGED handler must run"),
65-
)
66-
def provider_changed_was_executed():
67-
assert_true(True)
68-
# TODO: DELETE AFTER IMPLEMENTATION OF EVENTS FOR RPC
69-
70-
71-
@then(parsers.cfparse('the event details must indicate "{flag_name}" was altered'))
72-
def flag_was_changed():
73-
assert_true(True)
74-
# TODO: DELETE AFTER IMPLEMENTATION OF EVENTS FOR RPC
62+
@pytest.mark.skip(reason="Eventing not implemented")
63+
@scenario("../../test-harness/gherkin/flagd.feature", "Flag change event")
64+
def test_flag_change_event():
65+
"""not implemented"""
7566

7667

7768
scenarios(

providers/openfeature-provider-flagd/tests/e2e/test_rpc.py

Lines changed: 17 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import pytest
2-
from asserts import assert_true
3-
from pytest_bdd import parsers, scenarios, then
4-
from tests.e2e.parsers import to_bool
2+
from pytest_bdd import scenario, scenarios
53

64
from openfeature.contrib.provider.flagd.config import ResolverType
75

@@ -21,39 +19,28 @@ def image():
2119
return "ghcr.io/open-feature/flagd-testbed:v0.5.13"
2220

2321

24-
@then(
25-
parsers.cfparse("the PROVIDER_CONFIGURATION_CHANGED handler must run"),
26-
)
27-
def provider_changed_was_executed():
28-
assert_true(True)
29-
# TODO: DELETE AFTER IMPLEMENTATION OF EVENTS FOR RPC
30-
31-
32-
@then(parsers.cfparse('the event details must indicate "{flag_name}" was altered'))
33-
def flag_was_changed():
34-
assert_true(True)
35-
# TODO: DELETE AFTER IMPLEMENTATION OF EVENTS FOR RPC
22+
@pytest.mark.skip(reason="Eventing not implemented")
23+
@scenario("../../test-harness/gherkin/flagd.feature", "Flag change event")
24+
def test_flag_change_event():
25+
"""not implemented"""
3626

3727

38-
@then(
39-
parsers.cfparse(
40-
'the resolved object {details:s?}value should be contain fields "{bool_field}", "{string_field}", and "{int_field}", with values "{bvalue:bool}", "{svalue}" and {ivalue:d}, respectively',
41-
extra_types={"bool": to_bool, "s": str},
42-
),
28+
@pytest.mark.skip(reason="issue #102")
29+
@scenario(
30+
"../../spec/specification/assets/gherkin/evaluation.feature",
31+
"Resolves object value",
4332
)
44-
def assert_object():
45-
assert_true(True)
46-
# TODO: DELETE AFTER #102 is fixed
33+
def test_resolves_object_value():
34+
"""not implemented"""
4735

4836

49-
@then(
50-
parsers.cfparse(
51-
'the variant should be "{variant}", and the reason should be "{reason}"',
52-
)
37+
@pytest.mark.skip(reason="issue #102")
38+
@scenario(
39+
"../../spec/specification/assets/gherkin/evaluation.feature",
40+
"Resolves object details",
5341
)
54-
def assert_for_variant_and_reason():
55-
assert_true(True)
56-
# TODO: DELETE AFTER #102 is fixed
42+
def test_resolves_object_details():
43+
"""not implemented"""
5744

5845

5946
scenarios(

0 commit comments

Comments
 (0)