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

Add EC2 test #28358

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ae65409
Merge pull request #2 from aws/main
scanlonp Sep 21, 2022
2ebdad8
Merge branch 'aws:main' into main
scanlonp Jul 18, 2023
0875c95
Merge branch 'aws:main' into main
scanlonp Aug 22, 2023
fa997db
Merge branch 'aws:main' into main
scanlonp Aug 25, 2023
01a589c
Merge branch 'aws:main' into main
scanlonp Aug 28, 2023
e307864
Merge branch 'aws:main' into main
scanlonp Sep 1, 2023
df490ed
Merge branch 'aws:main' into main
scanlonp Sep 5, 2023
4e6fece
Merge branch 'aws:main' into main
scanlonp Sep 18, 2023
0f0b0aa
Merge branch 'aws:main' into main
scanlonp Sep 20, 2023
e425fe7
Merge branch 'aws:main' into main
scanlonp Sep 21, 2023
b657bea
Merge branch 'aws:main' into main
scanlonp Oct 2, 2023
3e0f62c
Merge branch 'aws:main' into main
scanlonp Oct 2, 2023
a913d65
Merge branch 'aws:main' into main
scanlonp Oct 19, 2023
61c5bb5
Merge branch 'aws:main' into main
scanlonp Oct 20, 2023
775a278
Merge branch 'aws:main' into main
scanlonp Oct 24, 2023
26ac4b8
Merge branch 'aws:main' into main
scanlonp Oct 25, 2023
bffc02b
Merge branch 'aws:main' into main
scanlonp Oct 26, 2023
05e6728
Merge branch 'aws:main' into main
scanlonp Oct 27, 2023
1dc9ef8
Merge branch 'aws:main' into main
scanlonp Nov 18, 2023
bf39cbc
Merge branch 'aws:main' into main
scanlonp Nov 27, 2023
a638a71
Merge branch 'aws:main' into main
scanlonp Nov 30, 2023
02bc811
setting up new construct
scanlonp Nov 30, 2023
0410181
test one ipv6 address
scanlonp Dec 4, 2023
8d8d883
Add integ.vpc-dual-stack-ec2 test, wire up allowAllIpv6Outbound field…
Dec 13, 2023
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
@@ -0,0 +1,47 @@
from http.server import SimpleHTTPRequestHandler
import urllib.request
import json

class MyRequestHandler(SimpleHTTPRequestHandler):
def do_GET(self):
if self.path == '/':
self.send_response(200)
self.send_header('Content-type', 'application/json')
self.end_headers()

try:
# IPv4 request
response = urllib.request.urlopen('http://www.google.com')
status_code = response.getcode()
if (status_code != 200):
raise Exception(f"Received a non-successful status code: {status_code}")
# self.wfile.write(bytes(f"Status code from www.google.com: {status_code}\n\n", 'utf-8'))

# IPv6 request
response = urllib.request.urlopen('http://ipv6.google.com')
status_code = response.getcode()
if (status_code != 200):
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,
}
}

self.wfile.write(json.dumps(json_response).encode('utf-8'))
except Exception as e:
self.wfile.write(bytes(f"Error: {str(e)}", 'utf-8'))
return
else:
super().do_GET()

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

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading