Skip to content

Commit 855f642

Browse files
authored
Merge pull request #138 from rstudio/default-ip-range
Resize/renumber the default VPC CidrBlocks
2 parents 91cb0ff + b659608 commit 855f642

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def env_setup():
7373
def dynamodb(fake_users, monkeypatch):
7474
from fuzzbucket import aws
7575

76-
with moto.mock_dynamodb():
76+
with moto.mock_aws():
7777
ddb = boto3.resource("dynamodb", region_name="us-east-1")
7878
setup_dynamodb_tables(ddb, fake_users)
7979

@@ -87,7 +87,7 @@ def dynamodb(fake_users, monkeypatch):
8787
def ec2(monkeypatch):
8888
from fuzzbucket import aws
8989

90-
with moto.mock_ec2():
90+
with moto.mock_aws():
9191
ec2c = boto3.client("ec2", region_name="us-east-1")
9292

9393
with monkeypatch.context() as mp:

default-resources.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ resources:
33
VPC:
44
Type: AWS::EC2::VPC
55
Properties:
6-
CidrBlock: 172.98.0.0/18
6+
CidrBlock: 172.22.0.0/20
77
EnableDnsSupport: true
88
EnableDnsHostnames: true
99
Tags:
@@ -15,7 +15,7 @@ resources:
1515
Properties:
1616
VpcId: !Ref VPC
1717
AvailabilityZone: ${aws:region, 'us-east-1'}a
18-
CidrBlock: 172.98.0.0/18
18+
CidrBlock: 172.22.0.0/20
1919
MapPublicIpOnLaunch: true
2020
Tags:
2121
- Key: Name

fuzzbucket/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
def deferred_app(
1010
environ: dict[str, str], start_response: typing.Callable
11-
) -> typing.Iterable[str]:
11+
) -> typing.Iterable[bytes]:
1212
return cached_app()(environ, start_response)
1313

1414

fuzzbucket/g.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
flask_dance.consumer.OAuth2ConsumerBlueprint
88
] = werkzeug.local.LocalProxy(auth.get_oauth_blueprint)
99

10-
oauth_session: werkzeug.local.LocalProxy[
11-
flask_dance.consumer.OAuth2Session
12-
] = werkzeug.local.LocalProxy(lambda: auth.get_oauth_blueprint().session)
10+
oauth_session: werkzeug.local.LocalProxy[flask_dance.consumer.OAuth2Session] = (
11+
werkzeug.local.LocalProxy(lambda: auth.get_oauth_blueprint().session)
12+
)
1313

14-
user_storage: werkzeug.local.LocalProxy[
15-
flask_dance_storage.FlaskDanceStorage
16-
] = werkzeug.local.LocalProxy(flask_dance_storage.get_storage)
14+
user_storage: werkzeug.local.LocalProxy[flask_dance_storage.FlaskDanceStorage] = (
15+
werkzeug.local.LocalProxy(flask_dance_storage.get_storage)
16+
)

fuzzbucket_client/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,7 @@ def utcnow() -> datetime.datetime:
141141

142142
class CustomHelpFormatter(
143143
argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescriptionHelpFormatter
144-
):
145-
...
144+
): ...
146145

147146

148147
def main(sysargs: list[str] = sys.argv[:]) -> int:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ addopts = '''
123123
--cov-report term
124124
--cov-report html
125125
--cov-report xml
126+
--ignore=wsgi_handler.py
127+
--ignore=serverless_wsgi.py
126128
-vv
127129
--mypy
128130
--disable-warnings

0 commit comments

Comments
 (0)