Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge branch "dev' into branch "staging" #1276

Merged
merged 53 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
37826bf
feat: Fix error with default value for setting_checkbox.html
TheophileDiot Jun 7, 2024
8e3dd31
chore: Update database restoration instructions for different databas…
TheophileDiot Jun 8, 2024
49494af
Update image format for BunkerWeb Cloud overview in integrations.md
TheophileDiot Jun 8, 2024
561e158
feat: Move update-check.py script into "jobs" plugin and enhance the …
TheophileDiot Jun 8, 2024
b17d45c
Update image format for BunkerWeb Cloud overview in integrations.md
TheophileDiot Jun 8, 2024
eda2997
Update SSL certificate configuration for stream server to avoid tryin…
TheophileDiot Jun 8, 2024
0dc7035
chore: Update Database.py to fix query filter for checking if a setti…
TheophileDiot Jun 8, 2024
f8b86a9
deps/gha: bump ruby/setup-ruby from 1.179.0 to 1.179.1
dependabot[bot] Jun 10, 2024
e46db21
Merge pull request #1264 from bunkerity/dependabot/github_actions/dev…
TheophileDiot Jun 10, 2024
dc9774f
chore: Update Dockerfile to use Python 3.12.4-alpine3.19
TheophileDiot Jun 10, 2024
c3a903d
chore: Improve error handling in mmdb-asn and mmdb-country scripts
TheophileDiot Jun 10, 2024
4075c95
add plugin svg for types
syrk4web Jun 10, 2024
4e3cc4c
chore: Update session and cookie configurations in web UI
TheophileDiot Jun 10, 2024
5b95542
chore: Update session and cookie configurations in web UI
TheophileDiot Jun 10, 2024
e22b901
account get current key value and disabled scheduler
syrk4web Jun 10, 2024
d08eec1
chore: Enable self-signed SSL certificate generation for UI services …
TheophileDiot Jun 10, 2024
7ab6c86
chore: Update plugin SVGs for external plugins by adding an external …
TheophileDiot Jun 10, 2024
8cf616c
deps/tests/linux: bump redhat/ubi8-init in /tests/linux
dependabot[bot] Jun 11, 2024
9ef12df
deps/gha: bump docker/build-push-action from 5.3.0 to 5.4.0
dependabot[bot] Jun 11, 2024
b56606b
chore: Refactor check_cert function to handle exceptions and improve …
TheophileDiot Jun 12, 2024
d24831f
chore: Update libmaxminddb dependency to v1.10.0
TheophileDiot Jun 12, 2024
1b0ee3e
chore: Update lua-cjson dependency to v2.1.0.14
TheophileDiot Jun 12, 2024
e66e2bb
Squashed 'src/deps/src/libmaxminddb/' changes from e26013e1d2..7acfe4…
TheophileDiot Jun 12, 2024
1974c40
Merge commit 'e66e2bb891b06aaec6f18b1676ff208f034f071d' into dev
TheophileDiot Jun 12, 2024
cdc12b2
Squashed 'src/deps/src/lua-cjson/' changes from 881accc8fa..f95cd9ea1e
TheophileDiot Jun 12, 2024
3c5d76e
Merge commit 'cdc12b239d4332a896d933cfa998fdc40b6a7aa8' into dev
TheophileDiot Jun 12, 2024
d10c0c2
Merge pull request #1266 from bunkerity/dependabot/github_actions/dev…
TheophileDiot Jun 12, 2024
f67f5f6
Merge pull request #1265 from bunkerity/dependabot/docker/tests/linux…
TheophileDiot Jun 12, 2024
95c7896
feat: Fix cookie handling for session in logs_page.py tests
TheophileDiot Jun 12, 2024
ffd0e6a
chore: Update maxminddb dependency to version 2.6.2
TheophileDiot Jun 12, 2024
0d3ae93
Add failover logic to scheduler and web UI
TheophileDiot Jun 12, 2024
5a6720e
Update CHANGELOG.md
TheophileDiot Jun 12, 2024
4bee7d1
feat: Add Event object for applying changes before stopping
TheophileDiot Jun 12, 2024
3f91758
chore: Update plugin.json files and docs with improved help text for …
TheophileDiot Jun 12, 2024
b98d2e5
deps/gha: bump ruby/setup-ruby from 1.179.1 to 1.180.0
dependabot[bot] Jun 13, 2024
b54be96
deps/gha: bump actions/checkout from 4.1.6 to 4.1.7
dependabot[bot] Jun 13, 2024
781a861
Optimize web UI DB requests and avoid skip of pro-plugins download wh…
TheophileDiot Jun 13, 2024
0aabffb
Fix shenanigans in web UI automatic tests
TheophileDiot Jun 13, 2024
8d8cc8b
chore: Fix config checks in web UI (post optimization)
TheophileDiot Jun 13, 2024
43b9f2b
deps/tests/linux: bump redhat/ubi9-init in /tests/linux
dependabot[bot] Jun 14, 2024
ccd9ab6
deps/gha: bump github/codeql-action from 3.25.8 to 3.25.10
dependabot[bot] Jun 14, 2024
2250655
deps/linux: bump redhat/ubi9 from `d31d3e5` to `d98fdae` in /src/linux
dependabot[bot] Jun 14, 2024
4803c49
Optimize and fix database config handling in general
TheophileDiot Jun 14, 2024
eb17ba2
Fix small mistake in config gathering with global_only argument being…
TheophileDiot Jun 14, 2024
15dc826
Merge pull request #1272 from bunkerity/dependabot/github_actions/dev…
TheophileDiot Jun 14, 2024
41cb958
Merge pull request #1269 from bunkerity/dependabot/github_actions/dev…
TheophileDiot Jun 14, 2024
c5c0946
Merge pull request #1268 from bunkerity/dependabot/github_actions/dev…
TheophileDiot Jun 14, 2024
819875c
Merge pull request #1273 from bunkerity/dependabot/docker/src/linux/d…
TheophileDiot Jun 14, 2024
195c880
Merge pull request #1271 from bunkerity/dependabot/docker/tests/linux…
TheophileDiot Jun 14, 2024
1c22ec3
chore: Update selenium and fix automatic web UI tests
TheophileDiot Jun 14, 2024
4850731
chore: Update redis dependency to version 5.0.6
TheophileDiot Jun 14, 2024
727244e
chore: Update requests dependency to version 2.32.3
TheophileDiot Jun 14, 2024
89abb65
chore: Refresh page after navigating to configs page so that we don't…
TheophileDiot Jun 14, 2024
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
Prev Previous commit
Next Next commit
Fix shenanigans in web UI automatic tests
  • Loading branch information
TheophileDiot committed Jun 13, 2024
commit 0aabffb6209b645dd985fa4c77b5242457ca14cb
6 changes: 3 additions & 3 deletions tests/ui/configs_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

assert_alert_message(DRIVER, "Created")

sleep(30)
sleep(5)

DRIVER.execute_script("window.open('http://www.example.com/hello','_blank');")
DRIVER.switch_to.window(DRIVER.window_handles[1])
Expand Down Expand Up @@ -165,7 +165,7 @@

assert_alert_message(DRIVER, "Deleted")

sleep(30)
sleep(5)

resp = get("http://www.example.com/hello", verify=False)

Expand Down Expand Up @@ -202,7 +202,7 @@

assert_alert_message(DRIVER, "Created")

sleep(30)
sleep(5)

DRIVER.execute_script("window.open('http://app1.example.com/hello','_blank');")
DRIVER.switch_to.window(DRIVER.window_handles[1])
Expand Down
8 changes: 7 additions & 1 deletion tests/ui/jobs_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@

log_info("Reload filter is working, trying jobs cache ...")

resp = get(f"http://www.example.com{UI_URL}/jobs/download?job_name=mmdb-country&file_name=country.mmdb", verify=False)
cookie = DRIVER.get_cookies()[0]
resp = get(
f"https://www.example.com{UI_URL}/jobs/download?job_name=mmdb-country&file_name=country.mmdb",
headers={"Host": "www.example.com", "User-Agent": DRIVER.execute_script("return navigator.userAgent;")},
cookies={cookie["name"]: cookie["value"]},
verify=False,
)

if resp.status_code != 200:
log_error("The cache download is not working, exiting ...")
Expand Down
14 changes: 7 additions & 7 deletions tests/ui/plugins_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
DEACTIVATED_PLUGINS = ("antibot", "blacklist", "bunkernet", "cors", "country", "greylist", "redis", "reversescan")
for plugin in DEACTIVATED_PLUGINS:
log_info(f"Trying {plugin} plugin page ...")
DRIVER.get(f"http://www.example.com{UI_URL}/plugins/{plugin}")
DRIVER.get(f"https://www.example.com{UI_URL}/plugins/{plugin}")
first_card = safe_get_element(DRIVER, By.XPATH, "/html/body/main/div/div/div/div[1]/h5")
assert isinstance(first_card, WebElement), "First card is not a WebElement"

Expand All @@ -122,7 +122,7 @@
DRIVER.back()

log_info("Trying bad behavior plugin page ...")
DRIVER.get(f"http://www.example.com{UI_URL}/plugins/badbehavior")
DRIVER.get(f"https://www.example.com{UI_URL}/plugins/badbehavior")

sleep(5)

Expand All @@ -143,7 +143,7 @@
DRIVER.back()

log_info("Trying dnsbl plugin page ...")
DRIVER.get(f"http://www.example.com{UI_URL}/plugins/dnsbl")
DRIVER.get(f"https://www.example.com{UI_URL}/plugins/dnsbl")

sleep(5)

Expand All @@ -158,7 +158,7 @@
DRIVER.back()

log_info("Trying errors plugin page ...")
DRIVER.get(f"http://www.example.com{UI_URL}/plugins/errors")
DRIVER.get(f"https://www.example.com{UI_URL}/plugins/errors")

sleep(5)

Expand All @@ -179,7 +179,7 @@
DRIVER.back()

log_info("Trying limit plugin page ...")
DRIVER.get(f"http://www.example.com{UI_URL}/plugins/limit")
DRIVER.get(f"https://www.example.com{UI_URL}/plugins/limit")

limit_info_elem = safe_get_element(DRIVER, By.XPATH, "/html/body/main/div/div/div[1]/h5")
assert isinstance(limit_info_elem, WebElement), "Limit info element is not a WebElement"
Expand All @@ -192,7 +192,7 @@
DRIVER.back()

log_info("Trying miscellaneous plugin page ...")
DRIVER.get(f"http://www.example.com{UI_URL}/plugins/misc")
DRIVER.get(f"https://www.example.com{UI_URL}/plugins/misc")

sleep(5)

Expand All @@ -209,7 +209,7 @@
DRIVER.back()

log_info("Trying whitelist plugin page ...")
DRIVER.get(f"http://www.example.com{UI_URL}/plugins/whitelist")
DRIVER.get(f"https://www.example.com{UI_URL}/plugins/whitelist")

sleep(5)

Expand Down