Skip to content

Commit

Permalink
Trying out something with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swalberg committed Oct 8, 2020
1 parent a304564 commit a1a404f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions python/tests/t_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,15 @@ def config(self):
""")

def queries(self):
# sean~/play/ambassador (use_capabilities_wrapper)$ kubectl get pod canbindtolowport -o go-template --template '{{range .status.containerStatuses}}{{.containerID}}{{end}}'
# docker://91e59d6864eee6ad97d48119aca37f829ee1c7e00dc7a8d15f672cddbceda9b1
# sean~/play/ambassador (use_capabilities_wrapper)$ docker inspect --format='{{.HostConfig.CapAdd}}' 91e59d6864eee6ad97d48119aca37f829ee1c7e00dc7a8d15f672cddbceda9b1
# [NET_BIND_SERVICE]

yield Query(self.url("server-name/", "http", 80), expected=404)

def check(self):
print("Platform is", sys.platform)
if sys.platform != 'darwin':
pytest.xfail('This only works on Darwin')
assert self.results[0].headers["Server"] == [ "envoy" ]

0 comments on commit a1a404f

Please sign in to comment.