Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
csbase-dev
csgrid
Merge requests
!7
Update README.md com um exemplo de comando cURL para executar os comandos
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Maria Julia Dias de Lima
requested to merge
patch-1
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
0
0
Compare
master
master (base)
and
latest version
latest version
76503604
1 commit,
5 years ago
1 file
+
13
−
0
Expand all files
Preferences
Preferences
File browser
List view
Tree view
Compare changes
Inline
Side-by-side
Show whitespace changes
Show one file at a time
Docker/README.md
+
13
−
0
Options
View file @ 76503604
Edit in single-file editor
Open in Web IDE
Show full file
@@ -96,3 +96,16 @@ Para limpar ambiente:
Para limpar ambiente da versão com dados:
docker-compose -f docker-compose-with-data.yml down
## Teste de submeter vários jobs para execução usando o docker-compose acima com dados
O seguinte comando executa, com o usuário "tester", 100 jobs do algoritmo "Teste_Progresso", versão "1.0.0", no projeto "TestProject-tester":
```
curl -X POST \
http://localhost:8010/v1/jobs/ \
-H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0ZXIiLCJleHAiOjE4NjgzNTk3OTcsImlhdCI6MTU1Mjk5OTc5N30.DRqEzpEuSgJaKKyTfDd7unUBE3SnAe_LG1NFLqqii5wvKKk8JWu4KLT4bMK2eFjyL1WaDo7aMB7EW_ZsVLdXjw' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: 658a02cd-5754-4df6-9687-20ad4f01867a' \
-d '{"description": "teste de progresso", "remoteCommand": { "algorithmId": "Teste_Progresso", "versionId": "1.0.0", "projectId": "dGVzdGVyL1Rlc3RQcm9qZWN0LXRlc3Rlcg=="}, "args": {"qtde":5, "duracao":1}, "priority" :0, "numberOfJobs":100}'
```
\ No newline at end of file
Menu
Explore
Projects
Groups
Topics
Snippets