diff options
author | Oliver Tappe | 2006-08-29 19:01:15 +0200 |
---|---|---|
committer | Oliver Tappe | 2006-08-29 19:01:15 +0200 |
commit | d9ad40ab38bdc85eaaebbf84105e61e9c88f02ef (patch) | |
tree | 8ea0754972cf34b4d51156624d328c90456904e9 /config-db | |
parent | * added support for fetching and changing system_variants (diff) | |
download | core-d9ad40ab38bdc85eaaebbf84105e61e9c88f02ef.tar.gz core-d9ad40ab38bdc85eaaebbf84105e61e9c88f02ef.tar.xz core-d9ad40ab38bdc85eaaebbf84105e61e9c88f02ef.zip |
* changed test-data to be better suited for testing
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@339 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rwxr-xr-x | config-db/test-config-demuxer.pl | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/config-db/test-config-demuxer.pl b/config-db/test-config-demuxer.pl index 2910db13..63d91073 100755 --- a/config-db/test-config-demuxer.pl +++ b/config-db/test-config-demuxer.pl @@ -12,18 +12,22 @@ openslxInit(); my $openslxDB = connectConfigDB(); addVendorOS($openslxDB, { - 'name' => "suse-93-minimal", + 'name' => "suse-10-minimal", 'descr' => "SuSE 9.3 minimale Installation", + 'path' => "suse10", + # relative to /var/lib/openslx/stage1 }); addVendorOS($openslxDB, { - 'name' => "suse-93-KDE", + 'name' => "suse-10-KDE", 'descr' => "SuSE 9.3 grafische Installation mit KDE", + 'path' => "suse10", }); addVendorOS($openslxDB, { 'name' => "debian-31", 'descr' => "Debian 3.1 Default-Installation", +# 'path' => "/var/lib/openslx/stage1/suse10", }); my @systems; @@ -33,8 +37,9 @@ foreach my $id (1..10) { 'label' => "label of $id", 'descr' => "descr of $id", 'vendor_os_id' => 1 + $id % 3, - 'kernel' => "kernel of $id", - 'kernel_params' => "kernel-args of $id", + 'initramfs' => "boot/initrd-2.6.13-15-default", + 'kernel' => "boot/vmlinuz-2.6.13-15-default", + 'kernel_params' => "splash=silent", }; } addSystem($openslxDB, \@systems); @@ -43,9 +48,9 @@ removeSystem($openslxDB, [1,3,5,7,9,11,13,15,17,19] ); changeSystem($openslxDB, [ 2 ], [ { 'name' => 'new name of 2'} ] ); -changeSystem($openslxDB, [ 0 ], [ { 'attrStartX' => 'kde,gnome'} ] ); -changeSystem($openslxDB, [ 1,2,3 ], [ { 'attrHwMonitor' => '1280x1024'} ] ); -changeSystem($openslxDB, [ 4 ], [ { 'attrHwMonitor' => '800x600'} ] ); +changeSystem($openslxDB, [ 0 ], [ { 'attr_start_x' => 'kde,gnome'} ] ); +changeSystem($openslxDB, [ 1,2,3 ], [ { 'attr_hw_monitor' => '1280x1024'} ] ); +changeSystem($openslxDB, [ 4 ], [ { 'attr_hw_monitor' => '800x600'} ] ); changeSystem($openslxDB, 4, { 'id' => 114, 'name' => 'id should still be 4'} ); @@ -175,14 +180,14 @@ addClientIDsToSystem($openslxDB, 6, [$clientG01ID, $clientG02ID, $clientG03ID, $ my $group1ID = addGroup($openslxDB, { 'name' => "Gell-PCs", 'descr' => "Gell-Threemansion PCs from 2002", - 'attrHwMouse' => 'serial', + 'attr_hw_mouse' => 'serial', }); addClientIDsToGroup($openslxDB, $group1ID, [$clientG01ID, $clientF02ID, $clientG03ID]); my $group2ID = addGroup($openslxDB, { 'name' => "Teacher-PCs", 'descr' => "all PCs sitting on teacher's desks", - 'attrHwMonitor' => '1600x1200', + 'attr_hw_monitor' => '1600x1200', }); addClientIDsToGroup($openslxDB, $group2ID, [$clientG01ID, $clientF01ID]); addSystemIDsToGroup($openslxDB, $group2ID, [2, 3]); |