Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
service-prober
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
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
ai3
tools
service-prober
Commits
9ef63792
Commit
9ef63792
authored
1 year ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Expose the http port?
parent
1b7e0fe6
Branches
Branches containing commit
No related tags found
1 merge request
!14
Add an integration test with a simple HTTP probe
Pipeline
#56935
passed
1 year ago
Stage: test
Stage: build
Stage: container-test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
test/test.sh
+1
-1
1 addition, 1 deletion
test/test.sh
with
2 additions
and
2 deletions
.gitlab-ci.yml
+
1
−
1
View file @
9ef63792
...
@@ -10,4 +10,4 @@ ctest-http:
...
@@ -10,4 +10,4 @@ ctest-http:
URL
:
https://www.incal.net/
URL
:
https://www.incal.net/
script
:
script
:
-
sed -e "s,@URL@,$URL,g" < test/http/config.json > config.json
-
sed -e "s,@URL@,$URL,g" < test/http/config.json > config.json
-
with-container --mount=type=bind,source=$PWD/config.json,destination=/etc/service-prober.json --env=SERVICE_PROBER_CONFIG=/etc/service-prober.json $IMAGE_TAG ./test/test.sh
-
with-container --mount=type=bind,source=$PWD/config.json,destination=/etc/service-prober.json --env=SERVICE_PROBER_CONFIG=/etc/service-prober.json
--env=SERVICE_PROBER_HTTP_ADDR=:5521 --expose=5521
$IMAGE_TAG ./test/test.sh
This diff is collapsed.
Click to expand it.
test/test.sh
+
1
−
1
View file @
9ef63792
...
@@ -10,7 +10,7 @@ while [ $count -lt 120 ]; do
...
@@ -10,7 +10,7 @@ while [ $count -lt 120 ]; do
exit
0
exit
0
fi
fi
echo
"probe_success=
${
value
}
"
[
-n
"
$value
"
]
&&
echo
"probe_success=
${
value
}
"
sleep
1
sleep
1
done
done
...
...
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