test: add tests for enum parsing
Add test cases to cover the parsing of enums from generated
bindings, including two DISABLED test cases to show the issues
reported in openbmc/sdbusplus#52.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5a01529404c38ae6c30aadbdc7d8e20f3ccbcaab
diff --git a/test/server/Test.interface.yaml b/test/server/Test.interface.yaml
index ed98eb3..18c3450 100644
--- a/test/server/Test.interface.yaml
+++ b/test/server/Test.interface.yaml
@@ -34,3 +34,16 @@
- name: DoubleAsEpsilon
type: double
default: Epsilon
+
+ - name: VariantOfEnums
+ type: variant[enum[self.EnumOne], string, enum[self.EnumTwo]]
+
+enumerations:
+ - name: EnumOne
+ values:
+ - name: OneA
+ - name: OneB
+ - name: EnumTwo
+ values:
+ - name: TwoA
+ - name: TwoB