Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .appsec-tests/template_config2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
common:
daemonize: false
log_media: file
log_dir: ${TESTDIR}/runtime/log/
config_paths:
config_dir: ${TESTDIR}/runtime/
data_dir: ${DATADIR}
simulation_path: ${TESTDIR}/runtime/simulation.yaml
hub_dir: ${TESTDIR}/runtime/hub/
index_path: ${TESTDIR}/runtime/hub/.index.json
notification_dir: ${TESTDIR}/runtime/notifications/
plugin_dir: /usr/local/lib/crowdsec/plugins/
crowdsec_service:
parser_routines: 1
acquisition_path: ${TESTDIR}/runtime/acquis.yaml
db_config:
type: sqlite
db_path: ${TESTDIR}/runtime/data/crowdsec.db
api:
client:
credentials_path: ${TESTDIR}/runtime/local_api_credentials.yaml
server:
listen_socket: ${TESTDIR}/runtime/crowdsec.sock
profiles_path: ${TESTDIR}/runtime/profiles.yaml
4 changes: 2 additions & 2 deletions .github/workflows/test_configurations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run-hub-tests:
runs-on: ubuntu-latest
container:
image: ghcr.io/crowdsecurity/crowdsec
image: ghcr.io/crowdsecurity/crowdsec:dev
options: "--entrypoint bash"
env:
DISABLE_LOCAL_API: "true"
Expand All @@ -52,7 +52,7 @@ jobs:
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: run tests on last crowdsec tag
- name: run tests with crowdsec from master branch
run: |
mkdir -p /etc/crowdsec && cp -r /staging/etc/* /etc/
cscli hubtest run --all --clean
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
taxonomy/scenario_taxonomy_errors.md

workspace.code-workspace
.cache

waf-check/dataset/*
waf-check/output/*
waf-check/waf-check
waf-check/waf-check
23 changes: 23 additions & 0 deletions .tests/template_config2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
common:
daemonize: false
log_media: file
log_dir: ${TESTDIR}/runtime/log/
config_paths:
config_dir: ${TESTDIR}/runtime/
data_dir: ${DATADIR}
simulation_path: ${TESTDIR}/runtime/simulation.yaml
hub_dir: ${TESTDIR}/runtime/hub/
index_path: ${TESTDIR}/runtime/hub/.index.json
notification_dir: ${TESTDIR}/runtime/notifications/
plugin_dir: /usr/local/lib/crowdsec/plugins/
crowdsec_service:
parser_routines: 1
db_config:
type: sqlite
db_path: ${TESTDIR}/runtime/data/crowdsec.db
api:
client:
credentials_path: ${TESTDIR}/runtime/local_api_credentials.yaml
server:
listen_socket: ${TESTDIR}/runtime/crowdsec.sock
profiles_path: ${TESTDIR}/runtime/profiles.yaml