From a9450f2d6a046921b8ff69e199935219078715e8 Mon Sep 17 00:00:00 2001 From: Giovanni Allegri Date: Thu, 6 Feb 2025 15:08:25 +0100 Subject: [PATCH] removal of tests from root (#12878) --- test.sh | 8 -------- test_api_v2.sh | 4 ---- test_csw.sh | 29 ----------------------------- test_dev.sh | 8 -------- test_integration.sh | 25 ------------------------- test_oauth2.sh | 9 --------- test_upload.sh | 27 --------------------------- 7 files changed, 110 deletions(-) delete mode 100755 test.sh delete mode 100755 test_api_v2.sh delete mode 100755 test_csw.sh delete mode 100755 test_dev.sh delete mode 100755 test_integration.sh delete mode 100755 test_oauth2.sh delete mode 100755 test_upload.sh diff --git a/test.sh b/test.sh deleted file mode 100755 index d9987fd1849..00000000000 --- a/test.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -set -e -set -a -. ./.env_test -set +a - -paver setup_data -coverage run --branch --source=geonode manage.py test -v 3 --keepdb $@ \ No newline at end of file diff --git a/test_api_v2.sh b/test_api_v2.sh deleted file mode 100755 index 213e1def849..00000000000 --- a/test_api_v2.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -set -e - -./test.sh geonode.base.api.tests geonode.layers.api.tests geonode.maps.api.tests geonode.documents.api.tests geonode.geoapps.api.tests diff --git a/test_csw.sh b/test_csw.sh deleted file mode 100755 index 4806435749b..00000000000 --- a/test_csw.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -export SITEURL=http://localhost:8001/ -export BACKEND=geonode.geoserver -export DOCKER_COMPOSE_VERSION=1.19.0 -export GEOSERVER_SERVER_URL=http://geoserver:8080/geoserver/ -export GEOSERVER_SERVER_PORT=8080 -export ON_TRAVIS=True -export TEST_RUNNER_KEEPDB=True -export TEST_RUN_INTEGRATION=True -export TEST_RUN_INTEGRATION_SERVER=True -export TEST_RUN_INTEGRATION_UPLOAD=False -export TEST_RUN_INTEGRATION_MONITORING=False -export TEST_RUN_INTEGRATION_CSW=True -export TEST_RUN_INTEGRATION_BDD=False -export MONITORING_ENABLED=False -export SESSION_EXPIRED_CONTROL_ENABLED=True -export ASYNC_SIGNALS=False -export DATABASE_URL=postgis://geonode:geonode@db:5432/geonode -export GEODATABASE_URL=postgis://geonode:geonode@db:5432/geonode_data -export DEFAULT_BACKEND_DATASTORE=datastore -export DEFAULT_MAX_UPLOAD_SIZE=5368709120 -export DEFAULT_MAX_PARALLEL_UPLOADS_PER_USER=100 - -# echo "Initialize DB"; -# chmod +x scripts/misc/create_dbs_travis.sh; -# scripts/misc/create_dbs_travis.sh before_script; - -paver run_tests --coverage --local false \ No newline at end of file diff --git a/test_dev.sh b/test_dev.sh deleted file mode 100755 index 88e31a63fd5..00000000000 --- a/test_dev.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -set -a -. ./.env_dev -set +a - -# paver setup_data -# dropdb -U postgres test_geonode -coverage run --branch --source=geonode manage.py test -v 3 --keepdb $@ diff --git a/test_integration.sh b/test_integration.sh deleted file mode 100755 index 7739aeb7321..00000000000 --- a/test_integration.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -export BACKEND=geonode.geoserver -export DOCKER_COMPOSE_VERSION=1.19.0 -export GEOSERVER_SERVER_URL=http://localhost:8080/geoserver/ -export GEOSERVER_SERVER_PORT=8080 -export ON_TRAVIS=True -export TEST_RUNNER_KEEPDB=True -export TEST_RUN_INTEGRATION=True -export TEST_RUN_INTEGRATION_SERVER=False -export TEST_RUN_INTEGRATION_UPLOAD=False -export TEST_RUN_INTEGRATION_MONITORING=False -export TEST_RUN_INTEGRATION_CSW=False -export TEST_RUN_INTEGRATION_BDD=False -export MONITORING_ENABLED=False -export USER_ANALYTICS_ENABLED=False -export SESSION_EXPIRED_CONTROL_ENABLED=True -export CELERY_ALWAYS_EAGER=True - -# coverage run --branch --source=geonode manage.py test --noinput --parallel=1 $@ -echo "Initialize DB"; -chmod +x scripts/misc/create_dbs_travis.sh; -scripts/misc/create_dbs_travis.sh before_script; - -paver run_tests --coverage --local false \ No newline at end of file diff --git a/test_oauth2.sh b/test_oauth2.sh deleted file mode 100755 index 79056e01dcd..00000000000 --- a/test_oauth2.sh +++ /dev/null @@ -1,9 +0,0 @@ -# To run this test you need first to crate a "Resource owner password-based" OAUTH2 App -BASE_URL=http://localhost:8000 -USERNAME=admin -PASSWORD=***** -CLIENT_ID=************* -CLIENT_SECRET=****************** - -TOKEN=$(http --form POST ${BASE_URL}/o/token/ grant_type=password username=${USERNAME} password=${PASSWORD} -a ${CLIENT_ID}:${CLIENT_SECRET} | jq -r '.access_token') -http ${BASE_URL}/o/userinfo/ scopes=openid,write claims=username "Authorization:Bearer ${TOKEN}" --all -v diff --git a/test_upload.sh b/test_upload.sh deleted file mode 100755 index 8d1cda2b4a8..00000000000 --- a/test_upload.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -export SITEURL=http://localhost:8001/ -export BACKEND=geonode.geoserver -export DOCKER_COMPOSE_VERSION=1.19.0 -export GEOSERVER_SERVER_URL=http://geoserver:8080/geoserver/ -export GEOSERVER_SERVER_PORT=8080 -export ON_TRAVIS=True -export TEST_RUNNER_KEEPDB=True -export TEST_RUN_INTEGRATION=True -export TEST_RUN_INTEGRATION_SERVER=False -export TEST_RUN_INTEGRATION_UPLOAD=True -export TEST_RUN_INTEGRATION_MONITORING=False -export TEST_RUN_INTEGRATION_CSW=False -export TEST_RUN_INTEGRATION_BDD=False -export MONITORING_ENABLED=False -export SESSION_EXPIRED_CONTROL_ENABLED=True -export ASYNC_SIGNALS=False -export DATABASE_URL=postgis://geonode:geonode@db:5432/geonode -export GEODATABASE_URL=postgis://geonode:geonode@db:5432/geonode_data -export DEFAULT_BACKEND_DATASTORE=datastore - -# echo "Initialize DB"; -# chmod +x scripts/misc/create_dbs_travis.sh; -# scripts/misc/create_dbs_travis.sh before_script; - -paver run_tests --coverage --local false \ No newline at end of file