mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Return offline and dispatcher tests to main suite
they should be passing consistently now
This commit is contained in:
committed by
Dan Christian Bogos
parent
331b50ae52
commit
db5341c1c7
13
.github/workflows/integration_tests.yaml
vendored
13
.github/workflows/integration_tests.yaml
vendored
@@ -56,19 +56,6 @@ jobs:
|
||||
run: |
|
||||
sudo env "PATH=$PATH" ./flaky_test.sh
|
||||
|
||||
- name: Run unstable offline tests for *internal separately until fixed
|
||||
continue-on-error: true
|
||||
run: |
|
||||
sudo env "PATH=$PATH" go test github.com/cgrates/cgrates/apier/v1 -tags=offline -dbtype=*internal
|
||||
|
||||
- name: Run dispatcher tests separately until its unstable tests are fixed
|
||||
continue-on-error: true
|
||||
run: |
|
||||
sudo env "PATH=$PATH" go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*internal
|
||||
sudo env "PATH=$PATH" go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*mysql
|
||||
sudo env "PATH=$PATH" go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*mongo
|
||||
sudo env "PATH=$PATH" go test github.com/cgrates/cgrates/dispatchers -tags=integration -dbtype=*postgres
|
||||
|
||||
- name: Run integration tests
|
||||
run: |
|
||||
sudo env "PATH=$PATH" ./integration_test.sh
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
# Example:
|
||||
# ./integration_test.sh -dbtype=*mysql -rpc=*gob
|
||||
|
||||
# Temporarily skip dispatcher tests until its unstable tests are fixed
|
||||
packages=("agents" "apier/v1" "apier/v2" "engine" "ers" "loaders" "general_tests" "sessions")
|
||||
packages=("agents" "apier/v1" "apier/v2" "dispatchers" "engine" "ers" "loaders" "general_tests" "sessions")
|
||||
dbtypes=("*internal" "*mysql" "*mongo" "*postgres")
|
||||
|
||||
# Tests that are independent of the dbtype flag and run only once
|
||||
@@ -36,11 +35,7 @@ else
|
||||
for db in "${dbtypes[@]}"; do
|
||||
for pkg in "${packages[@]}"; do
|
||||
execute_test "$pkg" "integration" "-dbtype=$db"
|
||||
|
||||
# Temporarily skip offline tests for dbtype=*internal until fixed
|
||||
if [ "$db" != "*internal" ] && [ "$pkg" == "apier/v1" ]; then
|
||||
execute_test "$pkg" "offline" "-dbtype=$db"
|
||||
fi
|
||||
[ "$pkg" == "apier/v1" ] && execute_test "$pkg" "offline" "-dbtype=$db"
|
||||
done
|
||||
done
|
||||
fi
|
||||
@@ -58,4 +53,4 @@ for val in "${results[@]}"; do
|
||||
break
|
||||
fi
|
||||
done
|
||||
exit $pass
|
||||
exit $pass
|
||||
|
||||
Reference in New Issue
Block a user