summaryrefslogtreecommitdiffstats
path: root/tests/config/basic_data.sql
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-04-16 13:39:03 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-04-19 19:05:15 +0200
commitc2c6ce93b1feecbcc79b4d52cf68823f14e88410 (patch)
treec2ce352891770bfffcc3001a733ea7e1093af2b1 /tests/config/basic_data.sql
parent0b5c0813fa253e4f020fc4ee09a2501f96329337 (diff)
#915 Add large HTTP response test
This commit adds a test for HTTP responses that are too large to fit in ogServer response buffer. It also moves the basic sql data used for the other tests to its own file, easing its reuse in several files.
Diffstat (limited to 'tests/config/basic_data.sql')
-rw-r--r--tests/config/basic_data.sql41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/config/basic_data.sql b/tests/config/basic_data.sql
new file mode 100644
index 0000000..aca246d
--- /dev/null
+++ b/tests/config/basic_data.sql
@@ -0,0 +1,41 @@
+
+DELETE FROM centros;
+INSERT INTO centros (
+ idcentro, nombrecentro, identidad, comentarios, directorio)
+VALUES
+(1, 'Center', 1, '', '');
+
+DELETE FROM aulas;
+INSERT INTO aulas (
+ nombreaula, idcentro, urlfoto, grupoid,
+ ubicacion, puestos, modomul, ipmul,
+ pormul, velmul, router, netmask, ntp,
+ dns, proxy, modp2p, timep2p
+)
+VALUES
+ (
+ 'Room', 1, 'aula.jpg', 0, 'Test room.',
+ 5, 2, '239.194.2.11', 9000, 70, '192.168.56.1',
+ '255.255.255.0', '', '', '', 'peer',
+ 30
+ );
+
+DELETE FROM ordenadores;
+INSERT INTO ordenadores (
+ nombreordenador, ip, mac, idaula, idrepositorio,
+ idperfilhard, idmenu, idproautoexec,
+ grupoid, router, mascara, arranque,
+ netiface, netdriver, fotoord
+)
+VALUES
+ (
+ 'pc2', '192.168.2.1', '0800270E6501',
+ 1, 1, 0, 0, 0, 0, '192.168.56.1', '255.255.255.0',
+ '00unknown', 'eth0', 'generic', 'fotoordenador.gif'
+ ),
+ (
+ 'pc2', '192.168.2.2', '0800270E6502',
+ 1, 1, 0, 0, 0, 0, '192.168.56.1', '255.255.255.0',
+ '00unknown', 'eth0', 'generic', 'fotoordenador.gif'
+ );
+