zrhoffman edited a comment on issue #5069:
URL: https://github.com/apache/trafficcontrol/issues/5069#issuecomment-717411843


   Since I haven't PRed it yet: The 
[`zrhoffman/tr-int-test`](/zrhoffman/trafficcontrol/commits/tr-int-test) branch 
can be used to run the Traffic Router External Tests.
   
   1. Start CDN-in-a-Box
   2. Wait for Traffic Monitor to start, since it is used by some Integration 
Tests (like AbstractResourceWatcherTest)
   3. Run the Traffic Router External Tests and Integration Tests:
       ```shell
       docker-compose -f docker-compose.traffic-router-test.yml up --build 
tr-integration-test
       ```
   
   You can also debug the `tr-integration-test` service by setting the 
`TR_TEST_DEBUG_ENABLE` to `true` in `variables.env`.
   
   Debugging settings to use in Intellij Idea:
   
   - *Listen to remote JVM* instead of *Attach to remote JVM*
   - Enable *Auto restart*, since otherwise the debugger would stop listening 
after each test
   - Port 8000
   - Make sure the IDE is listening for debug connections before starting the 
tests or they will all fail.
   
   Edit: And if you're on Linux (no need if using Docker Desktop on Mac or 
Windows), you'll need to use your own resolver so you can set the IP address 
for `host.docker.internal` to 172.17.0.1. Alternatively, change 
`host.docker.internal` to 172.17.0.1 on the following lines: 
   
https://github.com/apache/trafficcontrol/blob/56a80d381a4856fbfcf866c019aeefa864c292ab/infrastructure/cdn-in-a-box/traffic_router_integration_test/run.sh#L44-L45


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to