The "old" MDS test suite written for the TET framework is ported to the new
unit test framework. The test cases are almost untouched so there is still room
for enhancements.
The test cases are divided into 26 test suites as below.
To run all the tests, compile and install OpenSAF with tests included.
Then simply enter the command below in a shell.
To list test: "mdstest 0".
To run all tests: "mdstest".
To run specific test suite: "mdstest x", where x is the suite number.
To run specific test case: "mdstest x y", where y is the test case number.
List of test suites/test cases:
-------------------------------
Suite 1: MDS TIPC API install
1 Installing service 500 twice
2 Installing the Internal MIN service INTMIN with NODE scope
without MDS Queue ownership and failing to Retrieve
3 Installing the External MIN service EXTMIN with CHASSIS scope
4 Installing the service with MAX id:32767 with CHASSIS scope
5 Not able to Install the service with id > MAX:32767 with
CHASSIS scope
6 Not able to Install the service with id = 0
7 Not able to Install the service with Invalid PWE Handle
8 Not able to Install a Service with Svc id > External MIN 2000
which doesn't chose MDS Q Ownership
9 Installing the External MIN service EXTMIN in a seperate thread
and Uninstalling it here
10 Installation of the same Service id with different sub-part
versions on the same pwe handle, must fail
11 Installation of the same Service id with same sub-part versions
on the same pwe handle, must fail
12 Install a service with _mds_svc_pvt_ver = 0 i_mds_svc_pvt_ver =
255 and i_mds_svc_pvt_ver = A random value, which is >0 and <255
13 Install a service with i_fail_no_active_sends = 0 and
i_fail_no_active_sends = 1
14 Installation of a service with same service id and
i_fail_no_active_sends again on the same pwe handle, must fail
15 Installation of a service with same service id and different
i_fail_no_active_sends again on the same pwe handle, must fail
16 For MDS_INSTALL API, supply i_yr_svc_hdl = (2^32) and
i_yr_svc_hdl = (2^64 -1)
Suite 2: MDS TIPC API uninstall
1 Not able to Uninstall an ALREADY uninstalled service
2 Not able to Uninstall a Service which doesn't exist
3 UnInstalling wit invalid handles
4 Uninstalling a service in a seperate thread
Suite 3: Install sv up to MAX
1 tet_svc_install_upto_MAX
Suite 4: Subscribe VDEST
1 500 Subscription to:600,700 where Install scope = Subscription
scope
2 500 Subscription to:600,700 where Install scope >Subscription
scope (NODE)
3 Not able to: 500 Subscription to:600,700 where Install scope <
Subscription scope(PWE)
4 Not able to: 500 Subscription to:600,700 where Install scope <
Subscription scope(PWE)
5 Not able to Cancel the subscription which doesn't exist
6 A service subscribing for Itself
7 A Service which is NOT installed; trying to subscribe for 600,
700
8 Able to subscribe when numer of services to be subscribed is = 0
9 Not able to subscribe when supplied services array is NULL
10 Cross check whether i_rem_svc_pvt_ver returned in service event
callback, matches the service private sub-part version of the remote service
(subscribee)
11 When the Subscribee comes again with different sub-part
version, cross check these changes are properly returned in the service event
callback
12 In the NO_ACTIVE event notification, the remote service subpart
version is set to the last active instance.s remote-service sub-part version
Suite 5: Subscribe ADEST
1 In the NO_ACTIVE event notification, the remote service subpart
version is set to the last active instance.s remote-service sub-part version
2 Subscription to:600,700 where Install scope > Subscription
scope (NODE)
3 Not able to: 500 Subscription to:600,700 where install scope <
Subscription scope(PWE)
4 Not able to subscribe again:500 Subscribing to service 600
5 Not able to Cancel the subscription which doesn't exist
6 A service subscribing for Itself
7 A Service which is NOT installed; trying to subscribe for 600,
700
8 500 Subscription to:600,700 Cancel this Subscription in a
seperate thread
9 500 Subscription to:600,700 in two seperate Subscription calls
but Cancels both in a single cancellation call
10 500 Subscription to:600,700 Cancel this Subscription in a
seperate thread
11 Cross check whether i_rem_svc_pvt_ver returned in service event
callback, matches the service private sub-part version of the remote service
(subscribee)
Suite 6: SIMPLE SEND TEST CASES
1 Now send Low, Medium, High and Very High Priority messages to
Svc EXTMIN on Active Vdest in sequence
2 Not able to send a message to Svc EXTMIN with Invalid pwe handle
3 Not able to send a message to Svc EXTMIN with NULL pwe handle
4 Not able to send a message to Svc EXTMIN with Wrong DEST
5 Not able to send a message to service which is Not installed
6 Able to send a messages 1000 times to Svc 2000 on Active Vdest
7 Send a message to unsubscribed Svc INTMIN on Active
Vdest:Implicit/Explicit Combination
8 Not able to send a message to Svc EXTMIN with Improper Priority
9 Not able to send aNULL message to Svc EXTMIN on Active Vdest
10 Now send a message( > MDTM_NORMAL_MSG_FRAG_SIZE) to Svc EXTMIN
11 Not able to Send a message with Invalid Send type
12 While Await Active timer is On: send a message to Svc EXTMIN
Vdest=200
13 Send a message to Svc EXTMIN on QUIESCED Vdest=200
14 Copy Callback returning Failure: Send Fails
Suite 7: SEND ACK test cases
1 Send LOW,MEDIUM,HIGH and VERY HIGH Priority messages with ACK
to Svc on ACtive VDEST in sequence
2 Not able to send a message with ACK to 1700 with Invalid pwe
handle
3 Not able to send a message with ACK to 1700 with NULL pwe handle
4 Not able to send a message with ACK to 1700 with Wrong DEST
5 Not able to send a message with ACK to service which is Not
installed
6 Not able to send a message with ACK to OAC service on this DEST
7 Able to send a message with ACK 1000 times to service 1700
8 Send a message with ACK to unsubscribed service 1600
9 Not able to send_ack a message with Improper Priority to 1700
10 Not able to send a NULL message with ACK to 1700
11 Send a message( > MDTM_NORMAL_MSG_FRAG_SIZE) to 1700
12 While Await Active timer is On: send_ack a message to Svc
EXTMIN Vdest=200
13 Send_ack a message to Svc EXTMIN on QUIESCED Vdest=200
Suite 8: Query PWE test cases
1 Get the details of all the Services on this core
2 It shall not be able to query PWE with Invalid PWE Handle
3 ?????mds_query_vdest_for_anchor
Suite 9: Send Response test cases
1 Svc INTMIN on PWE=2 of ADEST sends a LOW Priority message to
Svc NCSMDS_SVC_ID_EXTERNAL_MIN and expects a Response
2 Svc INTMIN on PWE=2 of ADEST sends a MEDIUM Priority message to
Svc EXTMIN and expects a Response
3 Svc INTMIN on Active VEST=200 sends a HIGH Priority message to
Svc EXTERNAL_MIN on ADEST and expects a Response
4 Svc EXTMIN of ADEST sends a VERYHIGH Priority message to Svc
EXTMIN on Active Vdest=200 and expects a Response
5 While Await ActiveTimer ON:SvcEXTMIN of ADEST sends a message
to Svc EXTMIN on Active Vdest=200 and Times out
6 Svc EXTMIN of ADEST sends a VERYHIGH Priority message to Svc
EXTMIN on QUIESCED Vdest=200 and Times out
7 Implicit Subscription:Svc INTMIN on PWE=2 of ADEST sends a LOW
Priority message to Svc EXTMIN and expects a Response
8 Not able to send a message to a Service which doesn't exist
9 Not able to send_response a message to Svc 2000 with Improper
Priority
10 Not able to send_response a NULL message to Svc EXTMIN on
Active Vdest
11 Now send_response a message(> MDTM_NORMAL_MSG_FRAG_SIZE) to Svc
EXTMIN on Active Vdest
Suite 10: Send All test cases
1 Sender service installed with i_fail_no_active_sends = true and
there is no-active instance of the receiver service
2 Sender service installed with i_fail_no_active_sends = false
and there is no-active instance of the receiver service
Suite 11: Send Responce Ack test cases
1 Svc EXTMIN on ADEST sends a LOW Priority message to Svc EXTMIN
on VDEST=200 and expects a Response
2 Svc EXTMIN on ADEST sends a MEDIUM Priority message to Svc
EXTMIN on VDEST=200 and expects a Response
3 Svc EXTMIN on ADEST sends a HIGH Priority message to Svc EXTMIN
on VDEST=200 and expects a Response
4 Svc EXTMIN on ADEST sends a VERYHIGH Priority message to Svc
EXTMIN on VDEST=200 and expects a Response
5 While Await Active Timer ON:SvcEXTMIN of ADEST sends a message
to Svc EXTMIN on Active Vdest=200 and Times out
6 SvcEXTMIN of ADEST sends message to SvcEXTMIN on QUIESCED
Vdest=200 and Times out
7 Implicit Subscription: Svc EXTL_MIN on ADEST sends a
LOWPriority message to Svc EXTMIN on VDEST=200 and expects Response
8 send_response a message(> MDTM_NORMAL_MSG_FRAG_SIZE) to Svc
EXTMIN on Active Vdest
Suite 12: Send Broadcast To SVC test cases
1 Svc INTMIN on VDEST=200 Broadcasting a LOW Priority message to
Svc EXTMIN
2 Svc INTMIN on ADEST Broadcasting a MEDIUM Priority message to
Svc EXTMIN
3 Svc INTMIN on VDEST=200 Redundant Broadcasting a HIGH priority
message to Svc EXTMIN
4 Svc INTMIN on VDEST=200 Not able to Broadcast a message with
Invalid Priority
5 Svc INTMIN on VDEST=200 Not able to Broadcast a NULL message
6 Svc INTMIN on VDEST=200 Broadcasting a VERY HIGH Priority
message (>MDTM_NORMAL_MSG_FRAG_SIZE) to Svc EXTMIN
Suite 13: Direct Just Send test cases
1 Test Case 1: Now Direct send Low,Medium,High and Very High
Priority messages to Svc EXTMIN on Active Vdest=200
2 Not able to send a message to 2000 with Invalid pwe handle
3 Not able to send a message to 2000 with NULL pwe handle
4 Test Case 4: Not able to send a message to Svc EXTMIN on
Vdest=200 with Wrong DEST
5 Not able to send a message to service which is Not installed
6 Able to send a message 1000 times to Svc EXTMIN on Active
Vdest=200
7 Implicit Subscription: Direct send a message to unsubscribed
Svc INTMIN
8 Not able to send a message to Svc EXTMIN with Improper Priority
9 Not able to send a message to Svc EXTMIN with Direct Buff as
NULL
10 Not able to send a message with Invalid Sendtype(<0 or >11)
11 Not able to send a message with Invalid Message length
12 While Await Active Timer ON: Direct send a Low Priority message
to Svc EXTMIN on Vdest=200
13 Direct send a Medium Priority message to Svc EXTMIN on QUIESCED
Vdest=200
14 Not able to send a message of size >(MDS_DIRECT_BUF_MAXSIZE) to
2000
15 Able to send a message of size =(MDS_DIRECT_BUF_MAXSIZE) to 200
Suite 14: Direct Send All test cases
1 Direct send a message with i_msg_fmt_ver = 0 for all send types
2 Direct send a message with i_msg_fmt_ver = i_rem_svc_pvt_ver
for all send types
3 Direct send a message with i_msg_fmt_ver > i_rem_svc_pvt_ver
for all send types
4 Direct send a message with i_msg_fmt_ver < i_rem_svc_pvt_ver
for all send types
5 Direct send when Sender service installed with
i_fail_no_active_sends = false and there is no-active instance of the receiver
service
6 Direct send when Sender service installed with
i_fail_no_active_sends = true and there is no-active instance of the receiver
service
Suite 15: Direct Send Ack test cases
1 While Await Active Timer ON: Direct send_ack a message to Svc
EXTMIN on Vdest=200
2 Direct send a Medium Priority message to Svc EXTMIN on QUIESCED
Vdest=200
3 Direct send_ack Low,Medium,High and Very High Priority message
to Svc EXTMIN on Active Vdest=200 in sequence
4 Not able to send_ack a message to 2000 with Invalid pwe handle
5 Not able to send_ack a message to EXTMIN with NULL pwe handle
6 Not able to send_ack a message to Svc EXTMIN on Vdest=200 with
Wrong DEST
7 Not able to send_ack a message to service which is Not installed
8 Able to send_ack a message 1000 times to Svc EXTMIN on Active
Vdest=200
9 Implicit Subscription: Direct send_ack a message to
unsubscribed Svc INTMIN
10 Not able to send_ack a message to Svc EXTMIN with Improper
Priority
11 Not able to send_ack a message with Invalid Sendtype(<0 or >11)
12 Not able to send_ack a message to Svc EXTMIN with Direct Buff
as NULL
13 Not able to send_ack a message with Invalid Message length
Suite 16: Direct Send Response test cases
1 Svc INTMIN on PWE=2 of ADEST sends a LOW Priority message to
Svc EXTMIN and expects a Response
2 Svc INTMIN on PWE=2 of ADEST sends a MEDIUM Priority message to
Svc EXTMIN and expects a Response
3 Svc INTMIN on PWE=2 of ADEST sends a HIGH Priority message to
Svc EXTMIN and expects a Response
4 Svc INTMIN on PWE=2 of ADEST sends a VERYHIGH Priority message
to Svc EXTMIN and expects a Response
5 Implicit/Explicit Svc INTMIN on PWE=2 of ADEST sends a message
to Svc EXTMIN and expects a Response
Suite 17: Direct Send Response Ack test cases
1 Svc EXTMIN on ADEST sends a LOW priority message to Svc EXTMIN
on VDEST=200 and expects a Response
2 Svc EXTMIN on ADEST sends a MEDIUM priority message to Svc
EXTMIN on VDEST=200 and expects a Response
3 Svc EXTMIN on ADEST sends a HIGH priority message to Svc EXTMIN
on VDEST=200 and expects a Response
4 Svc EXTMIN on ADEST sends a VERYHIGH priority message to Svc
EXTMIN on VDEST=200 and expects a Response
5 Implicit/Explicit Svc EXTMIN on ADEST sends a message to Svc
EXTMIN on VDEST=200 and expects a Response
Suite 18: Direct Broadcast To SVC test cases
1 Svc INTMIN on VDEST=200 Broadcasting a Low Priority message to
Svc EXTMIN
2 Svc INTMIN on VDEST=200 Broadcasting a Medium Priority message
to Svc EXTMIN
3 Svc INTMIN on VDEST=200 Broadcasting a High Priority message to
Svc EXTMIN
4 Svc INTMIN on VDEST=200 Broadcasting a Very High Priority
message to Svc EXTMIN
5 Svc INTMIN on ADEST Broadcasting a message to Svc EXTMIN
6 Svc INTMIN on VDEST=200 Redundant Broadcasting a message to
Svc EXTMIN
7 Svc INTMIN on VDEST=200 Not able to Broadcast a message with
Invalid Priority
8 Svc INTMIN on VDEST=200 Not able to Broadcast a message with
NULL Direct Buff
Suite 19: ADEST test cases
1 Destroy PWE ADEST twice
2 Create PWE ADEST twice
3 Create default PWE ADEST
4 Create PWE upto MAX
Suite 20: VDEST test cases
1 Creating a VDEST in MXN model with MIN vdest_id
2 Not able to create a VDEST with vdest_id above the MAX RANGE
3 Not able to create a VDEST with vdest_id = 0
4 Create a VDEST with vdest_id below the MIN RANGE
Suite 21: Create N-Way VDEST test cases
1 Creating a VDEST in N-way model with MAX vdest_id
2 Not able to create a VDEST with vdest_id above the MAX RANGE
3 Not able to create a VDEST with vdest_id = 0
4 Create a VDEST with vdest_id below the MIN RANGE
Suite 22: Create OAC VDEST test cases
1 Creating a OAC service on VDEST in MXN model
2 Creating a a OAC service on VDEST in N-way model
Suite 23: Destroy VDEST twice test cases
1 Destroy ACTIVE MxN VDEST
2 Destroy QUIESCED MxN VDEST
Suite 24: Change standby to queisced test cases
1 Changing VDEST role to ACTIVE twice
2 Changing VDEST role from ACTIVE to QUIESCED
3 Changing VDEST role from QUIESCED to STANDBY
4 Not able to Change VDEST role from STANDBY to QUIESCED
Suite 25: Create Named VDEST test cases (Named VDEST currently not supported by
MDS (test cases outcomment)
Suite 26: PWE VDEST test cases
1 Creating a PWE with MAX PWE_id= 2000 on this VDEST
2 Not able to Create a PWE with PWE_id > MAX i.e > 2000 on this
VDEST
3 Not able to Create a PWE with Invalid PWE_id = 0 on this VDEST
4 Creating a PWE with PWE_id= 10 on this VDEST
5 Not able to Destroy an Already Destroyed PWE on this VDEST
6 Creating a PWE with PWE_id= 20 and OAC service on this VDEST
7 create_PWE_upto_MAX_VDEST
8 create_default_PWE_VDEST
---
** [tickets:#558] mds: Porting of MDS test cases to unit test framework**
**Status:** fixed
**Created:** Thu Aug 29, 2013 11:50 AM UTC by Ingvar Bergström
**Last Updated:** Thu Aug 29, 2013 11:50 AM UTC
**Owner:** Ingvar Bergström
The MDS unit tests are not working. They shall be refreshed and ported to the
new unit test framework.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets