Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-mapserver
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cspp_geo
geosphere
geosphere-mapserver
Commits
b5f8e4d5
Verified
Commit
b5f8e4d5
authored
2 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Add expected result check for layer time request
parent
78f58c70
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/test_mapserver_image.sh
+15
-3
15 additions, 3 deletions
ci/test_mapserver_image.sh
with
15 additions
and
3 deletions
ci/test_mapserver_image.sh
+
15
−
3
View file @
b5f8e4d5
...
...
@@ -127,10 +127,22 @@ curl_index() {
}
curl_layer_times
()
{
expected_result
=
$1
debug
"Starting curl basic time request..."
# NOTE: The time doesn't actually exist and no image data is available. A blank image should be returned
# TODO: Verify that the expected time is returned
curl
--fail
-sS
"http://localhost:8888/wms_times/g16/abi/radf/C01"
>
/dev/null
time_result
=
$(
curl
--fail
-sS
"http://localhost:8888/wms_times/g16/abi/radf/C01"
)
time_status
=
$?
if
[[
$time_status
-ne
0
]]
;
then
return
$time_status
fi
# []
# ["2020-12-25T15:29:25"]
if
[[
${
time_result
}
==
$expected_result
]]
;
then
debug
"Time result (
${
time_result
}
) was not equal to the expected
${
expected_result
}
"
return
1
fi
}
curl_empty_tile
()
{
...
...
@@ -145,7 +157,7 @@ run_basic_shapefile_tests() {
debug
"Starting shapefile tests..."
start_test_container
curl_index
curl_layer_times
curl_layer_times
"[]"
curl_empty_tile
teardown_test
debug
"SUCCESS: Shapefile test completed successfully"
...
...
@@ -163,7 +175,7 @@ run_basic_postgres_tests() {
add_postgres_content
curl_index
curl_layer_times
curl_layer_times
"[]"
curl_empty_tile
debug
"SUCCESS: Postgres test completed successfully"
teardown_test
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment