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
e6a684d7
Verified
Commit
e6a684d7
authored
2 years ago
by
David Hoese
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into feature-pg-index
# Conflicts: # ci/test_mapserver_image.sh
parents
e81a9574
666a3011
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Switch to pulling tile index information from postgres server
Pipeline
#37041
passed with stages
in 1 minute and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-1
0 additions, 1 deletion
.gitlab-ci.yml
ci/test_mapserver_image.sh
+10
-9
10 additions, 9 deletions
ci/test_mapserver_image.sh
with
10 additions
and
10 deletions
.gitlab-ci.yml
+
0
−
1
View file @
e6a684d7
...
@@ -11,7 +11,6 @@ variables:
...
@@ -11,7 +11,6 @@ variables:
# DOCKER_TLS_CERTDIR: "/certs"
# DOCKER_TLS_CERTDIR: "/certs"
# DOCKER_HOST: "tcp://localhost:2376"
# DOCKER_HOST: "tcp://localhost:2376"
DOCKER_DRIVER
:
overlay2
DOCKER_DRIVER
:
overlay2
HELM_EXPERIMENTAL_OCI
:
"
1"
services
:
services
:
-
docker:19.03.1-dind
-
docker:19.03.1-dind
...
...
This diff is collapsed.
Click to expand it.
ci/test_mapserver_image.sh
+
10
−
9
View file @
e6a684d7
...
@@ -27,10 +27,11 @@ NETWORK_NAME=`basename "$0"`
...
@@ -27,10 +27,11 @@ NETWORK_NAME=`basename "$0"`
NETWORK_NAME
=
${
NETWORK_NAME
/.sh/
}
NETWORK_NAME
=
${
NETWORK_NAME
/.sh/
}
C01_GTIFF_NAME
=
"GOES-16_ABI_RadF_C01_20220302_194032_GOES-West.tif"
C01_GTIFF_NAME
=
"GOES-16_ABI_RadF_C01_20220302_194032_GOES-West.tif"
C01_ISOTIME
=
"2022-03-02T19:40:32"
C01_ISOTIME
=
"2022-03-02T19:40:32"
BASE_WORK_DIR
=
${
BASE_WORK_DIR
:-${
TMPDIR
:-
/tmp
}}
base_tmp_dir
=
"__TOBECREATED__"
base_tmp_dir
=
"__TOBECREATED__"
setup_test
()
{
setup_test
()
{
base_tmp_dir
=
$(
mktemp
-d
${
TMPDIR
:-
/tmp
}
/mapserver-tests-XXXXXXX
)
base_tmp_dir
=
$(
mktemp
-d
${
BASE_WORK_DIR
}
/mapserver-tests-XXXXXXX
)
cd
"
${
base_tmp_dir
}
"
cd
"
${
base_tmp_dir
}
"
chmod
777
.
chmod
777
.
echo
"Temporary directory:
${
base_tmp_dir
}
"
echo
"Temporary directory:
${
base_tmp_dir
}
"
...
@@ -144,8 +145,7 @@ EOF
...
@@ -144,8 +145,7 @@ EOF
start_test_container
()
{
start_test_container
()
{
debug
"Starting test docker container (
${
image_url
}
:
${
image_tag
}
)..."
debug
"Starting test docker container (
${
image_url
}
:
${
image_tag
}
)..."
docker run
--rm
-d
--network
${
NETWORK_NAME
}
--name
test
-p
8888:80
-v
"
$(
pwd
)
"
:
"/data"
$@
${
image_url
}
:
${
image_tag
}
docker run
--rm
-d
--network
${
NETWORK_NAME
}
--name
test
-p
8888:80
$@
${
image_url
}
:
${
image_tag
}
# docker run --rm -it --network ${NETWORK_NAME} --name test -p 8888:80 -v "$(pwd)":"/data" $@ ${image_url}:${image_tag}
start_status
=
$?
start_status
=
$?
# just wait a bit to let the server start
# just wait a bit to let the server start
sleep
2
sleep
2
...
@@ -153,10 +153,14 @@ start_test_container() {
...
@@ -153,10 +153,14 @@ start_test_container() {
return
$start_status
return
$start_status
}
}
start_shapefile_test_container
()
{
start_test_container
-v
"
$(
pwd
)
"
:
"/data"
}
start_pg_test_container
()
{
start_pg_test_container
()
{
mkdir
pg_secrets
mkdir
pg_secrets
echo
"
${
POSTGRES_PASSWORD
}
"
>
pg_secrets/fake_file
echo
"
${
POSTGRES_PASSWORD
}
"
>
pg_secrets/fake_file
start_test_container
-v
"
$(
pwd
)
"
/pg_secrets:/secrets
-e
POSTGRES_HOST
=
${
PG_SERVER_NAME
}
-e
POSTGRES_PORT
=
${
PG_PORT
}
-e
POSTGRES_PASSWORD_FILE
=
"/secrets/fake_file"
start_test_container
-v
"
$(
pwd
)
"
:
"/data"
-e
POSTGRES_HOST
=
${
PG_SERVER_NAME
}
-e
POSTGRES_PORT
=
${
PG_PORT
}
-e
POSTGRES_PASSWORD_FILE
=
"/
data/pg_
secrets/fake_file"
}
}
# start_minio() {
# start_minio() {
...
@@ -197,10 +201,7 @@ curl_index() {
...
@@ -197,10 +201,7 @@ curl_index() {
curl_layer_times
()
{
curl_layer_times
()
{
expected_result
=
$1
expected_result
=
$1
debug
"Starting curl basic time request..."
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
time_result
=
$(
curl
--fail
-sS
"http://localhost:8888/wms_times/g16/abi/radf/C01"
)
# TODO: Verify that the expected time is returned
# time_result=$(curl --fail -sS "http://localhost:8888/wms_times/g16/abi/radf/C01")
time_result
=
$(
curl
"http://localhost:8888/wms_times/g16/abi/radf/C01"
)
time_status
=
$?
time_status
=
$?
if
[[
$time_status
-ne
0
]]
;
then
if
[[
$time_status
-ne
0
]]
;
then
error
"Requesting layer times failed"
error
"Requesting layer times failed"
...
@@ -271,7 +272,7 @@ EOF
...
@@ -271,7 +272,7 @@ EOF
run_basic_shapefile_tests
()
{
run_basic_shapefile_tests
()
{
setup_test
setup_test
debug
"Starting shapefile tests..."
debug
"Starting shapefile tests..."
start_test_container
start_
shapefile_
test_container
gtiff_fn
=
"/data/
$(
create_fake_geotiff
)
"
gtiff_fn
=
"/data/
$(
create_fake_geotiff
)
"
add_shapefile_content
"
${
gtiff_fn
}
"
add_shapefile_content
"
${
gtiff_fn
}
"
...
...
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