Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(vpc): fix up dual stack integ test to use assertions. #6

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@ def do_GET(self):
raise Exception(f"Received a non-successful status code: {status_code}")
# self.wfile.write(bytes(f"Status code from ipv6.google.com: {status_code}\n\n", 'utf-8'))

json_response = {
"status": 200,
"body": "OK",
"Data": {
"OK": "OK",
"status": 200,
}
}
json_response = {
"status": status_code
}

self.wfile.write(json.dumps(json_response).encode('utf-8'))
except Exception as e:
Expand All @@ -42,6 +37,6 @@ def do_GET(self):

if __name__ == '__main__':
from http.server import HTTPServer
server = HTTPServer(('localhost', 8000), MyRequestHandler)
print('Server started on http://localhost:8000')
server = HTTPServer(('0.0.0.0', 8000), MyRequestHandler)
print('Server started on http://0.0.0.0:8000')
server.serve_forever()
Loading
Loading