diff options
author | Oliver Tappe | 2006-08-18 20:14:10 +0200 |
---|---|---|
committer | Oliver Tappe | 2006-08-18 20:14:10 +0200 |
commit | 3175a59fb8f7683c9d2d4b2d15debc7cd12750f7 (patch) | |
tree | 37c950323052e8f3757f5ed9ebc258932ad94e48 /config-db | |
parent | * added temp-basepath configuration option (diff) | |
download | core-3175a59fb8f7683c9d2d4b2d15debc7cd12750f7.tar.gz core-3175a59fb8f7683c9d2d4b2d15debc7cd12750f7.tar.xz core-3175a59fb8f7683c9d2d4b2d15debc7cd12750f7.zip |
* added more testdata, this file will be changed into a
proper test-script later
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@315 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db')
-rwxr-xr-x | config-db/testConfDB.pl | 68 |
1 files changed, 62 insertions, 6 deletions
diff --git a/config-db/testConfDB.pl b/config-db/testConfDB.pl index ebf126f3..9a400694 100755 --- a/config-db/testConfDB.pl +++ b/config-db/testConfDB.pl @@ -40,6 +40,11 @@ removeSystem($odlxDB, [1,3,5,7,9,11,13,15,17,19] ); changeSystem($odlxDB, [ 2 ], [ { 'name' => 'new name of 2'} ] ); +changeSystem($odlxDB, [ 0 ], [ { 'attrStartX' => 'kde,gnome'} ] ); +changeSystem($odlxDB, [ 1,2,3 ], [ { 'attrHwMonitor' => '1280x1024'} ] ); +changeSystem($odlxDB, [ 4 ], [ { 'attrHwMonitor' => '800x600'} ] ); + + changeSystem($odlxDB, 4, { 'id' => 114, 'name' => 'id should still be 4'} ); my $metaDB = $odlxDB->{'meta-db'}; @@ -119,19 +124,70 @@ foreach my $row (@rows) { $metaDB->schemaDropTable('test2'); -addGroup($odlxDB, { - 'name' => "Fell-PCs", - 'descr' => "Fell-Threemansion PCs from 2002", +my $clientG01ID = addClient($odlxDB, { + 'name' => "PC-G-01", + 'mac' => "00:14:85:80:00:35", + 'boot_type' => 'pxe', +}); + +my $clientG02ID = addClient($odlxDB, { + 'name' => "PC-G-02", + 'mac' => "00:14:85:80:00:36", + 'boot_type' => 'pxe', +}); + +my $clientG03ID = addClient($odlxDB, { + 'name' => "PC-G-03", + 'mac' => "00:14:85:80:00:37", + 'boot_type' => 'pxe', +}); + +my $clientG04ID = addClient($odlxDB, { + 'name' => "PC-G-04", + 'mac' => "00:14:85:80:00:38", + 'boot_type' => 'pxe', + 'unbootable' => 1, +}); + +my $clientF01ID = addClient($odlxDB, { + 'name' => "PC-F-01", + 'mac' => "00:14:85:80:00:31", + 'boot_type' => 'other', +}); + +my $clientF02ID = addClient($odlxDB, { + 'name' => "PC-F-02", + 'mac' => "00:14:85:80:00:32", + 'boot_type' => 'pxe', +}); + +my $clientF03ID = addClient($odlxDB, { + 'name' => "PC-F-03", + 'mac' => "00:14:85:80:00:33", + 'boot_type' => 'pxe', +}); + +addClientIDsToSystem($odlxDB, 6, [$clientG01ID, $clientG02ID, $clientG03ID, $clientG04ID, $clientF01ID, $clientF02ID, $clientF03ID]); + +my $group1ID = addGroup($odlxDB, { + 'name' => "Gell-PCs", + 'descr' => "Gell-Threemansion PCs from 2002", + 'attrHwMouse' => 'serial', }); +addClientIDsToGroup($odlxDB, $group1ID, [$clientG01ID, $clientF02ID, $clientG03ID]); -addGroup($odlxDB, { +my $group2ID = addGroup($odlxDB, { 'name' => "Teacher-PCs", 'descr' => "all PCs sitting on teacher's desks", + 'attrHwMonitor' => '1600x1200', }); +addClientIDsToGroup($odlxDB, $group2ID, [$clientG01ID, $clientF01ID]); +addSystemIDsToGroup($odlxDB, $group2ID, [2, 3]); -addGroup($odlxDB, { - 'name' => "PCs in 234", +my $group3ID = addGroup($odlxDB, { + 'name' => "PCs in room G", 'descr' => "all PCs of room 234", }); +addClientIDsToGroup($odlxDB, $group3ID, [$clientG01ID, $clientG02ID, $clientG03ID, $clientG04ID]); disconnectConfigDB($odlxDB); |