(file) Return to clitests CVS log (file) (dir) Up to [Pegasus] / pegasus / test / TestProviders / CIMOMSample

 1 s.soni 1.1 #!/bin/bash
 2            
 3            # 
 4            # The following set of commands tests the new Classes configured through the
 5            # sample provider interface.
 6            # 
 7            # WITH AUTHENTICATION ENABLED
 8            # The following commands test the various authentication options through CLI 
 9            # test client. The are 2 users added through "cimuser" and then both these 
10            # users are authenticated by giving them the "read" permission to our test 
11            # repository root/SampleProvider
12            #
13            # Important: Please change the <user> and <password> fields present in the 
14            # cim commands execution as per the settings on your system. The only thing to
15            # care about is that the user provided on the command line with -u option 
16            # should be a valid user on the system where this test is running.
17            #
18            # WITHOUT AUTHENTICATION ENABLED
19            # Simple Execution of CLI without any user/password authentication required
20            # for any specific namespace.
21            #
22 s.soni 1.1 
23            AUTHENTICATION=$1;
24            if [ $AUTHENTICATION ];
25            then {
26            	rm -f ei-auth.log
27            	#enumerateinstances
28            	echo "Executing enumerateinstances on CIMOMSample Class"
29            	CLI ei -n root/SampleProvider CIMOMSample 2>&1 | tee ei-auth.log
30            	CLI ei -n root/SampleProvider CIMOMSample -u guest -p nothing 2>&1 | tee -a ei-auth.log
31            	CLI ei -n root/SampleProvider CIMOMSample -u guest -p guest 2>&1 | tee -a ei-auth.log
32            	CLI ei -n root/SampleProvider CIMOMSample -u subodh -p soni 2>&1 | tee -a ei-auth.log
33            
34            	rm -f ec-auth.log
35            	#enumerateclasses
36            	echo "Executing enumerateclasses on CIMOMSample Class"
37            	CLI ec -n root/SampleProvider CIMOMSample 2>&1 | tee ec-auth.log
38            	CLI ec -n root/SampleProvider CIMOMSample -u guest -p nothing 2>&1 | tee -a ec-auth.log
39            	CLI ec -n root/SampleProvider CIMOMSample -u guest -p guest 2>&1 | tee -a ec-auth.log
40            	CLI ec -n root/SampleProvider CIMOMSample -u subodh -p soni 2>&1 | tee -a ec-auth.log
41            	
42            	rm -f ni-auth.log
43 s.soni 1.1 	#enumerateinstancenames
44            	echo "Executing enumerateinstancenames on CIMOMSample Class"
45            	CLI ni -n root/SampleProvider CIMOMSample 2>&1 | tee ni-auth.log
46            	CLI ni -n root/SampleProvider CIMOMSample -u guest -p nothing 2>&1 | tee -a ni-auth.log
47            	CLI ni -n root/SampleProvider CIMOMSample -u guest -p guest 2>&1 | tee -a ni-auth.log
48            	CLI ni -n root/SampleProvider CIMOMSample -u subodh -p soni 2>&1 | tee -a ni-auth.log
49            	
50            	rm -f nc-auth.log
51            	#enumerateclassnames
52            	echo "Executing ....... enumerateclassenames on CIMOMSample Class"
53            	echo ".."
54            	CLI nc -n root/SampleProvider CIMOMSample 2>&1 | tee nc-auth.log
55            	echo ".."
56            	CLI nc -n root/SampleProvider CIMOMSample -u guest -p nothing 2>&1 | tee -a nc-auth.log
57            	echo ".."
58            	CLI nc -n root/SampleProvider CIMOMSample -u guest -p guest 2>&1 | tee -a nc-auth.log
59            	echo ".."
60            	CLI nc -n root/SampleProvider CIMOMSample -u subodh -p sonc 2>&1 | tee -a nc-auth.log
61            }
62            else
63            {
64 s.soni 1.1 	rm -f ei.log
65            	#enumerateinstances
66            	echo "Executing enumerateinstances on CIMOMSample Class"
67            	CLI ei -n root/SampleProvider CIMOMSample 2>&1 | tee ei.log
68            
69            	rm -f ec.log
70            	#enumerateclasses
71            	echo "Executing enumerateclasses on CIMOMSample Class"
72            	CLI ec -n root/SampleProvider CIMOMSample 2>&1 | tee ec.log
73            
74            	rm -f ni.log
75            	#enumerateinstancenames
76            	echo "Executing enumerateinstancenames on CIMOMSample Class"
77            	CLI ni -n root/SampleProvider CIMOMSample 2>&1 | tee ni.log
78            
79            	rm -f nc.log
80            	#enumerateclassnames
81            	echo "Executing ....... enumerateclassenames on CIMOMSample Class"
82            	echo ".."
83            	CLI nc -n root/SampleProvider CIMOMSample 2>&1 | tee nc.log
84            	echo ".."
85 s.soni 1.1 }
86            fi

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2