version 1.3, 2007/07/13 21:06:20
|
version 1.4, 2007/07/17 21:03:08
|
|
|
# To use the server instead, comment out the following line. | # To use the server instead, comment out the following line. |
export PEGASUS_CLIENT_HOME=$(PEGASUS_HOME) | export PEGASUS_CLIENT_HOME=$(PEGASUS_HOME) |
| |
|
# Note that wsm uses the Pegasus core mak facilities driven from the following |
|
# include. |
include $(PEGASUS_ROOT)/mak/config.mak | include $(PEGASUS_ROOT)/mak/config.mak |
| |
ifndef PEGASUS_ROOT | ifndef PEGASUS_ROOT |
|
|
# desired set it to PEGWSMADDR="-l host:port" on the make command line. | # desired set it to PEGWSMADDR="-l host:port" on the make command line. |
#PEGWSMADDR | #PEGWSMADDR |
| |
|
#WSM_USE_SSL |
|
|
| |
include $(PEGASUS_ROOT)/mak/recurse.mak | include $(PEGASUS_ROOT)/mak/recurse.mak |
| |
|
|
| |
AUTH= | AUTH= |
| |
# basic authentication |
|
#AUTH= -A basic -u fred -w none |
|
|
|
live-tests: register wsm cli | live-tests: register wsm cli |
@ echo "" | @ echo "" |
@ echo "+++++ PASSED ALL TESTS" | @ echo "+++++ PASSED ALL TESTS" |
@ echo "" | @ echo "" |
| |
wsm: create create2 get2 delete2 get enum put delete assoc |
wsm: identify create create2 get2 delete2 get enum put delete assoc |
|
|
|
# Note that this is a temporary test. |
|
identify: |
|
wsmidentify |
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) |
|
|
| |
cli: cli1 cli2 cli3 | cli: cli1 cli2 cli3 |
| |
|
# enumerate and enumeratename tests |
cli1: | cli1: |
| |
$(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ei President -count 6 | $(CLICMD) -n $(NAMESPACE) $(PEGWSMADDR) ei President -count 6 |
|
|
$(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 |
cli2: | cli2: |
$(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 $(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 |
| |
|
# association requests |
cli3: | cli3: |
$(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 |
|
|
testbasicauthwsm: | testbasicauthwsm: |
wsmserver -A basic & | wsmserver -A basic & |
make -f Makefile wsm AUTH="-A basic -u fred -w none" | make -f Makefile wsm AUTH="-A basic -u fred -w none" |
make -f Makefile killwsmserver |
make -f Makefile killwsm |
| |
|
## |
|
## Run the wsm tests with digest authentication. |
|
## |
testdigestauthwsm: | testdigestauthwsm: |
wsmserver -A digest & | wsmserver -A digest & |
make -f Makefile wsm AUTH="-A digest -u fred -w none" | make -f Makefile wsm AUTH="-A digest -u fred -w none" |
make -f Makefile killwsmserver |
make -f Makefile killwsm |
## | ## |
## kill the wsmserver - This is a unix only thing right now | ## kill the wsmserver - This is a unix only thing right now |
## because it uses the unix kill command | ## because it uses the unix kill command |
## | ## |
killwsmserver: |
killwsm: |
kill -9 wsmserver | kill -9 wsmserver |
| |
## | ## |