xref: /openbmc/phosphor-led-manager/test/led-test-map.hpp (revision 4b000d8d84253f97cfe5695b4798e75092509706)
1 static const std::map<std::string,
2     std::set<phosphor::led::Layout::LedAction>> singleLedOn = {
3     {   "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
4             {"One",phosphor::led::Layout::On, 0,
5                 0, phosphor::led::Layout::Blink},
6         }
7     },
8 };
9 
10 static const std::map<std::string,
11     std::set<phosphor::led::Layout::LedAction>> singleLedBlink = {
12     {   "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
13             {"One",phosphor::led::Layout::Blink, 0,
14                 0, phosphor::led::Layout::Blink},
15         }
16     },
17 };
18 
19 static const std::map<std::string,
20     std::set<phosphor::led::Layout::LedAction>> singleLedBlinkOverrideOn = {
21     {   "/xyz/openbmc_project/ledmanager/groups/SingleLed",{
22             {"One",phosphor::led::Layout::Blink, 0,
23                 0, phosphor::led::Layout::On},
24         }
25     },
26 };
27 
28 static const std::map<std::string,
29     std::set<phosphor::led::Layout::LedAction>> multipleLedsOn = {
30     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{
31             {"One",phosphor::led::Layout::On, 0,
32                 0, phosphor::led::Layout::On},
33             {"Two",phosphor::led::Layout::On, 0,
34                 0, phosphor::led::Layout::On},
35             {"Three",phosphor::led::Layout::On, 0,
36                 0, phosphor::led::Layout::On},
37         }
38     },
39 };
40 
41 static const std::map<std::string,
42     std::set<phosphor::led::Layout::LedAction>> multipleLedsBlink = {
43     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLeds",{
44             {"One",phosphor::led::Layout::Blink, 0,
45                 0, phosphor::led::Layout::Blink},
46             {"Two",phosphor::led::Layout::Blink, 0,
47                 0, phosphor::led::Layout::Blink},
48             {"Three",phosphor::led::Layout::Blink,0,
49                 0, phosphor::led::Layout::Blink},
50         }
51     },
52 };
53 
54 static const std::map<std::string,
55     std::set<phosphor::led::Layout::LedAction>> multipleLedsOnAndBlink = {
56     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsMix",{
57             {"One",phosphor::led::Layout::Blink, 0,
58                 0, phosphor::led::Layout::Blink},
59             {"Two",phosphor::led::Layout::On,
60                 0, phosphor::led::Layout::Blink},
61             {"Three",phosphor::led::Layout::Blink,
62                 0, phosphor::led::Layout::On},
63             {"Four",phosphor::led::Layout::On,
64                 0, phosphor::led::Layout::Blink},
65             {"Five",phosphor::led::Layout::On,
66                 0, phosphor::led::Layout::Blink},
67         }
68     },
69 };
70 
71 static const std::map<std::string,
72     std::set<phosphor::led::Layout::LedAction>> twoGroupsWithDistinctLEDsOn = {
73     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
74             {"One",phosphor::led::Layout::On, 0,
75                 0, phosphor::led::Layout::Blink},
76             {"Two",phosphor::led::Layout::On, 0,
77                 0, phosphor::led::Layout::On},
78             {"Three",phosphor::led::Layout::On, 0,
79                 0, phosphor::led::Layout::Blink},
80         }
81     },
82     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
83             {"Four",phosphor::led::Layout::On, 0,
84                 0, phosphor::led::Layout::Blink},
85             {"Five",phosphor::led::Layout::On, 0,
86                 0, phosphor::led::Layout::Blink},
87             {"Six",phosphor::led::Layout::On, 0,
88                 0, phosphor::led::Layout::On},
89         }
90     },
91 };
92 
93 static const std::map<std::string,
94     std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOn = {
95     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
96             {"One",phosphor::led::Layout::On, 0,
97                 0, phosphor::led::Layout::On},
98             {"Two",phosphor::led::Layout::On, 0,
99                 0, phosphor::led::Layout::On},
100             {"Three",phosphor::led::Layout::On, 0,
101                 0, phosphor::led::Layout::On},
102         }
103     },
104     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
105             {"Four",phosphor::led::Layout::On, 0,
106                 0, phosphor::led::Layout::On},
107             {"Three",phosphor::led::Layout::On, 0,
108                 0, phosphor::led::Layout::On},
109             {"Six",phosphor::led::Layout::On, 0,
110                 0, phosphor::led::Layout::On},
111         }
112     },
113 };
114 
115 static const std::map<std::string,
116     std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOnOneLEDBlinkPriority = {
117     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
118             {"One",phosphor::led::Layout::On, 0,
119                 0, phosphor::led::Layout::On},
120             {"Two",phosphor::led::Layout::On, 0,
121                 0, phosphor::led::Layout::On},
122             {"Three",phosphor::led::Layout::Blink, 0,
123                 0, phosphor::led::Layout::Blink},
124         }
125     },
126     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
127             {"Four",phosphor::led::Layout::On, 0,
128                 0, phosphor::led::Layout::On},
129             {"Three",phosphor::led::Layout::On, 0,
130                 0, phosphor::led::Layout::Blink},
131             {"Six",phosphor::led::Layout::On, 0,
132                 0, phosphor::led::Layout::On},
133         }
134     },
135 };
136 
137 static const std::map<std::string,
138     std::set<phosphor::led::Layout::LedAction>> twoGroupsWithOneComonLEDOnPriority = {
139     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
140             {"One",phosphor::led::Layout::On, 0,
141                 0, phosphor::led::Layout::On},
142             {"Two",phosphor::led::Layout::On, 0,
143                 0, phosphor::led::Layout::On},
144             {"Three",phosphor::led::Layout::Blink, 0,
145                 0, phosphor::led::Layout::On},
146         }
147     },
148     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
149             {"Four",phosphor::led::Layout::On, 0,
150                 0, phosphor::led::Layout::On},
151             {"Three",phosphor::led::Layout::On, 0,
152                 0, phosphor::led::Layout::On},
153             {"Six",phosphor::led::Layout::On, 0,
154                 0, phosphor::led::Layout::On},
155         }
156     },
157 };
158 
159 static const std::map<std::string,
160     std::set<phosphor::led::Layout::LedAction>>
161         twoGroupsWithMultiplComonLEDOn = {
162     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
163             {"One",phosphor::led::Layout::On, 0,
164                 0, phosphor::led::Layout::On},
165             {"Two",phosphor::led::Layout::On, 0,
166                 0, phosphor::led::Layout::On},
167             {"Three",phosphor::led::Layout::On, 0,
168                 0, phosphor::led::Layout::On},
169         }
170     },
171     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
172             {"Two",phosphor::led::Layout::On, 0,
173                 0, phosphor::led::Layout::On},
174             {"Six",phosphor::led::Layout::On, 0,
175                 0, phosphor::led::Layout::On},
176             {"Three",phosphor::led::Layout::On, 0,
177                 0, phosphor::led::Layout::On},
178             {"Seven",phosphor::led::Layout::On, 0,
179                 0, phosphor::led::Layout::On},
180         }
181     },
182 };
183 
184 static const std::map<std::string,
185     std::set<phosphor::led::Layout::LedAction>>
186         twoGroupsWithMultipleComonLEDInDifferentState = {
187     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
188             {"One",phosphor::led::Layout::On, 0,
189                 0, phosphor::led::Layout::On},
190             {"Two",phosphor::led::Layout::Blink, 0,
191                 0, phosphor::led::Layout::On},
192             {"Three",phosphor::led::Layout::Blink, 0,
193                 0, phosphor::led::Layout::On},
194             {"Four",phosphor::led::Layout::On, 0,
195                 0, phosphor::led::Layout::On},
196         }
197     },
198     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
199             {"Two",phosphor::led::Layout::On, 0,
200                 0, phosphor::led::Layout::On},
201             {"Three",phosphor::led::Layout::Blink, 0,
202                 0, phosphor::led::Layout::On},
203             {"Five",phosphor::led::Layout::On, 0,
204                 0, phosphor::led::Layout::On},
205             {"Six",phosphor::led::Layout::On, 0,
206                 0, phosphor::led::Layout::On},
207         }
208     },
209 };
210 
211 static const std::map<std::string,
212     std::set<phosphor::led::Layout::LedAction>>
213         twoGroupsWithMultipleComonLEDInDifferentStateDiffPriority = {
214     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsASet",{
215             {"One",phosphor::led::Layout::On, 0,
216                 0, phosphor::led::Layout::On},
217             {"Two",phosphor::led::Layout::Blink, 0,
218                 0, phosphor::led::Layout::On},
219             {"Three",phosphor::led::Layout::On, 0,
220                 0, phosphor::led::Layout::Blink},
221             {"Four",phosphor::led::Layout::On, 0,
222                 0, phosphor::led::Layout::On},
223             {"Ten",phosphor::led::Layout::Blink, 0,
224                 0, phosphor::led::Layout::Blink},
225         }
226     },
227     {   "/xyz/openbmc_project/ledmanager/groups/MultipleLedsBSet",{
228             {"Two",phosphor::led::Layout::On, 0,
229                 0, phosphor::led::Layout::On},
230             {"Three",phosphor::led::Layout::On, 0,
231                 0, phosphor::led::Layout::Blink},
232             {"Five",phosphor::led::Layout::On, 0,
233                 0, phosphor::led::Layout::On},
234             {"Six",phosphor::led::Layout::On, 0,
235                 0, phosphor::led::Layout::On},
236             {"Ten",phosphor::led::Layout::On, 0,
237                 0, phosphor::led::Layout::Blink},
238         }
239     },
240 };
241