summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2019-10-23 09:26:48 -0500
committerMatt Spinler <spinler@us.ibm.com>2019-11-04 16:14:16 -0600
commitaa659477fa398f255c5a87207224d59aea15aa34 (patch)
treeeb3eef6ec6cd089eca8b92d80534c0ce0bad7d75 /test
parent67456c2baa53c96118cd0565a8ec0f3814b38f68 (diff)
downloadphosphor-logging-aa659477fa398f255c5a87207224d59aea15aa34.tar.gz
phosphor-logging-aa659477fa398f255c5a87207224d59aea15aa34.zip
PEL: Create FailingMTMS section for new PELs
When a PEL is created from an OpenBMC event log, add the FailingMTMS section to the PEL. This contains the machine type, model, and serial number fields. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I8d08e6dda00260efebd2c6ac165270d2aaf98d67
Diffstat (limited to 'test')
-rw-r--r--test/openpower-pels/pel_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/openpower-pels/pel_test.cpp b/test/openpower-pels/pel_test.cpp
index 1f9917a..b0c6528 100644
--- a/test/openpower-pels/pel_test.cpp
+++ b/test/openpower-pels/pel_test.cpp
@@ -1,6 +1,7 @@
#include "elog_entry.hpp"
#include "extensions/openpower-pels/generic.hpp"
#include "extensions/openpower-pels/pel.hpp"
+#include "mocks.hpp"
#include "pel_utils.hpp"
#include <filesystem>
@@ -121,9 +122,10 @@ TEST_F(PELTest, CreateFromRegistryTest)
regEntry.src.reasonCode = 0x1234;
AdditionalData ad;
+ MockDataInterface dataIface;
- PEL pel{regEntry, 42, timestamp, phosphor::logging::Entry::Level::Error,
- ad};
+ PEL pel{regEntry, 42, timestamp, phosphor::logging::Entry::Level::Error, ad,
+ dataIface};
EXPECT_TRUE(pel.valid());
EXPECT_EQ(pel.privateHeader()->obmcLogID(), 42);
@@ -131,8 +133,6 @@ TEST_F(PELTest, CreateFromRegistryTest)
EXPECT_EQ(pel.primarySRC().value()->asciiString(),
"BD051234 ");
-
- // Add more checks as more sections are added
}
// Test that we'll create Generic optional sections for sections that
OpenPOWER on IntegriCloud