diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bdd81e1b9..5cd52d49bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. ### Changed +- Removed configobj library from requirements.txt ([#4803](https://github.com/wazuh/wazuh-qa/pull/4803)) \- (Framework) - Updated integration tests README ([#4742](https://github.com/wazuh/wazuh-qa/pull/4742)) \- (Framework) ## [4.8.0] - TBD @@ -25,7 +26,7 @@ All notable changes to this project will be documented in this file. ### Changed -- Removed configobj library from requirements.txt ([#4803](https://github.com/wazuh/wazuh-qa/pull/4803)) \- (Framework) +- Fix body format for get_api_token ([#4797](https://github.com/wazuh/wazuh-qa/pull/4797)) \- (Framework) - Fix one_manager_agent_env pytest marker for System Tests ([#4782](https://github.com/wazuh/wazuh-qa/pull/4782)) \- (Tests) - Updated Filebeat module to 0.4 ([#4775](https://github.com/wazuh/wazuh-qa/pull/4775)) \- (Framework) - Include ATP repository update before the installation of Ubuntu E2E agent installation ([#4761](https://github.com/wazuh/wazuh-qa/pull/4761)) \- (Framework) diff --git a/deps/wazuh_testing/wazuh_testing/tools/system.py b/deps/wazuh_testing/wazuh_testing/tools/system.py index e8e2c4dec3..692ec1a34f 100644 --- a/deps/wazuh_testing/wazuh_testing/tools/system.py +++ b/deps/wazuh_testing/wazuh_testing/tools/system.py @@ -216,7 +216,8 @@ def get_api_token(self, host, user='wazuh', password='wazuh', auth_context=None, login_body = '' if auth_context is not None: login_endpoint = '/security/user/authenticate/run_as' - login_body = 'body="{}"'.format(json.dumps(auth_context).replace('"', '\\"').replace(' ', '')) + login_body = 'body="{}" body_format="json"'.format( + json.dumps(auth_context).replace('"', '\\"').replace(' ', '')) try: token_response = self.get_host(host).ansible('uri', f"url=https://localhost:{port}{login_endpoint} "