-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: SplunkRestClient initialization
Removed check_css_params function from net_utils and replaced it with validate_scheme_host_port.
- Loading branch information
Showing
51 changed files
with
162 additions
and
358 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,14 +127,6 @@ jobs: | |
source "$HOME/.poetry/env" | ||
poetry install | ||
poetry build | ||
- uses: actions/[email protected] | ||
with: | ||
name: dist | ||
path: dist | ||
- uses: actions/[email protected] | ||
with: | ||
name: output | ||
path: output | ||
run-unit-tests: | ||
name: test-unit | ||
|
@@ -153,12 +145,12 @@ jobs: | |
# shellcheck disable=SC1090 | ||
source "$HOME/.poetry/env" | ||
poetry install | ||
poetry run pytest --junitxml=test-results/results.xml --cov=solnlib --cov-report=html tests | ||
- uses: actions/upload-artifact@v2.2.4 | ||
poetry run pytest --junitxml=test-results/results.xml --cov=solnlib --cov-report=html tests/unit | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: unit tests test-results | ||
path: test-results | ||
- uses: actions/upload-artifact@v2.2.4 | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: unit tests htmlcov report | ||
path: htmlcov | ||
|
@@ -195,7 +187,7 @@ jobs: | |
export SPLUNK_HOME=/opt/splunk | ||
wget -qO /tmp/splunk.tgz "${SPLUNK_BUILD_URL}" | ||
sudo tar -C /opt -zxf /tmp/splunk.tgz | ||
sudo cp -r examples/data/solnlib_demo $SPLUNK_HOME/etc/apps | ||
sudo cp -r tests/integration/data/solnlib_demo $SPLUNK_HOME/etc/apps | ||
sudo cp -r solnlib $SPLUNK_HOME/etc/apps/solnlib_demo/bin/ | ||
sudo mkdir -p $SPLUNK_HOME/etc/apps/Splunk_TA_test/default/ | ||
sudo chown -R "$USER":"$USER" /opt/splunk | ||
|
@@ -211,7 +203,7 @@ jobs: | |
# shellcheck disable=SC1090 | ||
source "$HOME/.poetry/env" | ||
poetry install | ||
SPLUNK_HOME=/opt/splunk/ poetry run pytest --junitxml=test-results/results.xml -v examples | ||
SPLUNK_HOME=/opt/splunk/ poetry run pytest --junitxml=test-results/results.xml -v tests/integration | ||
- uses: actions/[email protected] | ||
with: | ||
name: test-splunk test-results | ||
|
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 |
---|---|---|
|
@@ -25,7 +25,6 @@ header: | |
- "*.lock" | ||
- "tests/**" | ||
- ".*" | ||
- "examples/data" | ||
- "mkdocs.yml" | ||
- "docs/" | ||
|
||
|
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 |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
:include .gitignore | ||
|
||
tests/ | ||
examples/ | ||
.github/ |
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
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.