fix: Update E2E test dates — Oct 19-27 all consumed by bot rush, use Oct 28 (9 slots, beyond 15-day window)
This commit is contained in:
@@ -718,15 +718,15 @@ class TestE2ELiveAPI(unittest.TestCase):
|
||||
self.endpoint = self.api_base + "/ScCitaVo1"
|
||||
|
||||
def test_live_getHorasCitas_returns_9_slots(self):
|
||||
"""getHorasCitas for cola I / fecha 21-10-2026 should return 9 slots.
|
||||
(Oct 19 fully booked from midnight run; Oct 20 fully booked from bot rush;
|
||||
Oct 21 is the next available date with 9 slots.)"""
|
||||
"""getHorasCitas for cola I / fecha 28-10-2026 should return 9 slots.
|
||||
(Oct 19-27 fully consumed by midnight bot rushes within the 15-day window;
|
||||
Oct 28 is the next bookable date beyond the window with 9 available slots.)"""
|
||||
import http.client, ssl
|
||||
ctx = ssl.create_default_context()
|
||||
conn = http.client.HTTPSConnection("webservices.alicante.es", 443, context=ctx, timeout=15)
|
||||
conn.connect()
|
||||
body = json.dumps({"name": "getHorasCitas", "parameters": [
|
||||
{"servicio": "S"}, {"cola": "I"}, {"fecha": "21-10-2026"}
|
||||
{"servicio": "S"}, {"cola": "I"}, {"fecha": "28-10-2026"}
|
||||
]}, separators=(",", ":"))
|
||||
headers = {
|
||||
"Content-Type": "application/vnd.oracle.adf.action+json",
|
||||
@@ -747,14 +747,14 @@ class TestE2ELiveAPI(unittest.TestCase):
|
||||
|
||||
def test_live_insertar_returns_date_limit_error(self):
|
||||
"""insertarCitaPrevia for a date beyond the 15-day window should return
|
||||
'Fecha posterior'. Using 25-10-2026 (21 days from Oct 4) which is
|
||||
'Fecha posterior'. Using 28-10-2026 (16 days from Oct 12) which is
|
||||
beyond the max_cita=15 window for cola I."""
|
||||
import http.client, ssl
|
||||
ctx = ssl.create_default_context()
|
||||
conn = http.client.HTTPSConnection("webservices.alicante.es", 443, context=ctx, timeout=15)
|
||||
conn.connect()
|
||||
body = json.dumps({"name": "insertarCitaPrevia", "parameters": [
|
||||
{"servicio": "S"}, {"cola": "I"}, {"fecha": "25-10-2026"}, {"hora": "16:00"},
|
||||
{"servicio": "S"}, {"cola": "I"}, {"fecha": "28-10-2026"}, {"hora": "16:00"},
|
||||
{"documento": "X2491454W"}, {"ip": "0.0.0.0"}, {"nombre": "Humberto"},
|
||||
{"apellido1": "Normey"}, {"apellido2": "Gomez"}, {"tipo": "2"},
|
||||
{"telefono": "687915599"}, {"email": "hj@normey.net"},
|
||||
|
||||
Reference in New Issue
Block a user