Commit Graph

465 Commits

Author SHA1 Message Date
Théophile Diot 600ea7e168
Update python deps 2023-08-08 12:03:49 +00:00
Théophile Diot 18ee159711
lint python files 2023-08-08 11:39:43 +00:00
florian 6047a43358
set default value for ports in bw entrypoint, fix core db tests and fix missing PYTHONPATH for certbot job 2023-08-07 22:16:06 +02:00
florian ee2aeda13a
tests - add static delay for linux tests and fix core db tests 2023-08-07 20:47:48 +02:00
florian 5df2a74caf
improved LE certificates checks and fix missing full SERVER_NAME when MULTISITE=no 2023-08-05 18:56:31 +02:00
florian 843c023707
tests - fix wrong command in linux tests 2023-08-04 17:13:07 +02:00
florian 8f7833413b
linux - fix letsencryt not working and fix permissions on /etc/bunkerweb/configs for tests 2023-08-04 16:36:49 +02:00
florian e2fe947cb4
ci/cd - fix tests UI not showing logs 2023-08-02 17:39:18 +02:00
florian bf9cd367d0
fix missing Strict-Transport-Policy header, fix X-Forwarded-Prefix with regex URLs and print logs when UI tests failed 2023-08-02 16:54:05 +02:00
Théophile Diot ad45bbb4d7
Update python deps and fix error with PyYAML compilation 2023-07-19 13:05:11 -04:00
Théophile Diot 9216becb56
Update python deps 2023-07-17 10:02:40 -04:00
Théophile Diot 08f9e5f20a
Fix bad behavior core tests by adding a custom subnet to the bw-docker network 2023-07-04 16:26:54 -04:00
Théophile Diot fccb25bee6
Add automatic bw-docker network removal between each try 2023-07-04 16:19:27 -04:00
Théophile Diot d6407b8186
Fix db core tests by making the network bw-docker entirely external 2023-07-04 16:10:48 -04:00
Théophile Diot 1cf281ef83
Update core tests to be even more verbose 2023-07-04 15:59:16 -04:00
Théophile Diot 3a714b9a3f
Update core tests to be more verbose 2023-07-04 15:43:48 -04:00
Théophile Diot 864619542c
Fix core db tests (again) 2023-07-04 15:15:38 -04:00
Théophile Diot be46f7a8d8
Optimize db core tests 2023-07-04 12:44:25 -04:00
Théophile Diot e0055328af
Fix add missing deps for core db tests 2023-06-30 17:02:32 -04:00
Théophile Diot 265123835f
Update python deps 2023-06-29 12:27:08 -04:00
Théophile Diot 162198bb93
Update db core tests to ignore the added value for env custom configs 2023-06-21 15:46:50 -04:00
Théophile Diot 7a524b43e6
Revert back to 30 seconds of sleep in tests ui after creating a custom config 2023-06-21 15:33:49 -04:00
Théophile Diot 0661916ffc
Update ui tests to wait more after creating a custom config 2023-06-21 13:58:45 -04:00
Théophile Diot 2105dc0f32
Update core db tests to use the right hash for plugins_page files 2023-06-21 13:56:41 -04:00
Théophile Diot 3e871efed8
Update python deps 2023-06-17 13:34:53 -04:00
florian dcf1561358
prepare for 1.5.1 🚀 2023-06-14 21:39:12 +02:00
bunkerity 4023e6dc69 road to v1.5.1 2023-06-14 18:30:34 +02:00
AxyFr 7e66c577f8 Removing python 3.11 in linux 2023-06-14 15:15:44 +02:00
Théophile Diot 73060e42a1
Fix limit core tests 2023-06-12 19:07:48 -04:00
Théophile Diot 5d7ef69c9d
Update limit core tests to avoid false negative 2023-06-12 18:37:14 -04:00
Théophile Diot 855ae89363
Update limit core tests to avoid false positive 2023-06-12 18:35:24 -04:00
Théophile Diot 605e237fd5
Remove 404 from Bad behavior status codes 2023-06-12 16:55:33 -04:00
Théophile Diot 6ab48d9dd2
Update python image to tag 3.11.4-alpine 2023-06-09 13:24:55 -04:00
Théophile Diot c39dd78aec
Update cors plugin tests 2023-06-08 09:32:51 -04:00
Théophile Diot 64aa12b70b
Update python deps 2023-06-06 09:29:40 -04:00
Théophile Diot 6cc20efe72
Update bad behavior test BAD_BEHAVIOR_COUNT_TIME to 30 seconds 2023-06-02 10:30:02 -04:00
Théophile Diot e2a3bfb106
Bad behavior core tests change the ban time to 60 seconds 2023-06-02 10:08:51 -04:00
Théophile Diot 1eeefead95
Core tests sleep between each request 2023-06-02 09:49:25 -04:00
Théophile Diot 8b2517cdf0
Remove ui cache download test - to much unstable 2023-06-01 10:30:17 -04:00
Théophile Diot 7efb82a7ee
Update python deps 2023-05-31 14:15:21 -04:00
Théophile Diot 1f2c973a3b
Fix docker-compose file for custom cert job 2023-05-26 15:03:29 -04:00
Théophile Diot 83413aef2b
Remove open ports from core tests docker compose files 2023-05-26 14:48:03 -04:00
Théophile Diot 548630e3e9
Update python deps 2023-05-23 16:57:28 -04:00
florian 6666a25fcc
edit version, update images on docs and fix bug in Linux script 2023-05-22 19:31:41 +02:00
florian f85f736785
Merge branch 'dev' of github.com:bunkerity/bunkerweb into dev 2023-05-22 15:39:22 +02:00
florian f1efe06e99
ci/cd - fix /opt/actions-runner perms for self-hosted runners 2023-05-22 15:39:09 +02:00
Théophile Diot 78f7570e16
core - Fix bwcli condition when checking bans 2023-05-21 12:50:16 -04:00
Théophile Diot 97723185ba
core - Add bwcli tests 2023-05-21 12:17:35 -04:00
Théophile Diot ab3b3ea8fd
ui-tests - update waiting time after creating a custom conf 2023-05-21 10:49:56 -04:00
Théophile Diot 9b58b397c9
Fix ui tests (again) 2023-05-20 17:46:55 -04:00
Théophile Diot 69b35636e3
Fix UI tests (once again) 2023-05-20 17:10:28 -04:00
Théophile Diot af19cc226d
core - Add redis tests 2023-05-19 16:25:01 -04:00
Théophile Diot 0087ae5832
Update python deps 2023-05-19 16:24:45 -04:00
Théophile Diot 8133c134e0
core - Fix db tests by removing "order" key check 2023-05-19 16:09:24 -04:00
Théophile Diot 1d126e1d0e
core - fix cors tests with the preflight request 2023-05-18 18:01:18 -04:00
Théophile Diot dbb8840992
core - Update allowed_methods test method to GET 2023-05-18 17:04:55 -04:00
Théophile Diot 62cb85453a
core - Remove cert verification when testing allowed methods in misc tests 2023-05-18 16:47:35 -04:00
Théophile Diot 10bdf551aa
core - Add misc tests 2023-05-18 14:05:27 -04:00
Théophile Diot 7158e7e9a1
core - Optimize cors tests 2023-05-18 09:05:07 -04:00
florian 4c4fa44fbc
ci/cd - fix core/cors tests 2023-05-17 09:05:17 +02:00
florian 4378f18cc8
fix typo in bunkernet.lua, add missing Origin header in cors tests and fix allow origin expected value 2023-05-16 19:26:45 +02:00
florian 7d84e03a15
fix header plugin phase not called for internal request (fixes CORS), fix bunkernet init_worker bug where ngx.ctx.bw is not available, add CORS_DENY_REQUEST setting and edit values for core/cors tests 2023-05-16 18:57:19 +02:00
Théophile Diot 36fdec1058
core - fix sessions tests 2023-05-16 11:23:56 -04:00
Théophile Diot 991f7ff8d0
Fix tests core reverse scan wasn't using the image 2023-05-15 09:20:29 -04:00
Théophile Diot 9c77f77fa7
Fix test core DB 2023-05-15 09:18:43 -04:00
Théophile Diot 9ee74aef4f
Add up back when retrying to up the stack + remove useless print 2023-05-15 09:01:53 -04:00
Théophile Diot 7bf4c11bc5
When docker up fails in core tests retry one time 2023-05-15 08:47:52 -04:00
Théophile Diot 82aadfa38c
Update core db tests to add the settings.json file and optimizations 2023-05-15 08:26:09 -04:00
Théophile Diot 394f5fe4bd
Move back to images in the whitelist tests 2023-05-14 21:00:11 -04:00
Théophile Diot b06210bdfb
Remove unused files in tests core 2023-05-14 20:59:54 -04:00
Théophile Diot e6bb9fb55f
Add tests for core plugins 2023-05-14 20:57:58 -04:00
Théophile Diot 64789276ac
Update python deps 2023-05-09 11:12:24 -04:00
florian a58e5c60c0
deps - upgrade python dependencies 2023-05-07 12:12:44 +02:00
florian fd056102d4
fix centos repo command in rhel dockerfiles and fix delete infras order for staging wf 2023-05-07 11:21:07 +02:00
florian a086ff6909
Merge branch 'dev' of github.com:bunkerity/bunkerweb into dev 2023-05-06 02:22:51 +02:00
florian a286e7bd32
fix wrong container in autoconf/k8s, init work on linux arm and ci/cd refactoring 2023-05-06 02:22:30 +02:00
Théophile Diot d4934cfee5
Remove test-ui service in the main docker compose file as it's been extracted 2023-05-05 10:02:46 -04:00
Théophile Diot 500d58e508
Separate the compose file back 2023-05-05 09:56:03 -04:00
Théophile Diot 21dc67b68d
Update test.sh for ui-tests an the compose file 2023-05-05 09:46:52 -04:00
Théophile Diot 75d2be7db7
Update tests-ui to fix them 2023-05-05 09:39:22 -04:00
Théophile Diot 041b7f71e5
Update ui-tests to make a valid password 2023-05-05 09:06:54 -04:00
florian b75ba601b5
Merge branch 'staging' into dev 2023-05-05 07:36:19 +02:00
Théophile Diot 9ff64426b7
Fix ui tests with the external plugins 2023-05-04 18:51:44 -04:00
Théophile Diot 964d318939
Fix wrong attribute value when checking for external plugins 2023-05-04 17:41:27 -04:00
Théophile Diot 914686e78e
Fix often occurring bug when testing the web UI 2023-05-04 17:30:43 -04:00
florian 1c74c5d8d5
ci/cd - refactoring 2023-05-04 23:21:36 +02:00
Théophile Diot 2f992baab3
Lint py files with black 2023-04-30 09:15:06 +02:00
Théophile Diot 7befd927d7
Update python deps 2023-04-30 09:14:52 +02:00
Théophile Diot d4ceb7c106
Remove dev comments for ui tests 2023-04-30 08:50:07 +02:00
Théophile Diot b37c86e620
Fix ui tests problem with the logs page 2023-04-30 08:44:33 +02:00
Théophile Diot 3b237ed3cc
Fix UI tests 2023-04-30 08:20:27 +02:00
Théophile Diot 08e1d157d7
Fix ui-tests by removing no longer present checks 2023-04-29 17:13:55 +02:00
Théophile Diot f6b8d23fba
Fix ui tests by editing the attributes name to the new ones 2023-04-29 15:50:53 +02:00
florian 54a17c7752
init work on CI/CD for generic beta releases, remove useless autoconf examples and fix linux postinstall script 2023-04-29 15:21:30 +02:00
bunkerity 5e4ce45793 various fixes 2023-04-28 16:47:51 +02:00
bunkerity fa67c5d7ba ci/cd - fix missing arg for copytree 2023-04-28 15:45:21 +02:00
Théophile Diot 3dabd42dfc
Update python deps 2023-04-23 16:15:53 +02:00
Théophile Diot 3b5c083fc7
Soft merge branch "1.4" into "dev" + changing versions 2023-04-18 12:03:54 +02:00
Théophile Diot 0afe038aa5
WIP Ui 2023-04-18 10:27:00 +02:00
bunkerity b5fa473ae3 Merge branch 'refactor' into staging 2023-04-18 09:53:23 +02:00
florian 928ed2d6ce
refactoring and road to nginx 1.24.0 2023-04-17 02:24:19 +02:00
Théophile Diot 34ab94640f
Update python image in Dockerfiles + Add gevent to requirements for the UI 2023-04-16 16:29:31 +02:00
Théophile Diot e6ff51e200
Refactoring and Linting of py files and json 2023-04-14 17:37:59 +02:00
Théophile Diot 049e9c1ea6
Update python deps 2023-04-07 18:52:31 +02:00
bunkerity 8e72050625 ci/cd - reduce dynamic subdomains for k8s tests because of annotation size limit of 63 chars 2023-04-05 16:44:13 +02:00
bunkerity 1bc42204d9 ci/cd - use dynamic random subdomains to bypass LE rate limit 2023-04-05 13:33:21 +02:00
bunkerity f4442b6428 ci/cd - fix syntax error in k8s test class 2023-04-03 13:39:56 +02:00
bunkerity e8c6d04aa6 ci/cd - various fixes for k8s tests 2023-04-03 12:15:54 +02:00
florian ea1394b044
ci/cd - add linux/rhel tests, fix docker/behind-reverse-proxy, fix missing stream module for linux/fedora and remove placement constraints for swarm 2023-03-31 13:04:51 +02:00
florian b3eb647459
ci/cd - temp disable autoconf tests and add missing packages for linux/centos 2023-03-31 09:52:37 +02:00
florian 1c3f094cd9
ci/cd - fix wrong yaml edit for swarm and append LE settings for k8s 2023-03-29 22:03:24 +02:00
bunkerity f07c0e66a3 ci/cd - various fixes 2023-03-29 17:33:23 +02:00
florian e50c92250b
various fixes 2023-03-28 21:32:04 +02:00
Théophile Diot b8b50b165c
Remove check for messages after creating the service - tests-UI 2023-03-28 19:58:06 +02:00
Théophile Diot e88406b5d2
Fix ui tests with the new UI 2023-03-28 19:28:57 +02:00
bunkerity 671db37f73 fix autoconf/cors, fix docker/wordpress, fix wrong image name for k8s/scheduler and upgrade tests instances for swarm/k8s 2023-03-28 17:43:10 +02:00
bunkerity 5e598e90c9 fix bw-data volume not reused between docker tests, fix wrong bw-data volume path for autoconf tests, add let's encrypt to autoconf tests and fix temp env not generated for linux 2023-03-28 15:26:58 +02:00
bunkerity bf22faddc6 remove php-cookie-flags from tests, use HTTP(S)_PORT for temp nginx on linux and fix wrong volume path for autoconf tests 2023-03-27 17:36:31 +02:00
bunkerity fa7c7ac91f ci/cd - add www volumes for autoconf 2023-03-27 11:39:18 +02:00
bunkerity 19870f154c various fixes for linux and get ui tests exit code from container 2023-03-24 17:50:20 +01:00
bunkerity 1cf4a5665d disable healthy checks for docker-poryx and dummy app in ui tests, add --no-reload-linux flag to generator and fix missing self arg in autoconf 2023-03-24 13:58:27 +01:00
bunkerity 4f9748cc2e earlier init autoconf in DB, healthcheck for scheduler and fix syntax error in linux/start.sh 2023-03-24 11:28:08 +01:00
bunkerity 58ab870b2d increase cors/k8s/swarms timeout and fix tests/ui container names 2023-03-23 16:00:54 +01:00
florian 7dc25b3a52
fix redmine/docker example, remove double AUTOCONF_MODE in integrations, remove useless backslash in start.sh/linux, rename container for ui/tests 2023-03-22 19:53:22 +01:00
florian 73b640bd3b
fix cors/docker example, add missing AUTOCONF_MODE=yes to integrations YMLs, proper save_config for Linux and fix image name for UI tests 2023-03-22 17:32:46 +01:00
florian d331131c09
increase timeout for php-multisite, add API_LISTEN_IP setting, edit default variables.env for Linux and add more logs for tests 2023-03-22 16:24:48 +01:00
bunkerity ccde5c74f1 fix real ip jobs 2023-03-17 18:26:42 +01:00
Théophile Diot 1ac434a5bc
Update python deps 2023-03-13 14:30:42 +01:00
Théophile Diot 8c67d08aee
Lint code 2023-03-09 10:04:59 +01:00
bunkerity 966f57ceaa init work on examples refactoring 2023-03-08 17:01:55 +01:00
bunkerity 6f29756dd7 ci/cd - pull only interesting images for UI tests 2023-03-07 17:52:39 +01:00
bunkerity 2b1dbb1d46 fix default cert path again and ignore pull errors for UI tests 2023-03-07 17:25:37 +01:00
bunkerity 74a11c2ed8 fix wrong cert/key path for default server 2023-03-07 16:57:45 +01:00
bunkerity b3769b6e3f fix missing then in blacklist.lua, disable site search in redis.init(), remove counter from reverse-proxy/stream config and fix ui tests compose pull 2023-03-07 16:20:47 +01:00
bunkerity c7d8b7dc18 update resty core and http lua to support latest version of stream lua and various fixes related to ci/cd 2023-03-07 15:31:41 +01:00
bunkerity a62ef9f543 add missing init-stream-lua.conf and various fixes for ci/cd 2023-03-07 15:00:49 +01:00
bunkerity 65611020d8 fix duplicate datastore http/stream, fix missing /var/www/html for linux and various fixes in tests 2023-03-07 14:20:42 +01:00
bunkerity 93945f391f ci/cd - add ui tests 2023-03-07 10:49:27 +01:00
florian aa614b75ad
ci/cd - replace Test.py with latest one, fix yaml paths, print logs when k8s stack is not healthy and fix wrong linux docker image name 2023-03-06 14:23:05 +01:00
florian 88a2955173
ci/cd - fix log() call 2023-03-05 21:51:04 +01:00
florian b95d1bc6d5
ci/cd - add missing log() and fix TYPE for linux tests 2023-03-05 19:00:25 +01:00
bunkerity a168f2bceb ci/cd - fix rhel build and runs-on for tests 2023-03-03 15:51:20 +01:00
bunkerity 8bf211bc53 ci/cd - fix linux package generation (again) 2023-03-03 15:30:25 +01:00
bunkerity 139eaa2dd1 ci/cd - add missing scripts 2023-03-03 14:47:18 +01:00
bunkerity 46e3078dd9 ci/cd - crash test incoming 2023-03-02 18:04:02 +01:00
Théophile Diot bb2d868fa9
Refactor tests 2023-02-22 19:05:06 +01:00
Théophile Diot 26de0a233a
Lint files 2023-02-17 10:11:47 +01:00
Théophile Diot 916caf2d6a
Merge (soft) 1.4 branch into dev branch 2023-02-16 15:15:19 +01:00
AxyFr b75bc0344b Adjusting upgrade on file variables.env 2023-02-14 11:14:54 +01:00
AxyFr c22bccc763 Correcting nginx version for debian installation 2023-02-09 09:10:35 +01:00
AxyFr 9efa217090 Correcting fedora packagecloud problem 2023-02-08 10:06:25 +01:00
AxyFr e3410058fb Correcting Ubuntu/Debian 2023-02-07 17:29:01 +01:00
AxyFr c892050162 Adding Rhel integration 2023-02-06 17:13:15 +01:00
AxyFr d3a02be59b Rhel cannot be supported yet 2023-02-02 16:40:43 +01:00
AxyFr ae8e65057b Fedora upgrade working
Correcting backup during upgrade
Database backuped
TroubleShooting some errors with OS
Centos working
2023-02-01 15:18:49 +01:00
AxyFr 77f41a0591 Backuping old confs working 2023-01-31 12:06:23 +01:00
AxyFr 8fcba30ab0 Upgrade Debian/Ubuntu working 2023-01-30 17:26:41 +01:00
Théophile Diot 4f6244e749
Lint code 2023-01-26 14:42:52 +01:00
Théophile Diot 1f20767565
Update Python deps 2023-01-26 14:41:27 +01:00
AxyFr d83d3aa3d9 Fedora working
Modifying centos systemd
Adding %postun to rpm
Modifying postun deb
Centos working
2023-01-25 11:17:58 +01:00
AxyFr b85e6ee6b8 Updating to Fedora 37 2023-01-24 17:23:42 +01:00
AxyFr ca0d88fcc7 Upgrading script: Ubuntu & Debian working 2023-01-23 17:19:55 +01:00
AxyFr efbcfd0e2c Beginning of automation testing for linux packages 2023-01-12 17:34:17 +01:00
Théophile Diot b1c99e4088
Add tests for the UI 2023-01-10 09:22:51 +01:00
Théophile Diot 146338de63
Refactor every .py file 2022-12-14 17:09:57 +01:00
TheophileDiot edce79936a Update the structure and the paths 2022-11-11 14:55:04 +01:00
TheophileDiot 79eea0e998 Linting + starting to migrate bunkerweb to the 1.5 2022-10-19 17:37:13 +02:00
bunkerity 8f44e108bb
ci/cd - add docker system prune 2022-08-25 16:57:17 +02:00
florian 469a5343ec
ci/cd - remove old linux packages before building 2022-08-24 19:31:37 +02:00
bunkerity d0c245ba83
tests - fix bug when testing if a swarm stack is healthy 2022-08-23 16:41:56 +02:00
florian 29933fdebb
tests - add unzip package to linux container 2022-08-22 15:47:09 +02:00
bunkerity e847343143
tests - fix linux/drupal (again) 2022-08-17 16:43:34 +02:00
bunkerity d0e3f3ae26
tests - call cleanup-linux.sh 2022-08-17 15:01:18 +02:00
bunkerity b0fa57b056
tests - replace restart with stop+start for linux tests 2022-08-17 14:50:39 +02:00
bunkerity ec11360853
tests - print logs when setup_test fails 2022-08-17 14:41:46 +02:00
bunkerity c277a33e9c
tests - add missing which command for fedora 2022-08-16 15:42:18 +02:00
bunkerity 512c60c519
tests - add some debug info when linux/setup fail 2022-08-16 14:32:09 +02:00
bunkerity e64cc29a8c
tests - create /run/php folder for rpm linux distros 2022-08-16 12:15:42 +02:00
bunkerity 8e15e2a400
linux - set /opt/bunkerweb permissions to 755 2022-08-12 16:56:07 +02:00
bunkerity 5849c66e66
tests - fix www.conf 2022-08-12 16:19:21 +02:00
bunkerity 052dc23466
tests - increase php logs verbosity for linux tests 2022-08-12 16:11:44 +02:00
bunkerity 331c7e9545
tests - add debug log file for PHP 2022-08-12 15:54:04 +02:00
bunkerity eb6f0d6737
tests - fix purging wrong folder for linux tests 2022-08-12 09:35:14 +02:00
bunkerity b5c07dda01
tests - add cleanup for linux tests 2022-08-11 17:36:19 +02:00
bunkerity 17b6b0fdc8
tests - fix PHP www.conf for Linux 2022-08-11 16:22:16 +02:00
bunkerity 512ed7200d
tests - add cors/linux 2022-08-11 14:11:28 +02:00
bunkerity d8071e4c43
tests - install php-fpm 2022-08-11 13:54:18 +02:00
bunkerity 790fa37aeb
tests - fix behind-reverse-proxy/linux 2022-08-11 13:28:30 +02:00
bunkerity 0c4d2edf12
tests - fix behind-reverse-proxy/linux 2022-08-10 16:24:00 +02:00
bunkerity 093d426bc9
better management of registration with BunkerNet and fix syntax error in LinuxTest 2022-08-10 12:19:03 +02:00
bunkerity 3762c38741
tests - copy variables.env for Linux tests 2022-08-08 13:57:00 +02:00
bunkerity 97a2caf06e
tests - fix Kubernetes missing variable assign 2022-07-29 11:30:12 +02:00
bunkerity 1c4f8bf55c
tests - automatic volumes prune for swarm tests 2022-07-27 15:44:42 +02:00
bunkerity 216686fc8c
tests - add delay parameter 2022-07-27 14:44:46 +02:00
bunkerity d3b725294f
tests - wait until swarm services are running 2022-07-27 13:56:05 +02:00
bunkerity b429dd8043
tests - increase timeout for swarm healthy check 2022-07-27 10:44:24 +02:00
bunkerity c67564c7c8
tests - increase timeout when doing requests 2022-07-26 15:42:56 +02:00
florian e01b240723 tests - ignore error when replacing patterns in files (binary files) 2022-07-25 17:57:02 +02:00
bunkerity 70ac3c01b3
tests - fix missing arg no_copy_container 2022-07-25 10:34:11 +02:00
bunkerity 07a962466b
tests - inline configs for docker/autoconf 2022-07-25 10:11:44 +02:00