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&G{qE;;vAo6SD@>B4At@94{LxXw4{EF
z^P>QDy(EBVT{QU()my4!G)T*)<9
zdwl$__)yNWv(~7$KIgS{X@BOpUzNsAjeATR8^Z=?x^E-Gf$oCNV_%>qs-w>+L-$H~
zq2(l(nY~VbydGeMtvGkfosOrtaVc*r<%6ad5mIK{Edv~>vJP$M+LaqB_&ohcV9cvz
zOg4dyTrPH0<(6F|JB*A0`AplIoFLtSSfM40MOS@dRD;1hjl7;qQ;{|Fd><}2JF5+0
zXUwb25>-SK?wX-5Qb#ecCoRtD+f@mYUMrs9Y1Iou5gL%HDUoP(#ZJZD+@S$&d`}$kJnk
zvV}fjS7B9`S1@EQvlTiozeRg
zCDZg-W56aGFZU9QP*H8#>Anu2lHD>X<+*!&XSXt%17xla&f
zatG8e(r{fU^{;k51ns0KpT=$if(KYLSdD9hdi0?8{9U4CMTvEb7Hs(vO~uPH$R{P7
zu3DZT{Vr+z8Id};TJtEMq#)%L=Lg}WfTbdo6ZEEGn=878m`8;Q}{1{gF4s
zOb(Dos*@0-UGAKsbS(AvG!i(WO@RqS4uw87{xoE+5Fwk~1^nD!80tkU1ML$%gP5ED
za?0*ouS^CD0}~1NFQ>3@1Tg>YANWtc|Md_2Py9dJ1pm9?e}49_O#h9Oe`Nhn(Y`1l
SBK=#1`zPZ5ImM~}&Hf8+0ZS$T
diff --git a/docs/SIEM/QRADAR/build-sample-event.sh b/docs/SIEM/QRADAR/build-sample-event.sh
index 569a035..2c76e44 100644
--- a/docs/SIEM/QRADAR/build-sample-event.sh
+++ b/docs/SIEM/QRADAR/build-sample-event.sh
@@ -19,18 +19,21 @@ shuf() { awk 'BEGIN {srand(); OFMT="%.17f"} {print rand(), $0}' "$@" |
tmp_dir=$(mktemp -d -t ak-uls-qradar-XXXXXXXXXX)
echo "Working in temporary directory $tmp_dir"
-echo "Fetching access events..."
-akamai eaa log admin --start $START --json --output $tmp_dir/eaa_admin.json
-echo "Fetching admin audit events..."
-akamai eaa log access --start $START --json --output $tmp_dir/eaa_access.json
-echo "Fetching connector health events..."
-akamai eaa connector list --perf --json > $tmp_dir/eaa_conhealth.json
+function print_usage() {
+ echo "Usage:"
+ echo "$0 [eaa|etp]"
+}
-cat $tmp_dir/eaa_admin.json | shuf | head -n 50 > $tmp_dir/eaa_admin_min.json
-cat $tmp_dir/eaa_access.json | shuf | head -n 50 > $tmp_dir/eaa_access_min.json
-cat $tmp_dir/eaa_conhealth.json | shuf > $tmp_dir/eaa_conhealth_min.json
+case "$1" in
+
+ "eaa")
+ echo "Fetching access events..."
+ akamai eaa log admin --start $START --json --output $tmp_dir/eaa_admin.json
+ echo "Fetching admin audit events..."
+ akamai eaa log access --start $START --json --output $tmp_dir/eaa_access.json
+ echo "Fetching connector health events..."
+ akamai eaa connector list --perf --json > $tmp_dir/eaa_conhealth.json
-cat $tmp_dir/eaa_admin_min.json $tmp_dir/eaa_access_min.json $tmp_dir/eaa_conhealth_min.json | shuf > eaa_feeds_combined_sample.json
stat eaa_feeds_combined_sample.json
echo "File 'eaa_feeds_combined_sample.json' created in the current directory ($(pwd))."
@@ -48,7 +51,6 @@ case "$1" in
akamai eaa log access --start $START --json --output $tmp_dir/eaa_access.json
echo "Fetching connector health events..."
akamai eaa connector list --perf --json > $tmp_dir/eaa_conhealth.json
-
cat $tmp_dir/eaa_admin.json | shuf | head -n 50 > $tmp_dir/eaa_admin_min.json
cat $tmp_dir/eaa_access.json | shuf | head -n 50 > $tmp_dir/eaa_access_min.json
cat $tmp_dir/eaa_conhealth.json | shuf > $tmp_dir/eaa_conhealth_min.json
diff --git a/docs/examples/docker-compose/README.md b/docs/examples/docker-compose/README.md
index b17f7ec..b52d03c 100644
--- a/docs/examples/docker-compose/README.md
+++ b/docs/examples/docker-compose/README.md
@@ -6,9 +6,6 @@ The `.env` files control the ULS via dedicated [ENVIRONMENTAL VARIABLES](../../A
The [simple](simple/README.md) directory provides a simple example running ULS via `docker compose`
The [complex](complex/README.md) directory provides a more "real world" example combining multiple feeds and different outputs.
-The [example](examples/README.md) directory provides different configuration snippets.
-<<<<<<< HEAD
-The [etp-multi-tenant](etp-tenants/README.md) directory shows how logs from different ETP tenants can be collected.
-=======
+
+The [example](examples/README.md) directory provides different configuration snippets.
The [etp-multi-tenant](etp-tenants/README.md) directory shows how logs from different ETP tenants can be collected.
->>>>>>> v.1.3.5
diff --git a/docs/examples/docker-compose/etp-tenants/README.md b/docs/examples/docker-compose/etp-tenants/README.md
index aa468bb..95405d9 100644
--- a/docs/examples/docker-compose/etp-tenants/README.md
+++ b/docs/examples/docker-compose/etp-tenants/README.md
@@ -11,6 +11,11 @@ This directory contains configuration examples (for simple copy & paste usage) t
## docker-compose.yml
[This file](docker-compose.yml) contains examples for 2 different ETP tenants collecting the same "threat" feed.
+This directory contains configuration examples (for simple copy & paste usage)
+
+## docker-compose.yml
+This file contains examples for 2 different ETP tenants collecting the same "threat" log
+
## ENV files
The files contains all available ENV VARS explained in a single file.
@@ -18,5 +23,4 @@ Tenant 1 [etp-threat-tenant-1.env](./etp-threat-tenant-1.env)
Tenant 2 [etp-threat-tenant-2.env](./etp-threat-tenant-2.env)
## EDGERC example
-
This is a sample `.edgerc` file explaining the ["ETP Multi Tenant support"](./.edgerc-example)
\ No newline at end of file
diff --git a/docs/examples/kubernetes/helm/akamai-uls/Chart.yaml b/docs/examples/kubernetes/helm/akamai-uls/Chart.yaml
index 4819ca9..2c1f090 100644
--- a/docs/examples/kubernetes/helm/akamai-uls/Chart.yaml
+++ b/docs/examples/kubernetes/helm/akamai-uls/Chart.yaml
@@ -3,5 +3,5 @@ name: akamai-uls
description: Akamai Universal Log Streamer Helm installation
type: application
-version: 1.3.5
-appVersion: "1.3.5"
+version: 1.4.0
+appVersion: "1.4.0"
\ No newline at end of file
diff --git a/test/README.md b/test/README.md
index fdd738e..264feb2 100644
--- a/test/README.md
+++ b/test/README.md
@@ -8,7 +8,8 @@ bash test/test.sh
For better testing stability, we packed the required dependencies into the test dir as well.
### Requirements
-- [bats](https://bats-core.readthedocs.io/en/stable/)
+- [bats](https://bats-core.readthedocs.io/en/stable/) `bats --version Bats 1.6.0`
- timeout command is available
- uls and the cli's are installed
-- working (fully fledged .edgerc file - not necessarily providing logs)
\ No newline at end of file
+- working (fully fledged .edgerc file - or the inline MOCKED one)
+ - mocked edgerc is currently failing with EAA
\ No newline at end of file
diff --git a/test/negative_test.bats b/test/negative_test.bats
index 8609c5c..8b7fcc8 100644
--- a/test/negative_test.bats
+++ b/test/negative_test.bats
@@ -26,7 +26,7 @@ load 'bats/bats-assert/load.bash'
}
@test "Input / Feed mismatch" {
run $uls_bin --input eaa --feed auth -o raw
- assert_output --partial "Feed (AUTH) not available - Available: ['ACCESS', 'ADMIN', 'CONHEALTH']"
+ assert_output --partial "Feed (AUTH) not available - Available:"
[ "$status" -eq 1 ]
}
@test "Checking --feed and --intput etp" {
diff --git a/test/positive_test.bats b/test/positive_test.bats
index 7b8b450..39589fd 100644
--- a/test/positive_test.bats
+++ b/test/positive_test.bats
@@ -4,19 +4,36 @@
## THIS Should be run from ULS ROOT DIR
# Variables
- # ULS Binary
+ # ULS Binary
uls_bin=bin/uls.py
- # TESTING EDGERC FILE
-#uls_edgerc=~/.edgerc
-uls_edgerc=test/_mocked_edgerc
-
- # TESTING SECTION
-uls_section=testing
-
- # TIMEOUT
-uls_test_timeout=30
-
+ # Should we using a mocked edgerc (TRUE/FALSE) ?
+mocked_edgerc=FALSE
+
+ # TIMEOUT
+uls_test_timeout=60
+
+
+### Switch between mocked and real edgerc
+if [ "$mocked_edgerc"=="FALSE" ] ; then
+ # REAL EDGERC FILE
+ uls_edgerc=~/.edgerc
+ uls_section=akamaidemo
+ # Variables
+ eaa_access_assert="username"
+ eaa_devinv_assert="client_version"
+ etp_assert="configId"
+ jmespath_assert="['"
+else
+ # TESTING EDGERC FILE & section
+ uls_edgerc=test/_mocked_edgerc
+ uls_section=testing
+ # Variables
+ eaa_access_assert=""
+ eaa_devinv_assert=""
+ etp_assert=""
+ jmespath_assert=""
+fi
# Load support libs
load 'bats/bats-support/load.bash'
@@ -27,14 +44,14 @@ load 'bats/bats-assert/load.bash'
## EAA
@test "EAA - ACCESS" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input eaa --feed access --output raw --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial $eaa_access_assert
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
}
@test "EAA - ADMIN" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input eaa --feed admin --output raw --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial ""
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
@@ -46,11 +63,18 @@ load 'bats/bats-assert/load.bash'
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
}
+@test "EAA - DEVINV" {
+ run timeout --preserve-status $uls_test_timeout $uls_bin --input eaa --feed devinv --output raw --edgerc $uls_edgerc --section $uls_section
+ assert_output --partial $eaa_devinv_assert
+ #assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
+ #[ "$status" -eq 124 ] #return value from timeout without --preserve status
+ [ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
+}
## ETP
@test "ETP - THREAT" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input etp --feed threat --output raw --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial $etp_assert
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
@@ -58,7 +82,7 @@ load 'bats/bats-assert/load.bash'
@test "ETP - AUP" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input etp --feed aup --output raw --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial $etp_assert
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
@@ -66,7 +90,7 @@ load 'bats/bats-assert/load.bash'
@test "ETP - DNS" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input etp --feed dns --output raw --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial $etp_assert
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
@@ -74,7 +98,7 @@ load 'bats/bats-assert/load.bash'
@test "ETP - PROXY" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input etp --feed proxy --output raw --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial $etp_assert
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
@@ -111,7 +135,7 @@ load 'bats/bats-assert/load.bash'
## Transformation
@test "TRANSFORM - MCAS" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input etp --feed dns --output raw --transformation mcas --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial "detection_time"
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
@@ -119,7 +143,7 @@ load 'bats/bats-assert/load.bash'
@test "TRANSFORM - JMESPATH" {
run timeout --preserve-status $uls_test_timeout $uls_bin --input eaa --feed access --output raw --transformation jmespath --transformationpattern '[geo_country, geo_state]' --edgerc $uls_edgerc --section $uls_section
- assert_output ""
+ assert_output --partial $jmespath_assert
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
@@ -129,10 +153,16 @@ load 'bats/bats-assert/load.bash'
@test "AUTORESUME - Create File" {
rm -f /tmp/uls_eaa_access.ckpt
run timeout --preserve-status $uls_test_timeout $uls_bin --input eaa --feed access --output raw --edgerc $uls_edgerc --section $uls_section --autoresume --autoresumepath /tmp/
- assert_output ""
+ assert_output --partial $eaa_access_assert
#assert_output --partial " seems to be empty"
#assert_output --partial "The specified directory tmp does not exist or privileges are missing - exiting"
#[ "$status" -eq 124 ] #return value from timeout without --preserve status
[ "$status" -eq 100 ] #return value from uls when interrupted --> with --preserve status on timeout
rm -f /tmp/uls_eaa_access.ckpt
+}
+## EAA
+@test "LINT the HELM CHART" {
+ run helm lint docs/examples/kubernetes/helm/akamai-uls --strict
+ assert_output --partial "0 chart(s) failed"
+ [ "$status" -eq 0 ] #return value for Chart Lint: 0
}
\ No newline at end of file
diff --git a/test/test.sh b/test/test.sh
index f8c3a64..7da9818 100644
--- a/test/test.sh
+++ b/test/test.sh
@@ -43,11 +43,11 @@ if [ "$select" == "all" ] ; then
for i in $tests_available ; do
echo "> $i"
do_test $i
+ do_tag
done
else
do_test $1
fi
-do_tag
exit 0