e2359fb7 | 05-Apr-2019 |
Matt Spinler <spinler@us.ibm.com> |
Gather association maps into a single structure
The AssociationOwners and AssociationIntefaces maps are passed around separately in the mapper, but usually they are always used together.
Gather the
Gather association maps into a single structure
The AssociationOwners and AssociationIntefaces maps are passed around separately in the mapper, but usually they are always used together.
Gather them into a structure to make it easier to write code to use them, especially because soon there will be another entry in it.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ibd5b622c7c1240ff8e23846368cbfd56e5bba24d
show more ...
|
35396c10 | 05-Apr-2019 |
Matt Spinler <spinler@us.ibm.com> |
Move common types into a common header
Upcoming commits will have code that references some of these types in more files so it makes sense to have them in a common place.
Signed-off-by: Matt Spinle
Move common types into a common header
Upcoming commits will have code that references some of these types in more files so it makes sense to have them in a common place.
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I92adbefdd4bcfdb5d8d7e30b7fdf0fa03c739d2a
show more ...
|
8f876a5a | 15-Apr-2019 |
Matt Spinler <spinler@us.ibm.com> |
Support the new association defs interface
An xyz.openbmc_project version of the org.openbmc_project.Associations interface was just created: xyz.openbmc_project.Association.Definitions
Support the new association defs interface
An xyz.openbmc_project version of the org.openbmc_project.Associations interface was just created: xyz.openbmc_project.Association.Definitions property: Associations
Support this interface as well as the original org.openbmc one.
Change-Id: Idc5a0e5afab51ec96f18a2759446707146b077d1 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
096cf821 | 28-Mar-2019 |
Patrick Venture <venture@google.com> |
build: install into bin instead of sbin
Installs into bin instead of sbin per guidelines
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Iff8b72c98d743c45b5f53f0bc61dd68e1af1e173 |
487948d8 | 27-Mar-2019 |
Kun Yi <kunyi731@gmail.com> |
cleanup: Remove Python code and build files
Remove Python code and build files now that we switched to C++ mapper
Tested: built mapper package and no Python file is included Signed-off-by: Kun Yi <
cleanup: Remove Python code and build files
Remove Python code and build files now that we switched to C++ mapper
Tested: built mapper package and no Python file is included Signed-off-by: Kun Yi <kunyi731@gmail.com> Change-Id: Ia8832eaae52ed85b4c1620a5d0db181e6b744ac7
show more ...
|
686ae77a | 05-Apr-2019 |
Matt Spinler <spinler@us.ibm.com> |
Add test artifacts to .gitignore
Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: Ibf168d3a44995a51a50cb6cbb1dedfb64d457945 |
7f838376 | 27-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Test interfaces added function
Tested: - processing.cpp at 94% coverage - Verified QEMU booted to standby and mapper command line worked - Verified hardware CI (witherspoon) passed with t
unit-test: Test interfaces added function
Tested: - processing.cpp at 94% coverage - Verified QEMU booted to standby and mapper command line worked - Verified hardware CI (witherspoon) passed with this patch series
Change-Id: I73e5feb3495ed0aa974acd521fefd8d0193fc1b3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
70461896 | 27-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Move processing of interfaces added
Make it easier to unit test and continue reduction of main.cpp
Change-Id: Id360255e1546eda026e5e6ef9f15d29dcc82caaa Signed-off-by: Andrew Geissler <ge
unit-test: Move processing of interfaces added
Make it easier to unit test and continue reduction of main.cpp
Change-Id: Id360255e1546eda026e5e6ef9f15d29dcc82caaa Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
0a560a5c | 22-Mar-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Fix bug when endpoint empty
Could debate the proper handling of this situations but this commit at least makes it consistent for the forward and reverse path
Change-Id: If0a8a16473c150f4
unit-test: Fix bug when endpoint empty
Could debate the proper handling of this situations but this commit at least makes it consistent for the forward and reverse path
Change-Id: If0a8a16473c150f4d4361f9ca9aad9f06c391157 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
491f9ac3 | 22-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Test associationChanged()
Testing: 100% coverage of associations.cpp
Change-Id: I978eb37acfbee0a5b6d497cab473691318184aaf Signed-off-by: Andrew Geissler <geissonator@yahoo.com> |
7264d90d | 27-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Debug functions to dump data structures
Visualizing the key data structures in objmgr can be very useful for debug and for writing test cases
Example output when new function called: ##
unit-test: Debug functions to dump data structures
Visualizing the key data structures in objmgr can be very useful for debug and for writing test cases
Example output when new function called: ##### interface_map_type ##### ------------------------------------ OBJ PATH: /xyz/openbmc_project/test DBUS SERVICE: xyz.openbmc_project.Test INTERFACE: org.freedesktop.DBus.Introspectable INTERFACE: org.freedesktop.DBus.Peer INTERFACE: org.freedesktop.DBus.Properties ------------------------------------ ##### AssociationOwnersType ##### ------------------------------------ OBJ PATH: /xyz/openbmc_project/test/xyz DBUS SERVICE: xyz.openbmc_project.Test ASSOC PATH: /xyz/openbmc_project/inventory/system/chassis/error ENDPOINT: /xyz/openbmc_project/test/xyz ASSOC PATH: /xyz/openbmc_project/test/xyz/inventory ENDPOINT: /xyz/openbmc_project/inventory/system/chassis ----------------------------------- ##### AssociationInterfaces ##### ------------------------------------ OBJ PATH: /xyz/openbmc_project/inventory/system/chassis/error ENDPOINTS: /xyz/openbmc_project/test/xyz ------------------------------------
Change-Id: I947ccdb071d887683c3998c6020677833579100c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
ea80c33d | 22-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Add some doc on Association
Next set of unit tests use this data structure so added some doc and an example
Change-Id: Iabc89fc66ff68ccbf872e8cb48dc75b75c78908f Signed-off-by: Andrew Gei
unit-test: Add some doc on Association
Next set of unit tests use this data structure so added some doc and an example
Change-Id: Iabc89fc66ff68ccbf872e8cb48dc75b75c78908f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
4511b33f | 21-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Move associationChanged()
Make it easier to unit test and continue reduction of main.cpp
Change-Id: Ic549e096343e7a2fb11985f1c48879ed4486e40b Signed-off-by: Andrew Geissler <geissonator@
unit-test: Move associationChanged()
Make it easier to unit test and continue reduction of main.cpp
Change-Id: Ic549e096343e7a2fb11985f1c48879ed4486e40b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
e4ab6c90 | 21-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Test checkAssociationEndpointRemoves()
Testing: 100% coverage of associations.cpp
Change-Id: I311af1c868416e8e898a25e593d399cd8297ccf9 Signed-off-by: Andrew Geissler <geissonator@yahoo.c
unit-test: Test checkAssociationEndpointRemoves()
Testing: 100% coverage of associations.cpp
Change-Id: I311af1c868416e8e898a25e593d399cd8297ccf9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
7f1c44dc | 21-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Move checkAssociationEndpointRemoves
Make it easier to unit test and continue reduction of main.cpp
Change-Id: Id4f4c4fc1e3928f1b600555c6dbe05f651fffce5 Signed-off-by: Andrew Geissler <g
unit-test: Move checkAssociationEndpointRemoves
Make it easier to unit test and continue reduction of main.cpp
Change-Id: Id4f4c4fc1e3928f1b600555c6dbe05f651fffce5 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
5629ae8d | 21-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Utilize common code for endpoint remove
Testing: Previous test cases get us 100% coverage here
Change-Id: I3b96872bf25ce7ddcc96422f1d453f153f9dd39c Signed-off-by: Andrew Geissler <geisso
unit-test: Utilize common code for endpoint remove
Testing: Previous test cases get us 100% coverage here
Change-Id: I3b96872bf25ce7ddcc96422f1d453f153f9dd39c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
ff5ce924 | 21-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Move removeAssociationEndpoints()
Make it easier to unit test and continue reduction of main.cpp
Change-Id: I2c0eac5c301687acab14add627586170020e4fe4 Signed-off-by: Andrew Geissler <geis
unit-test: Move removeAssociationEndpoints()
Make it easier to unit test and continue reduction of main.cpp
Change-Id: I2c0eac5c301687acab14add627586170020e4fe4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
2067926a | 11-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Test deleting entry on name change
Breaking off into a separate function enables easier unit testing of the specific function
Testing: 97% coverage of processing.cpp
Change-Id: I08f2296
unit-test: Test deleting entry on name change
Breaking off into a separate function enables easier unit testing of the specific function
Testing: 97% coverage of processing.cpp
Change-Id: I08f229657a8f44230b711fabbae20fb403792637 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
5b2e7276 | 11-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Request distinct name per test app
gtest will run test suites in parallel, need to ensure each test suite (application) requests a distinct well-known name on Dbus.
Change-Id: Ib59211ada
unit-test: Request distinct name per test app
gtest will run test suites in parallel, need to ensure each test suite (application) requests a distinct well-known name on Dbus.
Change-Id: Ib59211ada5ef6404e70747b7377912384cc8c60e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
bb7b592e | 08-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Move association create funcs to util
These will be useful in other test suites so move into util directory
Change-Id: Ibea5c417e38210e6e1388cf4492af10a64db9077 Signed-off-by: Andrew Gei
unit-test: Move association create funcs to util
These will be useful in other test suites so move into util directory
Change-Id: Ibea5c417e38210e6e1388cf4492af10a64db9077 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
b04f0335 | 08-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Move asio server to its own class
Other test suites will need this object so move to a utility directory and inherit from.
Change-Id: Ia34c8149fc0df02c510717a6efd21f51086e97e6 Signed-off
unit-test: Move asio server to its own class
Other test suites will need this object so move to a utility directory and inherit from.
Change-Id: Ia34c8149fc0df02c510717a6efd21f51086e97e6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
271b7dd0 | 05-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Test removeAssociations interface
Testing: Verified code coverage shows 100% of new interface
Change-Id: I517acc02b06bbff971921e66a697fb297fde45c6 Signed-off-by: Andrew Geissler <geisson
unit-test: Test removeAssociations interface
Testing: Verified code coverage shows 100% of new interface
Change-Id: I517acc02b06bbff971921e66a697fb297fde45c6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
a80a3af0 | 04-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Create initial associations file
Make interface more unit testable by moving to separate file and documenting it.
Change-Id: Ia27f33d706c62a0011790ec94185dd6be3922f21 Signed-off-by: Andr
unit-test: Create initial associations file
Make interface more unit testable by moving to separate file and documenting it.
Change-Id: Ia27f33d706c62a0011790ec94185dd6be3922f21 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
67e5a420 | 04-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Add all required parameters to removeAssociation
Testing is easier when all required parameters are input (vs. global references)
Change-Id: I0c6c45c79a6095eaa6d702150cc346ac4f8e0e0d Sig
unit-test: Add all required parameters to removeAssociation
Testing is easier when all required parameters are input (vs. global references)
Change-Id: I0c6c45c79a6095eaa6d702150cc346ac4f8e0e0d Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|
82815dac | 04-Feb-2019 |
Andrew Geissler <geissonator@yahoo.com> |
unit-test: Test need_to_introspect function
Testing: Verified 100% code coverage of processing.cpp
Change-Id: I5ebdebe3fdcecbf250a23754f8b5c7db81bfaaa3 Signed-off-by: Andrew Geissler <geissonator@y
unit-test: Test need_to_introspect function
Testing: Verified 100% code coverage of processing.cpp
Change-Id: I5ebdebe3fdcecbf250a23754f8b5c7db81bfaaa3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
show more ...
|