-
Notifications
You must be signed in to change notification settings - Fork 51
[databroker] Add integration tests #330
[databroker] Add integration tests #330
Conversation
@@ -0,0 +1,145 @@ | |||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for including these generated files? If there is a practical need to have them included it could maybe be an idea to write a few words on how/when they shall be re-generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the _pb2*.py
files, it's because the integration tests should be able to verify that the external interface doesn't break even when updating the .proto
-files. Updating the generated files should hence be a deliberate action.
I added the script for generating the proto
-files.
696144f
to
e593afb
Compare
I have some trouble running locally (run.sh). Not sure, I already put a sleep and a Any immediate idea, what is wrong?
|
First take at adding integration tests (taken mostly from val.services). The tests uses a python unit test framework to handle the scaffolding around the tests. A simple runner has been added (`run.sh`) which: 1. Starts a databroker container (given by `DATABROKER_IMAGE`) 2. Runs the integration tests targeting the container 3. Stops the container. This has been integrated with the github action for building databroker.
e593afb
to
4301842
Compare
A theory is that the hardcoded address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested: Works on amd64 and arm64 Linux (previous issues maybe related to trying on Mac OS. Not critical)
lgtm 🐘
First take at adding integration tests (taken mostly from val.services).
The tests uses a python unit test framework to handle the scaffolding the tests.
A simple runner has been added (
run.sh
) which:DATABROKER_IMAGE
)This has been integrated with the github action for building databroker.