version 1.4, 2007/07/17 21:03:08
|
version 1.5, 2007/07/23 02:20:55
|
|
|
@ echo "+++++ PASSED ALL TESTS" | @ echo "+++++ PASSED ALL TESTS" |
@ echo "" | @ echo "" |
| |
wsm: identify create create2 get2 delete2 get enum put delete assoc |
wsm: wsm1 wsm2 wsm3 get put delete |
|
|
|
## the following set of tests do passive tests against instances |
|
## defined through the register function |
|
wsm1: identify get1 enum1 assoc1 |
| |
# Note that this is a temporary test. | # Note that this is a temporary test. |
identify: | identify: |
wsmidentify | wsmidentify |
|
|
|
# tests against static entities in the environment (created by register) |
|
get1: |
|
wsmget -n $(NAMESPACE) $(WSMADDR) President num=1 $(AUTH) |
|
## Test to be sure we are getting from non-default namespace. |
|
wsmget -n $(CROSSNAMESPACE) $(WSMADDR) President num=1000 $(AUTH) |
|
|
|
enum1: |
|
wsmenum -n $(NAMESPACE) $(WSMADDR) President $(AUTH) |
|
|
|
assoc1: |
|
wsmassoc -n $(NAMESPACE) $(WSMADDR) President num=1 $(AUTH) |
|
wsmassoc -n $(NAMESPACE) $(WSMADDR) -R President num=1 $(AUTH) |
|
|
|
## The following commands test the ability to create and delete objects |
|
|
|
wsm2: create get put delete |
create: | create: |
wsmcreate -n $(NAMESPACE) $(WSMADDR) \ | wsmcreate -n $(NAMESPACE) $(WSMADDR) \ |
President num=100 first=Betty last=Boop $(AUTH) | President num=100 first=Betty last=Boop $(AUTH) |
| |
|
# note that this test depends on successful create target above |
get: | get: |
wsmget -n $(NAMESPACE) $(WSMADDR) President num=100 $(AUTH) | wsmget -n $(NAMESPACE) $(WSMADDR) President num=100 $(AUTH) |
wsmget -n $(NAMESPACE) $(WSMADDR) \ | wsmget -n $(NAMESPACE) $(WSMADDR) \ |
|
|
delete: | delete: |
wsmdelete -n $(NAMESPACE) $(WSMADDR) President num=100 $(AUTH) | wsmdelete -n $(NAMESPACE) $(WSMADDR) President num=100 $(AUTH) |
| |
enum: |
## register our special classes with the cimserver |
wsmenum -n $(NAMESPACE) $(WSMADDR) President $(AUTH) |
|
|
|
assoc: |
|
wsmassoc -n $(NAMESPACE) $(WSMADDR) President num=1 $(AUTH) |
|
wsmassoc -n $(NAMESPACE) $(WSMADDR) -R President num=1 $(AUTH) |
|
|
|
register: | register: |
$(MAKE) -C mof install NAMESPACE=$(NAMESPACE) | $(MAKE) -C mof install NAMESPACE=$(NAMESPACE) |
| |
create2: |
wsm3: create3 get3 delete3 |
|
## Test against a second class with multiple keys. |
|
create3: |
wsmcreate -n $(NAMESPACE) $(WSMADDR) WSMClass \ | wsmcreate -n $(NAMESPACE) $(WSMADDR) WSMClass \ |
key1=1 \ | key1=1 \ |
key2=Hello \ | key2=Hello \ |
|
|
a2=1 a2=2 a2=3 a2=4 \ | a2=1 a2=2 a2=3 a2=4 \ |
a3=true a3=false $(AUTH) | a3=true a3=false $(AUTH) |
| |
get2: |
get3: |
wsmget -n $(NAMESPACE) $(WSMADDR) WSMClass key1=1 key2=Hello $(AUTH) | wsmget -n $(NAMESPACE) $(WSMADDR) WSMClass key1=1 key2=Hello $(AUTH) |
| |
delete2: |
delete3: |
wsmdelete -n $(NAMESPACE) $(WSMADDR) WSMClass key1=1 key2=Hello $(AUTH) | wsmdelete -n $(NAMESPACE) $(WSMADDR) WSMClass key1=1 key2=Hello $(AUTH) |
| |
|
# These tests should generate error exit since they are gets against instances that |
|
# should not exist in the defined namespaces. |
|
wsmgeterr: |
|
-wsmget -n -n $(NAMESPACE) $(WSMADDR) President num = 1000 $(AUTH) |
|
-wsmget -n -n $(CROSSNAMESPACE) $(WSMADDR) President num = 1 $(AUTH) |
|
|
|
################################################################################ |
|
## |
|
## Tests using cimcli |
|
## |
|
################################################################################ |
|
|
# if using Pegasus 2.5 it was CLI. Pegasus 2.6 release and 2.7 dev changed this to | # if using Pegasus 2.5 it was CLI. Pegasus 2.6 release and 2.7 dev changed this to |
# cimcli |
# cimcli. If you use Pegasus 2.5, change back to CLI. |
CLICMD=cimcli | CLICMD=cimcli |
| |
cli: cli1 cli2 cli3 |
cli: cli1 cli2 cli3 cli4 cli5 cli6 cli7 |
| |
# enumerate and enumeratename tests | # enumerate and enumeratename tests |
cli1: | cli1: |
|
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ni President -count 6 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ni President -count 6 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ei PresidentLink -count 6 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ei PresidentLink -count 6 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ni PresidentLink -count 6 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ni PresidentLink -count 6 |
|
# the following tests do not know how many objects they return |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ei CIM_ManagedElement | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ei CIM_ManagedElement |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ni CIM_ManagedElement | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ni CIM_ManagedElement |
| |
# association name requests |
# get instance tests. These tests will error if the object is not found |
cli2: | cli2: |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) gi President.num=1 |
|
## test that we pass specific namespace since this object is only in crossnamespace |
|
$(CLICMD) -n $(CROSSNAMESPACE) $(PEGWSMADDR) gi President.num=1000 |
|
|
|
|
|
# Test reference name requests |
|
cli3: |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) rn President.num=1 -count 3 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) rn President.num=1 -rc Presidentlink -count 2 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) rn President.num=1 -rc Presidentlink -r pred -count 2 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) rn President.num=1 -rc Presidentlink -r succ -count 2 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) rn President.num=1 -rc successionlink -count 1 |
|
$(CLICMD) -n $(CROSSNAMESPACE) $(PEGWSMADDR) rn VicePresident.num=1 -count 1 |
|
|
|
# reference requests |
|
cli4: |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) r President.num=1 -count 3 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) r President.num=1 -rc Presidentlink -count 2 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) r President.num=1 -rc Presidentlink -r pred -count 2 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) r President.num=1 -rc Presidentlink -r succ -count 2 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) r President.num=1 -rc successionlink -count 1 |
|
|
|
# association name requests |
|
|
|
cli5: |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -count 3 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -count 3 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -rc President -count 2 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -rc President -count 2 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -ac successionlink -count 1 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -ac successionlink -count 1 |
|
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -ac Presidentlink -rc President -count 2 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -ac Presidentlink -rc President -count 2 |
$(CLICMD) -n $(CROSSNAMESPACE) $(PEGWSMADDR) an VicePresident.num=2000 -count 1 | $(CLICMD) -n $(CROSSNAMESPACE) $(PEGWSMADDR) an VicePresident.num=2000 -count 1 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -ac successionlink -count 1 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -ac successionlink -count 1 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -ac successionlink -count 0 -r succ |
# association requests | # association requests |
cli3: |
cli6: |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -count 3 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -count 3 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -rc President -count 2 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -rc President -count 2 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -ac successionlink -count 1 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -ac successionlink -count 1 |
|
|
$(CLICMD) -n $(CROSSNAMESPACE) $(PEGWSMADDR) a VicePresident.num=2000 -count 1 | $(CLICMD) -n $(CROSSNAMESPACE) $(PEGWSMADDR) a VicePresident.num=2000 -count 1 |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -ac successionlink -count 1 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -ac successionlink -count 1 |
| |
|
# test to be sure the cli reference and association class operations are processed by the |
|
# cimserver, not by wsm. |
|
cli7: |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) r President.num=1 -count 3 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) rn President.num=1 -count 3 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) a President.num=1 -count 3 |
|
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) an President.num=1 -count 3 |
|
|
## The following tests represent errors in Pegasus | ## The following tests represent errors in Pegasus |
clierrorPegasus: | clierrorPegasus: |
# These are caused becasue VicePresident is NOT in the $(NAMESPACE) namespace | # These are caused becasue VicePresident is NOT in the $(NAMESPACE) namespace |