Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Muhammad Bilal
Pod backend
Commits
1955309c
Unverified
Commit
1955309c
authored
4 years ago
by
Vasili Novikov
Browse files
Options
Download
Email Patches
Plain Diff
Add a curl test
parent
2043fd5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+1
-0
.gitlab-ci.yml
examples/run_development.sh
+3
-1
examples/run_development.sh
tests/test_curl.sh
+22
-0
tests/test_curl.sh
with
26 additions
and
1 deletion
+26
-1
.gitlab-ci.yml
+
1
-
0
View file @
1955309c
...
...
@@ -17,6 +17,7 @@ test:
-
if grep --recursive '::{' src/; then
false
; fi
-
cargo audit
-
cargo test
-
./tests/test_curl.sh
pages
:
stage
:
docs
...
...
This diff is collapsed.
Click to expand it.
examples/run_development.sh
+
3
-
1
View file @
1955309c
...
...
@@ -7,8 +7,10 @@ if ! test -e Cargo.toml; then
exit
1
fi
cargo build
RUST_LOG
=
pod
=
debug,info
\
exec
c
arg
o run
--
\
exec
t
arg
et/debug/pod
\
--owners
=
ANY
\
--insecure-non-tls
=
0.0.0.0
\
--insecure-http-headers
\
...
...
This diff is collapsed.
Click to expand it.
tests/test_curl.sh
0 → 100755
+
22
-
0
View file @
1955309c
#!/usr/bin/env bash
set
-euETo
pipefail
#### This script tests that Pod can respond to GET /version request
#### Start Pod
./examples/run_development.sh
--port
=
4956 &
pid
=
$!
for
attempt
in
{
1..30
}
;
do
#### Try to get a successful response to /version
if
curl localhost:4956/version 1>/dev/null 2>&1
;
then
echo
"Got a successful response, exiting"
kill
$pid
exit
0
else
sleep
1s
fi
done
echo
"Failed to get a response from Pod"
exit
1
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets