-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bb/remove-boilerplate
- Loading branch information
Showing
36 changed files
with
204 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from broker.models import ServiceInstanceTypes | ||
from broker.models import ( | ||
CDNServiceInstance, | ||
CDNDedicatedWAFServiceInstance, | ||
) | ||
|
||
|
||
def is_cdn_instance(service_instance) -> bool: | ||
return service_instance.instance_type in [ | ||
ServiceInstanceTypes.CDN.value, | ||
ServiceInstanceTypes.CDN_DEDICATED_WAF.value, | ||
] | ||
return isinstance(service_instance, CDNServiceInstance) or isinstance( | ||
service_instance, CDNDedicatedWAFServiceInstance | ||
) | ||
|
||
|
||
def is_cdn_dedicated_waf_instance(service_instance) -> bool: | ||
return ( | ||
service_instance.instance_type == ServiceInstanceTypes.CDN_DEDICATED_WAF.value | ||
) | ||
return isinstance(service_instance, CDNDedicatedWAFServiceInstance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from broker.models import DedicatedALBListener | ||
|
||
|
||
def test_server_runs(client): | ||
client.get("/ping") | ||
assert client.response.status_code == 200 | ||
assert client.response.body == "PONG" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions
7
tests/integration/test_canceling_ops.py → tests/integration/huey/test_canceling_ops.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
tests/integration/test_server_setup.py → ...ion/models/test_dedicated_alb_listener.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.