Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Commits
bb106946
Commit
bb106946
authored
2 years ago
by
Charlotte Hausman
Browse files
Options
Downloads
Patches
Plain Diff
add load testing script
parent
69c88181
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!994
add load testing script
Pipeline
#5895
failed
2 years ago
Stage: push-base
Stage: cache-build
Stage: build
Stage: unit-test
Stage: test-coverage
Stage: push
Stage: deploy-coverage-page
Stage: generate-yaml
Stage: trigger
Stage: deploy
Stage: .post
Pipeline: workspaces
#5897
Pipeline: workspaces
#5896
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/cli/utilities/infrastructure_testing_scripts/load_test.sh
+25
-0
25 additions, 0 deletions
...cli/utilities/infrastructure_testing_scripts/load_test.sh
with
25 additions
and
0 deletions
apps/cli/utilities/infrastructure_testing_scripts/load_test.sh
0 → 100644
+
25
−
0
View file @
bb106946
#!/usr/bin/env bash
set
-o
errexit
-o
nounset
function
usage
{
echo
"Usage: load_test [test_count]
This script load tests the workspaces capability service by creating and submitting
the specified number of null requests to the system under testing.
Running this on the production system is not recommended.
"
}
test_count
=
$1
CAPABILITY_SERVICE
=
$(
capo
-q
edu.nrao.workspaces.CapabilitySettings.externalServiceUrl
)
parameters
=
"{
\"
arguments
\"
:
\"
-g
\"
}"
for
i
in
$(
seq
"
$test_count
"
)
;
do
curl
--header
"Content-Type: application/json"
--request
POST
--data
"
$parameters
"
"
$CAPABILITY_SERVICE
"
/capability/null/request/create-and-submit
done
echo
"All
$test_count
requests submitted for Load Test.
Please use the active requests page or the database to monitor the progress of these requests."
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