-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added more DS features, ADE catalog feature
- Loading branch information
1 parent
f118050
commit 22ca1b1
Showing
6 changed files
with
182 additions
and
5 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,30 @@ | ||
Feature: Algorithm Catalog system tests | ||
|
||
Scenario: Algorithm Packages can be registered in the catalog | ||
Given an algorithm binary in an accessible repository | ||
And an algorithm descriptor | ||
When the algorithm descriptor is registered in the Algorithm Catalog | ||
Then the algorithm is searchable in the Algorithm catalog | ||
And the search result maps back to the algorithm binary | ||
|
||
Scenario: Search the catalog for an algorithm package | ||
Given a set of catalog algorithms | ||
| name | binary | | ||
| algo1 | https://algo1.com | | ||
| algo2 | https://algo2.com | | ||
| algo3 | https://algo3.com | | ||
And the catalog algorithms are registered in the Algorithm Catalog | ||
When a user searches the algorithm catalog | ||
Then the search retrieves 3 results | ||
|
||
Scenario: Access an algorithm package from a catalog result | ||
Given a set of catalog algorthms | ||
| name | binary | | ||
| algo1 | https://algo1.com | | ||
| algo2 | https://algo2.com | | ||
| algo3 | https://algo3.com | | ||
And the catalog algorithms are registered in the Algorithm Catalog | ||
When a user searches the algorithm catalog by name | ||
Then the user gets the algorithm package back | ||
And the algorithm package references the correct binary | ||
And the binary is accessible |
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,24 @@ | ||
Feature: Ingest (copy and catalog) Data in S3 with the U-DS Catalog | ||
This test will register a product (one or more files) with the U-DS catalog based on the | ||
implementation standards documented in the unity architecture. There will be | ||
no mention of 'cumulus' or 'cmr' or other underlying implementations | ||
|
||
Scenario: Ingest SounderSIPS data | ||
Given SounderSIPS data exists at an accessible location | ||
But the data are not in a Unity owned bucket | ||
And a collection has been created for this product | ||
And a CNM has been created for the product | ||
When a CNM request is sent to the ingest endpoint | ||
Then the product shall be copied to a Unity owned bucket | ||
Then the product should be searchable in the catalog | ||
And the search result maps to the new file | ||
|
||
Scenario: User Provided file | ||
Given a registered user | ||
And a data product to upload | ||
And a collection has been created for this product | ||
When a user uploads the product | ||
Then the product shall be copied to a Unity owned bucket | ||
Then the product should be searchable in the catalog | ||
And the search result maps to the new file | ||
And the search result maps to a collection |
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,76 @@ | ||
from behave import * | ||
from behave.runner import Context | ||
|
||
import json | ||
|
||
@given(u'an algorithm binary in an accessible repository') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Given an algorithm binary in an accessible repository') | ||
|
||
|
||
@given(u'an algorithm descriptor') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Given an algorithm descriptor') | ||
|
||
|
||
@when(u'the algorithm descriptor is registered in the Algorithm Catalog') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: When the algorithm descriptor is registered in the Algorithm Catalog') | ||
|
||
|
||
@then(u'the algorithm is searchable in the Algorithm catalog') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Then the algorithm is searchable in the Algorithm catalog') | ||
|
||
|
||
@then(u'the search result maps back to the algorithm binary') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Then the search result maps back to the algorithm binary') | ||
|
||
|
||
@given(u'a set of catalog algorithms') | ||
def step_impl(context): | ||
for row in context.table: | ||
print(row['name']) | ||
print(row['binary']) | ||
raise NotImplementedError(u'STEP: Given a set of catalog algorithms') | ||
|
||
|
||
@given(u'the catalog algorithms are registered in the Algorithm Catalog') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Given the catalog algorithms are registered in the Algorithm Catalog') | ||
|
||
|
||
@when(u'a user searches the algorithm catalog') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: When a user searches the algorithm catalog') | ||
|
||
|
||
@then(u'the search retrieves 3 results') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Then the search retrieves 3 results') | ||
|
||
|
||
@given(u'a set of catalog algorthms') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Given a set of catalog algorthms') | ||
|
||
|
||
@when(u'a user searches the algorithm catalog by name') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: When a user searches the algorithm catalog by name') | ||
|
||
|
||
@then(u'the user gets the algorithm package back') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Then the user gets the algorithm package back') | ||
|
||
|
||
@then(u'the algorithm package references the correct binary') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Then the algorithm package references the correct binary') | ||
|
||
|
||
@then(u'the binary is accessible') | ||
def step_impl(context): | ||
raise NotImplementedError(u'STEP: Then the binary is accessible') |
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,2 +1,3 @@ | ||
# Cumulus steps | ||
from features.steps.ds.steps import * | ||
from features.steps.ade.steps import * |