Skip to content

Commit 8cec1cb

Browse files
authored
api test changes for docker (#668)
* api test changes for docker * Update test_server.py Updated Elastic agent version assertion
1 parent 79ee4aa commit 8cec1cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

testing/tests/api_tests/cluster/test_server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ def test_host_search(es_host, es_port, username, password):
4747
assert ".ds-metrics-system.cpu-default" in data[rootKey]["hits"][0]["_index"]
4848
assert ".ds-metrics-system.cpu-default" in data[rootKey]["hits"][0]["_index"]
4949
#assert (data[rootKey]["hits"][0]["_source"]["agent"]["name"] == "ubuntu-vm")
50-
assert (data[rootKey]["hits"][0]["_source"]["agent"]["version"] == "8.15.5")
50+
51+
assert (data[rootKey]["hits"][0]["_source"]["agent"]["version"] == "8.15.3")
52+
5153
assert (data[rootKey]["hits"][0]["_source"]["data_stream"]["dataset"] == "system.cpu")
5254
assert (data[rootKey]["hits"][0]["_source"]["ecs"]["version"] == "8.0.0")
5355
assert (data[rootKey]["hits"][0]["_source"]["elastic_agent"]["version"] == "8.15.5")
@@ -353,4 +355,4 @@ def test_elastic_indices(es_host, es_port, username, password):
353355
assert ("open .ds-logs-endpoint.events.network-default" in response.text)
354356
assert ("open .ds-logs-endpoint.events.file-default" in response.text)
355357
assert ("open wazuh-alerts-4.x" in response.text)
356-
assert ("open .ds-metrics-elastic_agent.elastic_agent" in response.text)
358+
assert ("open .ds-metrics-elastic_agent.elastic_agent" in response.text)

0 commit comments

Comments
 (0)