Systems and methods for simulating desktop bus (D-Bus) services
Embodiments of the present disclosure provide a system and method to simulate property values generated by Desktop Bus (D-Bus) objects. According to one embodiment, an Information Handling System (IHS) includes multiple D-Bus services that communicate among one another using a D-Bus with executable instructions to generate a D-Bus simulation service that communicates with one or more other D-Bus services through a D-Bus, and sends simulation test data to one of the other D-Bus services in response to a request from the one other D-Bus service.
1 . An Information Handling System (IHS) comprising:
a plurality of Desktop Bus (D-Bus) services that communicate among one another using a D-Bus;
at least one processor; and
at least one memory coupled to the at least one processor, the at least one memory having program instructions stored thereon that, upon execution by the at least one processor, cause the IHS to:
generate a D-Bus simulation service to emulate a second of one or more other D-Bus services through a D-Bus, and override the D-Bus simulation service over the second D-Bus service, wherein the D-Bus simulation service is configured to have a name similar to the second D-Bus service; and
send simulation test data to one of the other D-Bus services in response to a request from the one other D-Bus service.
2 . The IHS of claim 1 , wherein the IHS comprises a Baseboard Management Controller (BMC).
3 . The IHS of claim 1 , wherein the instructions, upon execution, cause the IHS to generate the D-Bus simulation service using a D-Busplus platform.
4 . The IHS of claim 1 , wherein the instructions, upon execution, cause the D-Bus simulation service to:
determine a first subset of a plurality of property values to be generated by the second D-Bus service that are obtained from the second D-Bus service; and
determine a second subset of the property values that are simulated values.
5 . The IHS of claim 4 , wherein the instructions, upon execution, cause the D-Bus simulation service to obtain the simulated values from a test script.
6 . A Desktop Bus (D-Bus) service simulation method comprising:
generating a D-Bus simulation service to emulate a second of one or more other D-Bus services through a D-Bus, and override the D-Bus simulation service over the second D-Bus service, wherein the D-Bus simulation service is configured to have a name similar to the second D-Bus service; and
sending simulation test data to one of the other D-Bus services in response to a request from the one other D-Bus service.
7 . The D-Bus service simulation method of claim 6 , further comprising generating the D-Bus simulation service using a D-Busplus platform.
8 . The D-Bus service simulation of claim 6 , further comprising:
determining a first subset of a plurality of property values to be generated by the second D-Bus service that are obtained from the second D-Bus service; and
determining a second subset of the property values that are simulated values.
9 . The D-Bus service simulation method of claim 8 , further comprising obtaining the simulated values from a test script.
10 . A memory storage device having program instructions stored thereon that, upon execution by one or more processors of a client Information Handling System (IHS), cause the client IHS to:
generate a D-Bus simulation service to emulate a second of one or more other D-Bus services through a D-Bus, and override the D-Bus simulation service over the second D-Bus service, wherein the D-Bus simulation service is configured to have a name similar to the second D-Bus service; and
send simulation test data to one of the other D-Bus services in response to a request from the one other D-Bus service.
11 . The memory storage device of claim 10 , wherein the IHS comprises a Baseboard Management Controller (BMC).
12 . The memory storage device of claim 10 , wherein the instructions, upon execution, cause the D-Bus simulation service to:
determine a first subset of a plurality of property values to be generated by the second D-Bus service that are obtained from the second D-Bus service; and
determine a second subset of the property values that are simulated values.