Changeset 14 for LATMOS-Accounts
- Timestamp:
- 03/03/09 01:30:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts/t/11_bases_unix.t
r13 r14 1 1 use strict; 2 2 use warnings; 3 use Test::More tests => 14;3 use Test::More tests => 20; 4 4 use File::Temp; 5 5 … … 32 32 ok(my $group = $unixb->get_object('group', 'root'), "Can get root group"); 33 33 34 is($user->get_c_field('homeDirectory'), '/root', 'Can get home directory'); 34 is($user->get_c_field('homeDirectory'), '/root', 'Can get homeDirectory directory'); 35 is($user->get_field('home'), '/root', 'Can get home directory'); 36 37 is($user->get_field('shell'), '/bin/bash', 'Can get login shell'); 38 ok($user->set_fields(shell => '/bin/tcsh'), "Can set login shell"); 39 is($user->get_field('shell'), '/bin/tcsh', 'Can get modified login shell'); 35 40 36 41 ok($unixb->commit, "Can save unix base"); 37 42 43 44 ok(my $unixbmod = LATMOS::Accounts::Bases->new( 45 'unix', 46 passwd => "$dir/passwd", 47 shadow => "$dir/shadow", 48 group => "$dir/group", 49 gshadow => "$dir/gshadow", 50 ), "Can get unix base"); 51 is($user->get_field('shell'), '/bin/tcsh', 'Can get modified login shell'); 52 53 38 54 system('rm', '-fr', $dir);
Note: See TracChangeset
for help on using the changeset viewer.