Skip to content

Instantly share code, notes, and snippets.

@shwang
Created January 6, 2017 20:43
Show Gist options
  • Save shwang/413584dddcfa0d70ec94a69e8d6d0650 to your computer and use it in GitHub Desktop.
Save shwang/413584dddcfa0d70ec94a69e8d6d0650 to your computer and use it in GitHub Desktop.
hostnames test
% go run check_hostnames.go
Container-30{run alpine tail -f /dev/null, Minion: 172.31.11.82, StitchID: 10, IP: 10.232.240.3, Mac: 02:00:0a:e8:f0:03, Labels: [yellow]}
.. OK, 2.yellow.q ==> 10.11.0.2
.. OK, 1.yellow.q ==> 10.11.0.3
.. OK, 2.red.q ==> 10.232.240.4
.. OK, en.wikipedia.org ==> 198.35.26.96
.. OK, 2.blue.q ==> 10.206.32.3
.. OK, red.q ==> 10.0.10.48
.. OK, blue.q ==> 10.0.13.126
.. OK, facebook.com ==> 31.13.77.36
.. OK, 3.red.q ==> 10.11.0.4
.. OK, 1.red.q ==> 10.206.32.2
.. OK, 3.blue.q ==> 10.75.208.2
.. OK, google.com ==> 216.58.192.14
.. OK, 3.yellow.q ==> 10.232.240.3
.. OK, 1.blue.q ==> 10.75.208.3
.. OK, yellow.q ==> 10.0.8.21
Container-29{run alpine tail -f /dev/null, Minion: 172.31.9.130, StitchID: 9, IP: 10.11.0.2, Mac: 02:00:0a:0b:00:02, Labels: [yellow]}
.. OK, 1.yellow.q ==> 10.11.0.3
.. OK, 2.red.q ==> 10.232.240.4
.. OK, 2.yellow.q ==> 10.11.0.2
.. OK, 2.blue.q ==> 10.206.32.3
.. OK, en.wikipedia.org ==> 198.35.26.96
.. OK, blue.q ==> 10.0.13.126
.. OK, 1.red.q ==> 10.206.32.2
.. OK, facebook.com ==> 31.13.77.36
.. OK, red.q ==> 10.0.10.48
.. OK, 3.red.q ==> 10.11.0.4
.. OK, google.com ==> 172.217.5.110
.. OK, 3.yellow.q ==> 10.232.240.3
.. OK, 1.blue.q ==> 10.75.208.3
.. OK, 3.blue.q ==> 10.75.208.2
.. OK, yellow.q ==> 10.0.8.21
[omitted]
Container-33{run alpine tail -f /dev/null, Minion: 172.31.14.110, StitchID: 7, IP: 10.75.208.2, Mac: 02:00:0a:4b:d0:02, Labels: [blue]}
.. OK, 1.yellow.q ==> 10.11.0.3
.. OK, 2.red.q ==> 10.232.240.4
.. OK, en.wikipedia.org ==> 198.35.26.96
.. OK, 2.blue.q ==> 10.206.32.3
.. OK, 2.yellow.q ==> 10.11.0.2
.. OK, facebook.com ==> 31.13.77.36
.. OK, blue.q ==> 10.0.13.126
.. OK, 3.red.q ==> 10.11.0.4
.. OK, red.q ==> 10.0.10.48
.. OK, 1.red.q ==> 10.206.32.2
.. OK, google.com ==> 172.217.6.78
.. OK, 3.blue.q ==> 10.75.208.2
.. OK, 3.yellow.q ==> 10.232.240.3
.. OK, yellow.q ==> 10.0.8.21
.. OK, 1.blue.q ==> 10.75.208.3
PASSED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment