generated from kamangir/blue-plugin
-
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.
bashtest refactors - kamangir/bolt#746
- Loading branch information
Showing
13 changed files
with
104 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#! /usr/bin/env bash | ||
|
||
function test_blue_geo_catalog_browse() { | ||
local options=$1 | ||
|
||
local catalog | ||
for catalog in $(echo $blue_geo_catalog_list | tr , " "); do | ||
abcli_eval ,$options \ | ||
blue_geo catalog browse $catalog | ||
[[ $? -ne 0 ]] && return 1 | ||
done | ||
|
||
return 0 | ||
} | ||
|
||
function test_blue_geo_catalog_get_list_of_collections() { | ||
local options=$1 | ||
|
||
local catalog | ||
for catalog in $(echo $blue_geo_catalog_list | tr , " "); do | ||
abcli_eval ,$options \ | ||
blue_geo catalog get \ | ||
list_of_collections \ | ||
--catalog $catalog \ | ||
--delim , \ | ||
--log 0 | ||
[[ $? -ne 0 ]] && return 1 | ||
done | ||
|
||
return 0 | ||
} | ||
|
||
function test_blue_geo_catalog_list() { | ||
local options=$1 | ||
|
||
abcli_eval ,$options \ | ||
blue_geo catalog list | ||
} | ||
|
||
function test_blue_geo_catalog_query() { | ||
local options=$1 | ||
|
||
local catalog | ||
for catalog in $(echo $blue_geo_catalog_list | tr , " "); do | ||
local object_name="bashtest-$(abcli_string_timestamp)" | ||
|
||
abcli_eval ,$options \ | ||
blue_geo catalog query firms \ | ||
ingest \ | ||
$object_name | ||
[[ $? -ne 0 ]] && return 1 | ||
|
||
abcli_assert \ | ||
$(blue_geo datacube query read len $object_name) \ | ||
1 | ||
[[ $? -ne 0 ]] && return 1 | ||
done | ||
return 0 | ||
} |
7 changes: 4 additions & 3 deletions
7
blue_geo/.abcli/tests/datacube_firms_area.sh → .../.abcli/tests/catalog_query_firms_area.sh
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,19 +1,20 @@ | ||
#! /usr/bin/env bash | ||
|
||
function test_blue_geo_datacube_firms_area() { | ||
function test_blue_geo_catalog_query_firms_area() { | ||
local options=$1 | ||
|
||
local object_name=firms-$(abcli_string_timestamp_short) | ||
|
||
blue_geo datacube query firms_area \ | ||
ingest $object_name - \ | ||
--date 2024-07-18 | ||
--date 2024-07-20 | ||
|
||
abcli_assert \ | ||
$(blue_geo datacube query read len $object_name) \ | ||
1 | ||
[[ $? -ne 0 ]] && return 1 | ||
|
||
abcli_assert \ | ||
$(blue_geo datacube query read - $object_name) \ | ||
datacube-firms_area-world-MODIS_NRT-2024-07-18-1 | ||
$BLUE_GEO_TEST_DATACUBE_FIRMS_AREA | ||
} |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
#! /usr/bin/env bash | ||
|
||
function test_blue_geo_generic() { | ||
local options=$1 | ||
|
||
abcli_eval ,$options \ | ||
blue_geo build_README | ||
} |
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,3 +1,5 @@ | ||
BLUE_GEO_UKRAINE_TIMEMAP_QGIS_TEMPLATE=ukraine-timemap-template-v11 | ||
|
||
BLUE_GEO_FIRMS_AREA_QGIS_TEMPLATE=firms_area-template-v1 | ||
BLUE_GEO_FIRMS_AREA_QGIS_TEMPLATE=firms_area-template-v1 | ||
|
||
BLUE_GEO_TEST_DATACUBE_FIRMS_AREA=datacube-firms-area-world-MODIS_NRT-2024-07-20-1 |
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.
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