Skip to content

Commit c615a9f

Browse files
beniwohlibasepi
andauthored
update bdd fixtures to work with the changes in elastic/apm#226 (#757)
Co-authored-by: Colton Myers <[email protected]>
1 parent 3df4699 commit c615a9f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/bdd/api_key_tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ def set_any_secret_token(an_agent):
6161
an_agent.config.update(next(version_counter), secret_token="foo")
6262

6363

64+
@when(parsers.parse("a secret_token is set to '{key}' in the config"))
65+
def set_any_secret_token(an_agent, key):
66+
an_agent.config.update(next(version_counter), secret_token=key)
67+
68+
6469
@when("an api key is not set in the config")
6570
def unset_api_key(an_agent):
6671
an_agent.config.update(next(version_counter), api_key=None)

0 commit comments

Comments
 (0)