This commit is contained in:
Oscar Krause 2024-11-18 21:24:00 +01:00
parent 1aee423120
commit 018d7c34fc

View File

@ -111,20 +111,20 @@ def test_auth_v1_origin_malformed_json():
import json import json
# see oscar.krause/fastapi-dls#1 # see oscar.krause/fastapi-dls#1
payload = f"""{ payload = f'''{{
"registration_pending": "false", "registration_pending": "false",
"environment": { "environment": {{
"guest_driver_version": "guest_driver_version", "guest_driver_version": "guest_driver_version",
"hostname": "myhost", "hostname": "myhost",
"ip_address_list": ["192.168.1.123"], "ip_address_list": ["192.168.1.123"],
"os_version": "os_version", "os_version": "os_version",
"os_platform": "os_platform", "os_platform": "os_platform",
"fingerprint": {"mac_address_list": [ff:ff:ff:ff:ff:ff"]}, "fingerprint": {{"mac_address_list": [ff:ff:ff:ff:ff:ff"]}},
"host_driver_version": "host_driver_version" "host_driver_version": "host_driver_version"
}, }},
"update_pending": "false", "update_pending": "false",
"candidate_origin_ref": "{ORIGIN_REF}" "candidate_origin_ref": "{ORIGIN_REF}"
}""" }}'''
# test regex (temporary, until this section is merged into main.py # test regex (temporary, until this section is merged into main.py