summaryrefslogtreecommitdiffstats
path: root/src/usr/hwas/test/hwasGardTest.H
diff options
context:
space:
mode:
authorBrian Horton <brianh@linux.ibm.com>2013-10-31 14:58:22 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-11-07 14:55:15 -0600
commit61716e5c9f9ffd3acc5169688739d223c0344a93 (patch)
treeaeba58fe4e8871a974e5b1c9f998296691285c08 /src/usr/hwas/test/hwasGardTest.H
parent2d6ab3cf820134bd3086139adea76f51bbdceb64 (diff)
downloadtalos-hostboot-61716e5c9f9ffd3acc5169688739d223c0344a93.tar.gz
talos-hostboot-61716e5c9f9ffd3acc5169688739d223c0344a93.zip
remove CDM FUNCTIONAL policy and GARD_Func type.
Change-Id: I9d8fa1cf8bfc155dec93c1d788c0d474647e6b37 RTC: 90176 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/6990 Tested-by: Jenkins Server Reviewed-by: SHELDON R. BAILEY <baileysh@us.ibm.com> Reviewed-by: Zane Shelley <zshelle@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/hwas/test/hwasGardTest.H')
-rw-r--r--src/usr/hwas/test/hwasGardTest.H56
1 files changed, 3 insertions, 53 deletions
diff --git a/src/usr/hwas/test/hwasGardTest.H b/src/usr/hwas/test/hwasGardTest.H
index 7b66bf888..487c28df3 100644
--- a/src/usr/hwas/test/hwasGardTest.H
+++ b/src/usr/hwas/test/hwasGardTest.H
@@ -1559,37 +1559,6 @@ public:
break;
}
- // set Functional policy to disabled
- // test that gard record isn't created
- l_policies = CDM_POLICIES_FUNCTIONAL_DISABLED;
- pSys->setAttr<ATTR_CDM_POLICIES>(l_policies);
-
- // (try to) Create a GARD Record for the target.
- l_pErr = theDeconfigGard().
- createGardRecord(l_pTarget, 0x12, GARD_Func);
-
- if (l_pErr)
- {
- TS_FAIL("testGard9: Error from createGardRecord");
- break;
- }
-
- // Get the GARD Records for the target - shouldn't be any
- l_pErr = theDeconfigGard().getGardRecords(l_pTarget, l_records);
-
- if (l_pErr)
- {
- TS_FAIL("testGard9: Error from getGardRecords (2)");
- break;
- }
-
- if (l_records.size() != 0)
- {
- TS_FAIL("testGard9: %d records for target, expected 0",
- l_records.size());
- break;
- }
-
// restore
l_policies = 0;
pSys->setAttr<ATTR_CDM_POLICIES>(l_policies);
@@ -1731,7 +1700,7 @@ public:
l_pErr = theDeconfigGard().clearGardRecords(NULL);
if (l_pErr)
{
- TS_FAIL("testGard7: Error from clearGardRecords(NULL)");
+ TS_FAIL("testGard10: Error from clearGardRecords(NULL)");
break;
}
@@ -1752,7 +1721,7 @@ public:
// create GARD record, set Policy, call 'doGard' step and confirm
// target is NOT deconfigured
l_pErr = theDeconfigGard().
- createGardRecord(l_target, 0x12, GARD_Func);
+ createGardRecord(l_target, 0x12, GARD_Predictive);
if (l_pErr)
{
TS_FAIL("testGard10: Error from createGardRecord");
@@ -1773,30 +1742,11 @@ public:
break;
}
- // set Functional policy to disabled,
- // test that gard record is not created
- l_policies = CDM_POLICIES_FUNCTIONAL_DISABLED;
- pSys->setAttr<ATTR_CDM_POLICIES>(l_policies);
-
- l_pErr = collectGard();
- if (l_pErr)
- {
- TS_FAIL("testGard10: Error from collectGard");
- break;
- }
-
- l_state = l_target->getAttr<ATTR_HWAS_STATE>();
- if (!l_state.functional)
- {
- TS_FAIL("testGard10: target NOT functional");
- break;
- }
-
// Clear all GARD Records
l_pErr = theDeconfigGard().clearGardRecords(NULL);
if (l_pErr)
{
- TS_FAIL("testGard7: Error from clearGardRecords(NULL)");
+ TS_FAIL("testGard10: Error from clearGardRecords(NULL)");
break;
}
OpenPOWER on IntegriCloud