-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[uss_qualifier] Migrate test_isa_validation prober to the new qualifi…
…er (#238) Squished commit
- Loading branch information
Showing
37 changed files
with
1,052 additions
and
41 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .vertices import VerticesResource |
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,21 @@ | ||
from typing import List | ||
|
||
from implicitdict import ImplicitDict | ||
|
||
from monitoring.monitorlib.geo import LatLngPoint | ||
from monitoring.uss_qualifier.resources.resource import Resource | ||
|
||
|
||
class VerticesSpecification(ImplicitDict): | ||
"""Specifies a list of vertices representing a 2D area. | ||
Useful for passing arbitrary areas to test scenarios.""" | ||
|
||
vertices: List[LatLngPoint] | ||
"""Represents a 2D area""" | ||
|
||
|
||
class VerticesResource(Resource[VerticesSpecification]): | ||
specification: VerticesSpecification | ||
|
||
def __init__(self, specification: VerticesSpecification): | ||
self.specification = specification |
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
Oops, something went wrong.