[tickets] [opensaf:tickets] #2463 ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled
- **status**: review --> fixed - **assigned_to**: Nguyen TK Luu --> nobody - **Blocker**: False --> True - **Comment**: commit 169e313feafe10d0a866a8abe231edf5d503760a Author: Nguyen Luu Date: Wed May 24 10:05:01 2017 +1000 commit ec979abf57f5d229ab5576b72e89d6e8d006d224 Author: Nguyen Luu Date: Wed May 24 10:05:01 2017 +1000 --- ** [tickets:#2463] ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled** **Status:** fixed **Milestone:** 5.17.06 **Created:** Fri May 19, 2017 02:33 AM UTC by Nguyen TK Luu **Last Updated:** Fri May 19, 2017 11:12 AM UTC **Owner:** nobody Suite 35 of the NTF API test requires that long-dns support is enabled in the system. Currently, when the user just runs ntftest without specifying any test suite, and without enabling long-dns support, suite 35 is also run and fails as a result (see below log). This is not expected. The test should instead check for long-dns support to whether run or not run suite 35. root@SC-1:~# immcfg -f /tmp/ntfsv_test_classes.xml root@SC-1:~# ntftest /usr/local/bin/rdegetrole This is a controller node Suite 1: Life cycle, initialize, API 1 1 PASSED saNtfInitialize SA_AIS_OK; 2 PASSED saNtfInitialize with NULL pointer to handle; 3 PASSED saNtfInitialize with NULL pointer to callbacks; 4 PASSED saNtfInitialize with NULL callbacks AND version; 5 PASSED saNtfInitialize with uninitialized handle; 6 PASSED saNtfInitialize with uninitialized version; 7 PASSED saNtfInitialize with too high release level; 8 PASSED saNtfInitialize with minor version set too high; 9 PASSED saNtfInitialize with major version set too high; 10 PASSED saNtfInitialize with minor version set to lower; 11 PASSED saNtfInitialize with major version set to lower; 12 PASSED saNtfInitialize with version A.0.0; Suite 2: Life cycle, finalize, API 2 1 PASSED saNtfFinalize SA_AIS_OK; 2 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - invalid handle; 3 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - handle already returned; Return value from thread:1 4 PASSED Finalize and Unsubscribe in parallel SA_AIS_OK; Return value from thread:1 5 PASSED Finalize and saNtfStateChangeNotificationAllocate in parallel SA_AIS_OK; Suite 3: Life cycle, selectObject, API 3 1 PASSED saNtfSelectionObjectGet SA_AIS_OK; 2 PASSED saNtfSelectionObjectGet NULL handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfSelectionObjectGet invalid handle SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfSelectionObjectGet NULL selectionObject SA_AIS_ERR_INVALID_PARAM; Suite 4: Life cycle, dispatch, API 4 1 PASSED saNtfDispatch - SA_AIS_OK SA_DISPATCH_ALL; 2 PASSED saNtfDispatch - invalid handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfDispatch - zero flag SA_AIS_ERR_INVALID_PARAM; Suite 6: Producer API 2 allocate 1 PASSED saNtfMiscellaneousNotificationAllocate, Not supported; 2 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 4 PASSED saNtfAlarmNotificationAllocate SA_AIS_OK; 5 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 6 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 7 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_OK; 8 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 9 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 10 PASSED saNtfStateChangeNotificationAllocate SA_AIS_OK; 11 PASSED saNtfStateChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 12 PASSED saNtfStateChangeNotificationAllocate NULL notification SA_AIS_ERR_INVALID_PARAM; 13 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_OK; 14 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 15 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 16 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_OK; 17 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 18 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_INVALID_PARAM; Suite 7: Consumer operations - filter allocate 1 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_OK; 2 PASSED saNtfStateChangeNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfStateChangeNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 5 PASSED saNtfSecurityAlarmNotificationFilterAllocate - SA_AIS_OK; 6 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 7 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 8 PASSED saNtfSecurityAlarmNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 9 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - SA_AIS_OK; 10 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 11 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 12 PASSED saN
[tickets] [opensaf:tickets] #2463 ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled
Hi Minh, Speaking of ntf/apitest/README, it also mentions that suite 32 and 34 require some test classed be loaded in advance. And currently, ntftest does check for the existence of the file 'ntfsv_test_classes.xml' before running those suites; otherwise the following message is printed out and those suites will not be run. ~~~ if (rc != 0) { printf( "ntfsv_test_classes.xml file not installed (see README)"); return; } ~~~ That means ntftest already had some pre-conditions checks before running test. That's why I think we can have similar check for long-dn support for suite 35. And with the class file check was already there, the missing of long-dn check shall be considered be a defect, in my opinion. Besides, other services' apitests also check (CLM) or make sure (LOG) long-dn support is enabled before running or skipping specific test cases. It's my point of view on this issue. As the NTF maintainer, you can have final decision whether this is a defect or enhancement. Thanks, /Nguyen --- ** [tickets:#2463] ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled** **Status:** review **Milestone:** 5.17.06 **Created:** Fri May 19, 2017 02:33 AM UTC by Nguyen TK Luu **Last Updated:** Fri May 19, 2017 10:27 AM UTC **Owner:** Nguyen TK Luu Suite 35 of the NTF API test requires that long-dns support is enabled in the system. Currently, when the user just runs ntftest without specifying any test suite, and without enabling long-dns support, suite 35 is also run and fails as a result (see below log). This is not expected. The test should instead check for long-dns support to whether run or not run suite 35. root@SC-1:~# immcfg -f /tmp/ntfsv_test_classes.xml root@SC-1:~# ntftest /usr/local/bin/rdegetrole This is a controller node Suite 1: Life cycle, initialize, API 1 1 PASSED saNtfInitialize SA_AIS_OK; 2 PASSED saNtfInitialize with NULL pointer to handle; 3 PASSED saNtfInitialize with NULL pointer to callbacks; 4 PASSED saNtfInitialize with NULL callbacks AND version; 5 PASSED saNtfInitialize with uninitialized handle; 6 PASSED saNtfInitialize with uninitialized version; 7 PASSED saNtfInitialize with too high release level; 8 PASSED saNtfInitialize with minor version set too high; 9 PASSED saNtfInitialize with major version set too high; 10 PASSED saNtfInitialize with minor version set to lower; 11 PASSED saNtfInitialize with major version set to lower; 12 PASSED saNtfInitialize with version A.0.0; Suite 2: Life cycle, finalize, API 2 1 PASSED saNtfFinalize SA_AIS_OK; 2 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - invalid handle; 3 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - handle already returned; Return value from thread:1 4 PASSED Finalize and Unsubscribe in parallel SA_AIS_OK; Return value from thread:1 5 PASSED Finalize and saNtfStateChangeNotificationAllocate in parallel SA_AIS_OK; Suite 3: Life cycle, selectObject, API 3 1 PASSED saNtfSelectionObjectGet SA_AIS_OK; 2 PASSED saNtfSelectionObjectGet NULL handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfSelectionObjectGet invalid handle SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfSelectionObjectGet NULL selectionObject SA_AIS_ERR_INVALID_PARAM; Suite 4: Life cycle, dispatch, API 4 1 PASSED saNtfDispatch - SA_AIS_OK SA_DISPATCH_ALL; 2 PASSED saNtfDispatch - invalid handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfDispatch - zero flag SA_AIS_ERR_INVALID_PARAM; Suite 6: Producer API 2 allocate 1 PASSED saNtfMiscellaneousNotificationAllocate, Not supported; 2 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 4 PASSED saNtfAlarmNotificationAllocate SA_AIS_OK; 5 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 6 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 7 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_OK; 8 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 9 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 10 PASSED saNtfStateChangeNotificationAllocate SA_AIS_OK; 11 PASSED saNtfStateChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 12 PASSED saNtfStateChangeNotificationAllocate NULL notification SA_AIS_ERR_INVALID_PARAM; 13 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_OK; 14 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 15 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 16 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_OK; 17 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 18 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_INVALID_PARAM; Suite 7: Consumer operations - filter allocate 1 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_OK; 2 PASSED saNtfStateChangeNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfStateChangeNotificationFilterAllocate - ha
[tickets] [opensaf:tickets] #2463 ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled
why is #2463 a defect? The src/ntf/apitest/README has documented that suite 35 needs to have IMM LongDN enabled. When you run ntftest (no arg), or ntftest 35, you see it failed. What's the next step? You would look into to suite 35 to see why it fails, or you just want ntftest passes unconditionally? Both running ntftest (or ntftest 35) fail as it should, because user has not enabled IMM LongDN support. It is a defect if ntftest is doing something wrong as it should not. If you don't want to see any suite failed because of user's misconfiguration, you can skip it, then it is an enhancement. And when you run a test with misconfiguration, then the test should fail. --- ** [tickets:#2463] ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled** **Status:** review **Milestone:** 5.17.06 **Created:** Fri May 19, 2017 02:33 AM UTC by Nguyen TK Luu **Last Updated:** Fri May 19, 2017 08:42 AM UTC **Owner:** Nguyen TK Luu Suite 35 of the NTF API test requires that long-dns support is enabled in the system. Currently, when the user just runs ntftest without specifying any test suite, and without enabling long-dns support, suite 35 is also run and fails as a result (see below log). This is not expected. The test should instead check for long-dns support to whether run or not run suite 35. root@SC-1:~# immcfg -f /tmp/ntfsv_test_classes.xml root@SC-1:~# ntftest /usr/local/bin/rdegetrole This is a controller node Suite 1: Life cycle, initialize, API 1 1 PASSED saNtfInitialize SA_AIS_OK; 2 PASSED saNtfInitialize with NULL pointer to handle; 3 PASSED saNtfInitialize with NULL pointer to callbacks; 4 PASSED saNtfInitialize with NULL callbacks AND version; 5 PASSED saNtfInitialize with uninitialized handle; 6 PASSED saNtfInitialize with uninitialized version; 7 PASSED saNtfInitialize with too high release level; 8 PASSED saNtfInitialize with minor version set too high; 9 PASSED saNtfInitialize with major version set too high; 10 PASSED saNtfInitialize with minor version set to lower; 11 PASSED saNtfInitialize with major version set to lower; 12 PASSED saNtfInitialize with version A.0.0; Suite 2: Life cycle, finalize, API 2 1 PASSED saNtfFinalize SA_AIS_OK; 2 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - invalid handle; 3 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - handle already returned; Return value from thread:1 4 PASSED Finalize and Unsubscribe in parallel SA_AIS_OK; Return value from thread:1 5 PASSED Finalize and saNtfStateChangeNotificationAllocate in parallel SA_AIS_OK; Suite 3: Life cycle, selectObject, API 3 1 PASSED saNtfSelectionObjectGet SA_AIS_OK; 2 PASSED saNtfSelectionObjectGet NULL handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfSelectionObjectGet invalid handle SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfSelectionObjectGet NULL selectionObject SA_AIS_ERR_INVALID_PARAM; Suite 4: Life cycle, dispatch, API 4 1 PASSED saNtfDispatch - SA_AIS_OK SA_DISPATCH_ALL; 2 PASSED saNtfDispatch - invalid handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfDispatch - zero flag SA_AIS_ERR_INVALID_PARAM; Suite 6: Producer API 2 allocate 1 PASSED saNtfMiscellaneousNotificationAllocate, Not supported; 2 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 4 PASSED saNtfAlarmNotificationAllocate SA_AIS_OK; 5 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 6 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 7 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_OK; 8 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 9 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 10 PASSED saNtfStateChangeNotificationAllocate SA_AIS_OK; 11 PASSED saNtfStateChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 12 PASSED saNtfStateChangeNotificationAllocate NULL notification SA_AIS_ERR_INVALID_PARAM; 13 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_OK; 14 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 15 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 16 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_OK; 17 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 18 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_INVALID_PARAM; Suite 7: Consumer operations - filter allocate 1 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_OK; 2 PASSED saNtfStateChangeNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfStateChangeNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 5 PASSED saNtfSecurityAlarmNotificationFilterAllocate - SA_AIS_OK; 6 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 7 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 8 PASSED saNtfSecurity
[tickets] [opensaf:tickets] #2463 ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled
- **status**: assigned --> review --- ** [tickets:#2463] ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled** **Status:** review **Milestone:** 5.17.06 **Created:** Fri May 19, 2017 02:33 AM UTC by Nguyen TK Luu **Last Updated:** Fri May 19, 2017 02:33 AM UTC **Owner:** Nguyen TK Luu Suite 35 of the NTF API test requires that long-dns support is enabled in the system. Currently, when the user just runs ntftest without specifying any test suite, and without enabling long-dns support, suite 35 is also run and fails as a result (see below log). This is not expected. The test should instead check for long-dns support to whether run or not run suite 35. root@SC-1:~# immcfg -f /tmp/ntfsv_test_classes.xml root@SC-1:~# ntftest /usr/local/bin/rdegetrole This is a controller node Suite 1: Life cycle, initialize, API 1 1 PASSED saNtfInitialize SA_AIS_OK; 2 PASSED saNtfInitialize with NULL pointer to handle; 3 PASSED saNtfInitialize with NULL pointer to callbacks; 4 PASSED saNtfInitialize with NULL callbacks AND version; 5 PASSED saNtfInitialize with uninitialized handle; 6 PASSED saNtfInitialize with uninitialized version; 7 PASSED saNtfInitialize with too high release level; 8 PASSED saNtfInitialize with minor version set too high; 9 PASSED saNtfInitialize with major version set too high; 10 PASSED saNtfInitialize with minor version set to lower; 11 PASSED saNtfInitialize with major version set to lower; 12 PASSED saNtfInitialize with version A.0.0; Suite 2: Life cycle, finalize, API 2 1 PASSED saNtfFinalize SA_AIS_OK; 2 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - invalid handle; 3 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - handle already returned; Return value from thread:1 4 PASSED Finalize and Unsubscribe in parallel SA_AIS_OK; Return value from thread:1 5 PASSED Finalize and saNtfStateChangeNotificationAllocate in parallel SA_AIS_OK; Suite 3: Life cycle, selectObject, API 3 1 PASSED saNtfSelectionObjectGet SA_AIS_OK; 2 PASSED saNtfSelectionObjectGet NULL handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfSelectionObjectGet invalid handle SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfSelectionObjectGet NULL selectionObject SA_AIS_ERR_INVALID_PARAM; Suite 4: Life cycle, dispatch, API 4 1 PASSED saNtfDispatch - SA_AIS_OK SA_DISPATCH_ALL; 2 PASSED saNtfDispatch - invalid handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfDispatch - zero flag SA_AIS_ERR_INVALID_PARAM; Suite 6: Producer API 2 allocate 1 PASSED saNtfMiscellaneousNotificationAllocate, Not supported; 2 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 4 PASSED saNtfAlarmNotificationAllocate SA_AIS_OK; 5 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 6 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 7 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_OK; 8 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 9 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 10 PASSED saNtfStateChangeNotificationAllocate SA_AIS_OK; 11 PASSED saNtfStateChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 12 PASSED saNtfStateChangeNotificationAllocate NULL notification SA_AIS_ERR_INVALID_PARAM; 13 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_OK; 14 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 15 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 16 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_OK; 17 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 18 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_INVALID_PARAM; Suite 7: Consumer operations - filter allocate 1 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_OK; 2 PASSED saNtfStateChangeNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfStateChangeNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 5 PASSED saNtfSecurityAlarmNotificationFilterAllocate - SA_AIS_OK; 6 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 7 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 8 PASSED saNtfSecurityAlarmNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 9 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - SA_AIS_OK; 10 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 11 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 12 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 13 PASSED saNtfAttributeChangeNotificationFilterAllocate - SA_AIS_OK; 14 PASSED saNtfAttributeChangeNotificationFilterAllocate - handle NULL SA_AIS_ERR_BAD_HANDLE; 15 PASSED saNtfAttributeChangeNotificationFilterAllocate
[tickets] [opensaf:tickets] #2463 ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled
--- ** [tickets:#2463] ntf: ntftest should not run suite 35 if longDnsAllowed is not enabled** **Status:** assigned **Milestone:** 5.17.06 **Created:** Fri May 19, 2017 02:33 AM UTC by Nguyen TK Luu **Last Updated:** Fri May 19, 2017 02:33 AM UTC **Owner:** Nguyen TK Luu Suite 35 of the NTF API test requires that long-dns support is enabled in the system. Currently, when the user just runs ntftest without specifying any test suite, and without enabling long-dns support, suite 35 is also run and fails as a result (see below log). This is not expected. The test should instead check for long-dns support to whether run or not run suite 35. root@SC-1:~# immcfg -f /tmp/ntfsv_test_classes.xml root@SC-1:~# ntftest /usr/local/bin/rdegetrole This is a controller node Suite 1: Life cycle, initialize, API 1 1 PASSED saNtfInitialize SA_AIS_OK; 2 PASSED saNtfInitialize with NULL pointer to handle; 3 PASSED saNtfInitialize with NULL pointer to callbacks; 4 PASSED saNtfInitialize with NULL callbacks AND version; 5 PASSED saNtfInitialize with uninitialized handle; 6 PASSED saNtfInitialize with uninitialized version; 7 PASSED saNtfInitialize with too high release level; 8 PASSED saNtfInitialize with minor version set too high; 9 PASSED saNtfInitialize with major version set too high; 10 PASSED saNtfInitialize with minor version set to lower; 11 PASSED saNtfInitialize with major version set to lower; 12 PASSED saNtfInitialize with version A.0.0; Suite 2: Life cycle, finalize, API 2 1 PASSED saNtfFinalize SA_AIS_OK; 2 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - invalid handle; 3 PASSED saNtfFinalize SA_AIS_ERR_BAD_HANDLE - handle already returned; Return value from thread:1 4 PASSED Finalize and Unsubscribe in parallel SA_AIS_OK; Return value from thread:1 5 PASSED Finalize and saNtfStateChangeNotificationAllocate in parallel SA_AIS_OK; Suite 3: Life cycle, selectObject, API 3 1 PASSED saNtfSelectionObjectGet SA_AIS_OK; 2 PASSED saNtfSelectionObjectGet NULL handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfSelectionObjectGet invalid handle SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfSelectionObjectGet NULL selectionObject SA_AIS_ERR_INVALID_PARAM; Suite 4: Life cycle, dispatch, API 4 1 PASSED saNtfDispatch - SA_AIS_OK SA_DISPATCH_ALL; 2 PASSED saNtfDispatch - invalid handle SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfDispatch - zero flag SA_AIS_ERR_INVALID_PARAM; Suite 6: Producer API 2 allocate 1 PASSED saNtfMiscellaneousNotificationAllocate, Not supported; 2 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfMiscellaneousNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 4 PASSED saNtfAlarmNotificationAllocate SA_AIS_OK; 5 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 6 PASSED saNtfAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 7 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_OK; 8 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 9 PASSED saNtfAttributeChangeNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 10 PASSED saNtfStateChangeNotificationAllocate SA_AIS_OK; 11 PASSED saNtfStateChangeNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 12 PASSED saNtfStateChangeNotificationAllocate NULL notification SA_AIS_ERR_INVALID_PARAM; 13 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_OK; 14 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 15 PASSED saNtfSecurityAlarmNotificationAllocate SA_AIS_ERR_INVALID_PARAM; 16 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_OK; 17 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_BAD_HANDLE; 18 PASSED saNtfObjectCreateDeleteNotificationAllocate SA_AIS_ERR_INVALID_PARAM; Suite 7: Consumer operations - filter allocate 1 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_OK; 2 PASSED saNtfStateChangeNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 3 PASSED saNtfStateChangeNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 4 PASSED saNtfStateChangeNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 5 PASSED saNtfSecurityAlarmNotificationFilterAllocate - SA_AIS_OK; 6 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 7 PASSED saNtfSecurityAlarmNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 8 PASSED saNtfSecurityAlarmNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 9 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - SA_AIS_OK; 10 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - handle null SA_AIS_ERR_BAD_HANDLE; 11 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - handle returned SA_AIS_ERR_BAD_HANDLE; 12 PASSED saNtfObjectCreateDeleteNotificationFilterAllocate - SA_AIS_ERR_INVALID_PARAM; 13 PASSED saNtfAttributeChangeNotificationFilterAllocate - SA_AIS_OK; 14 PASSED saNtfAttributeChangeNotificationFilterAllocate - handle NULL SA_AIS_ERR_BAD_HANDLE; 15 PASSED saNtfAttributeChangeNotificationFilterAllocate - handle returned SA_AIS_ERR_BA