-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2647 from wazuh/2600-test-qa-docs
Add `qa-docs` docker, copyright and readme changes after `0.1` testing
- Loading branch information
Showing
10 changed files
with
68 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2015-2021, Wazuh Inc. | ||
# Copyright (C) 2015-2022, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2015-2021, Wazuh Inc. | ||
# Copyright (C) 2015-2022, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2015-2021, Wazuh Inc. | ||
# Copyright (C) 2015-2022, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2015-2021, Wazuh Inc. | ||
# Copyright (C) 2015-2022, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2015-2021, Wazuh Inc. | ||
# Copyright (C) 2015-2022, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2015-2021, Wazuh Inc. | ||
# Copyright (C) 2015-2022, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2015-2021, Wazuh Inc. | ||
# Copyright (C) 2015-2022, Wazuh Inc. | ||
# Created by Wazuh, Inc. <[email protected]>. | ||
# This program is free software; you can redistribute it and/or modify it under the terms of GPLv2 | ||
|
||
|
@@ -7,10 +7,9 @@ | |
import sys | ||
import shutil | ||
|
||
from tempfile import gettempdir | ||
|
||
from wazuh_testing.qa_docs import QADOCS_LOGGER | ||
from wazuh_testing.tools.logging import Logging | ||
from wazuh_testing.tools.exceptions import QAValueError | ||
|
||
utils_logger = Logging.get_logger(QADOCS_LOGGER) | ||
|
||
|
@@ -263,9 +262,8 @@ def run_local_command(command): | |
result_code = run.returncode | ||
|
||
if result_code != 0: | ||
print("error") | ||
# raise QAValueError(f"The command {command} returned {result_code} as result code.", utils_logger.LOGGER.error, | ||
# QADOCS_LOGGER) | ||
raise QAValueError(f"The command {command} returned {result_code} as result code.", utils_logger.error, | ||
QADOCS_LOGGER) | ||
|
||
|
||
def run_local_command_with_output(command): | ||
|
@@ -296,7 +294,7 @@ def qa_docs_docker_run(qa_branch, command, output_path): | |
""" | ||
docker_args = f"{qa_branch} {output_path} {command}" | ||
docker_image_name = 'wazuh/qa-docs' | ||
docker_image_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'dockerfiles') | ||
docker_image_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'dockerfiles') | ||
|
||
utils_logger.info(f"Building qa-docs docker image") | ||
run_local_command_with_output(f"cd {docker_image_path} && docker build -q -t {docker_image_name} .") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters