-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor integration tests to remove random collection sampling (#749)
Co-authored-by: danielfromearth <[email protected]> Co-authored-by: Joseph H Kennedy <[email protected]>
- Loading branch information
1 parent
b110c02
commit fcb0c22
Showing
30 changed files
with
1,603 additions
and
260 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Integration tests | ||
|
||
## Testing most popular datasets | ||
|
||
Some integration tests operate on the most popular collections for each provider in CMR. | ||
Those collection IDs are cached as static data in `tests/integration/popular_collections/` | ||
to give our test suite more stability. The list of most popular collections can be | ||
updated by running a script in the same directory. | ||
|
||
Sometimes, we find collections with unexpected conditions, like 0 granules, and | ||
therefore "comment" those collections from the list by prefixing the line with a `#`. | ||
|
||
!!! note | ||
|
||
Let's consider a CSV format for this data; we may want to, for example, allow | ||
skipping collections with a EULA by representing that as a column. |
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
Empty file.
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,17 @@ | ||
from typing import TypedDict | ||
|
||
|
||
class TestParam(TypedDict): | ||
provider_name: str | ||
|
||
# How many of the top collections we will test, e.g. top 3 collections | ||
n_for_top_collections: int | ||
|
||
# How many granules we will query | ||
granules_count: int | ||
|
||
# How many granules we will randomly select from the query | ||
granules_sample_size: int | ||
|
||
# The maximum allowed granule size; if larger we'll try to find another one | ||
granules_max_size_mb: int |
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,100 @@ | ||
C1214470488-ASF | ||
C1327985661-ASF | ||
C1214470533-ASF | ||
C1206487504-ASF | ||
C1214353986-ASF | ||
C1327985645-ASF | ||
C1595422627-ASF | ||
C1206485527-ASF | ||
C2011599335-ASF | ||
C1206485320-ASF | ||
C1206485940-ASF | ||
C1206487217-ASF | ||
C1214470496-ASF | ||
C1214470576-ASF | ||
C1206156901-ASF | ||
C1214470532-ASF | ||
C1214472977-ASF | ||
C1808440897-ASF | ||
C1214472994-ASF | ||
C1327985660-ASF | ||
C1266376001-ASF | ||
C1206936391-ASF | ||
C1327985617-ASF | ||
C1327985741-ASF | ||
C1214472336-ASF | ||
C1327985579-ASF | ||
C1243122884-ASF | ||
C1327985740-ASF | ||
C1214470732-ASF | ||
C1327985650-ASF | ||
C1206897141-ASF | ||
C1208794942-ASF | ||
C1243124139-ASF | ||
C1327985619-ASF | ||
C1327985646-ASF | ||
C1208662092-ASF | ||
C1214473170-ASF | ||
C1327985739-ASF | ||
C1327985578-ASF | ||
C1206500826-ASF | ||
C1214470561-ASF | ||
C1209373626-ASF | ||
C1207933168-ASF | ||
C1211627521-ASF | ||
C1210197768-ASF | ||
C1214471521-ASF | ||
C1214336717-ASF | ||
C1214336045-ASF | ||
C1214470682-ASF | ||
C1206500991-ASF | ||
C1213921661-ASF | ||
C1327985571-ASF | ||
C2859376221-ASF | ||
C1327985647-ASF | ||
C1214337770-ASF | ||
C1214343609-ASF | ||
C1243124754-ASF | ||
C1214353859-ASF | ||
C1214353754-ASF | ||
C1213928843-ASF | ||
C1214353593-ASF | ||
C1214336154-ASF | ||
C1214354031-ASF | ||
C1661710588-ASF | ||
C1214408428-ASF | ||
C1214419355-ASF | ||
C1661710600-ASF | ||
C1214354144-ASF | ||
C1214354235-ASF | ||
C1214336554-ASF | ||
C1214335430-ASF | ||
C1213925022-ASF | ||
C1213927035-ASF | ||
C1213927939-ASF | ||
C1214335471-ASF | ||
C179001730-ASF | ||
C1213928209-ASF | ||
C1214335903-ASF | ||
C1213926419-ASF | ||
C1661710597-ASF | ||
C1661710603-ASF | ||
C1661710604-ASF | ||
C1243215430-ASF | ||
C1213926777-ASF | ||
C1243168866-ASF | ||
C1214474435-ASF | ||
C1214473367-ASF | ||
C1661710583-ASF | ||
C1661710590-ASF | ||
C1213921626-ASF | ||
C1214473171-ASF | ||
C1214473839-ASF | ||
C1243162394-ASF | ||
C1214473624-ASF | ||
C1243228612-ASF | ||
C1243255360-ASF | ||
C1243140611-ASF | ||
C2795135668-ASF | ||
C2803501758-ASF | ||
C2777443834-ASF |
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,100 @@ | ||
C1243477369-GES_DISC | ||
C1692982070-GES_DISC | ||
C2069247359-GES_DISC | ||
C2033151148-GES_DISC | ||
C1569839798-GES_DISC | ||
C2033167496-GES_DISC | ||
C2069246977-GES_DISC | ||
C1235316220-GES_DISC | ||
C1239966757-GES_DISC | ||
C1701805630-GES_DISC | ||
C1442068519-GES_DISC | ||
C1235316219-GES_DISC | ||
C1701805611-GES_DISC | ||
C1701828243-GES_DISC | ||
C1598621095-GES_DISC | ||
C1235316222-GES_DISC | ||
C1235316223-GES_DISC | ||
C1952167462-GES_DISC | ||
C1675477037-GES_DISC | ||
C1266136111-GES_DISC | ||
C1239966818-GES_DISC | ||
C1266136037-GES_DISC | ||
C1281704371-GES_DISC | ||
C1701805652-GES_DISC | ||
C1238517289-GES_DISC | ||
C1266136071-GES_DISC | ||
C1943072252-GES_DISC | ||
C1598621094-GES_DISC | ||
C1266136062-GES_DISC | ||
C2045794784-GES_DISC | ||
C2248663267-GES_DISC | ||
C2623694314-GES_DISC | ||
C1442068516-GES_DISC | ||
C2556149060-GES_DISC | ||
C2467863601-GES_DISC | ||
C2467880659-GES_DISC | ||
C1239966810-GES_DISC | ||
C1238517344-GES_DISC | ||
C1237114212-GES_DISC | ||
C1239966829-GES_DISC | ||
C2011289787-GES_DISC | ||
C1701805672-GES_DISC | ||
C1442068433-GES_DISC | ||
C1266136096-GES_DISC | ||
C1404080675-GES_DISC | ||
C1282032615-GES_DISC | ||
C1342986035-GES_DISC | ||
C1276812899-GES_DISC | ||
C1276812941-GES_DISC | ||
C2756757848-GES_DISC | ||
C1276812926-GES_DISC | ||
C1266136112-GES_DISC | ||
C1266136100-GES_DISC | ||
C2515837343-GES_DISC | ||
C1239966791-GES_DISC | ||
C2569847612-GES_DISC | ||
C1266136072-GES_DISC | ||
C2756347598-GES_DISC | ||
C1488311935-GES_DISC | ||
C1235316199-GES_DISC | ||
C2723754847-GES_DISC | ||
C1729925175-GES_DISC | ||
C1729925806-GES_DISC | ||
C1276812863-GES_DISC | ||
C1235316218-GES_DISC | ||
C2237419562-GES_DISC | ||
C1276812830-GES_DISC | ||
C1276812901-GES_DISC | ||
C1266136114-GES_DISC | ||
C1933574580-GES_DISC | ||
C1243477366-GES_DISC | ||
C1282032565-GES_DISC | ||
C1239966755-GES_DISC | ||
C1943072156-GES_DISC | ||
C1598621098-GES_DISC | ||
C1243477380-GES_DISC | ||
C1282060545-GES_DISC | ||
C1386443916-GES_DISC | ||
C1700900796-GES_DISC | ||
C1266136097-GES_DISC | ||
C1266136113-GES_DISC | ||
C2042565519-GES_DISC | ||
C1266136070-GES_DISC | ||
C1251101497-GES_DISC | ||
C1633993908-GES_DISC | ||
C1239966842-GES_DISC | ||
C1243477371-GES_DISC | ||
C1239966837-GES_DISC | ||
C1251101764-GES_DISC | ||
C1238517305-GES_DISC | ||
C1282060546-GES_DISC | ||
C1223720291-GES_DISC | ||
C1701805601-GES_DISC | ||
C2042566037-GES_DISC | ||
C1701805657-GES_DISC | ||
C1729925154-GES_DISC | ||
C1276812900-GES_DISC | ||
C1239966827-GES_DISC | ||
C1276812893-GES_DISC | ||
C1239536905-GES_DISC |
Oops, something went wrong.