Skip to content

Commit

Permalink
Run more complex elastic/logs challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Sep 1, 2023
1 parent 4d3986f commit 47c7788
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions it_serverless/serverless_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
BASE_URL = os.environ["RALLY_IT_SERVERLESS_BASE_URL"]
API_KEY = os.environ["RALLY_IT_SERVERLESS_API_KEY"]

TRACKS = ["nyc_taxis", "elastic/logs"]

TRACKS = [("nyc_taxis", None), ("elastic/logs", "logging-indexing-querying")]

ServerlessProject = collections.namedtuple("ServerlessProject", ["target_host", "username", "password"])

Expand Down Expand Up @@ -106,16 +105,18 @@ def client_options(username, password):


@pytest.mark.parametrize("track", TRACKS)
def test_serverless(track, tmp_path, serverless_project: ServerlessProject):
def test_serverless(track_cfg, tmp_path, serverless_project: ServerlessProject):
options_path = tmp_path / "options.json"
with options_path.open("w") as f:
json.dump(client_options(serverless_project.username, serverless_project.password), fp=f)

track, challenge = track_cfg
subprocess.run(
[
"esrally",
"race",
f"--track={track}",
*([f"--challenge={challenge}"] if challenge is not None else []),
"--track-params=number_of_shards:1,number_of_replicas:1",
# TODO: should we run a full test instead?
"--test-mode",
Expand Down

0 comments on commit 47c7788

Please sign in to comment.