Traffic Monitor Integration Test Framework#5817
Traffic Monitor Integration Test Framework#5817zrhoffman merged 22 commits intoapache:masterfrom shamrickus:tm/integration-tests
Conversation
zrhoffman
left a comment
There was a problem hiding this comment.
A lot of the TM integration test Docker environment seems to be copied from an older version of CDN in a Box.
I can understand only wanting to build and use the pieces that are relevant for the TM integration tests, but using CDN in a Box where it sits instead of copying it does not require starting everything. For example, neither the TO integration tests nor the TP integration tests require starting all of the CDN in a Box services:
For the record, it is not. It's based on #3707 whose compose was written from scratch. I believe the Dockerfiles may have been based on the independent dockerfiles in infrastructure/docker (which I also originally wrote), but neither they nor the docker-compose.yml are derivative works of the CDN-in-a-Box. |
I agree it'd be better for that, but I was going off of what Rob already did. I figured it would be more valuable to get this merged and working, and then later down the road it can be moved to CiaB (testcaches would also need to be ported). That also has the added benefit of building and running this currently only takes about as long as it does to build just TM. |
Fair enough, we don't really group things based on |
This is with the intention of adding an integration test framework for Traffic Monitor, which can use this tool and send commands to change the fake caches to test various scenarios.
zrhoffman
left a comment
There was a problem hiding this comment.
Builds with minimal manual steps, and tests pass!
What does this PR (Pull Request) do?
It is based off of #3707 and includes fixes for dual homing changes as well as addressing the feedback posted on the previous PR.
Also adds a TM client as well for use in the tests.
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Run the integration tests by following the instructions found in the
tests/_integration/README.md.Should also verify that @zrhoffman's comments on the previous PR have been addressed.
If this is a bug fix, what versions of Traffic Control are affected?
The following criteria are ALL met by this PR