2024-07-25 12:39:01 +00:00
|
|
|
#!/usr/bin/env python3
|
2022-09-19 11:14:35 +00:00
|
|
|
|
|
|
|
import time
|
|
|
|
from flask import url_for
|
|
|
|
from ..util import live_server_setup, wait_for_all_checks, extract_UUID_from_client
|
|
|
|
|
|
|
|
# just make a request, we will grep in the docker logs to see it actually got called
|
2024-07-11 13:03:42 +00:00
|
|
|
def test_check_basic_change_detection_functionality(client, live_server, measure_memory_usage):
|
2022-09-19 11:14:35 +00:00
|
|
|
live_server_setup(live_server)
|
|
|
|
res = client.post(
|
2025-03-18 09:40:22 +00:00
|
|
|
url_for("imports.import_page"),
|
2022-09-19 11:14:35 +00:00
|
|
|
# Because a URL wont show in squid/proxy logs due it being SSLed
|
|
|
|
# Use plain HTTP or a specific domain-name here
|
|
|
|
data={"urls": "http://one.changedetection.io"},
|
|
|
|
follow_redirects=True
|
|
|
|
)
|
|
|
|
|
|
|
|
assert b"1 Imported" in res.data
|
2024-10-11 07:52:55 +00:00
|
|
|
wait_for_all_checks(client)
|