refs #6451 feat: replace token value by URL variable
gitea/salix/pipeline/head There was a failure building this commit Details
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-01-23 09:28:02 +01:00
parent ba2fde3a00
commit 85a1e7a09a
23 changed files with 69 additions and 56 deletions

View File

@ -4,8 +4,21 @@ meta {
seq: 1
}
get {
url:
body: none
post {
url: {{URL}}/api/VnUsers/sign-in
body: json
auth: none
}
body:json {
{"user":"developer", "password": "nightmare"}
}
body:multipart-form {
user: developer
password: nightmare
}
script:post-response {
bru.setEnvVar('TOKEN', res.body.token)
}

View File

@ -15,5 +15,5 @@ query {
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
Authorization: {{TOKEN}}
}

View File

@ -16,7 +16,7 @@ query {
}
headers {
Authorization: eXkFArlBnJt5wsHdodsLLaD1uNW3vCNz2rGoD4ScEFt6BpTkdqXUMkc16Bi4ABwY
Authorization: {{TOKEN}}
}
body:json {

View File

@ -16,5 +16,5 @@ query {
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
Authorization: {{TOKEN}}
}

View File

@ -15,5 +15,5 @@ query {
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
Authorization: {{TOKEN}}
}

View File

@ -15,5 +15,5 @@ query {
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
Authorization: {{TOKEN}}
}

View File

@ -15,5 +15,5 @@ query {
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
Authorization: {{TOKEN}}
}

View File

@ -15,5 +15,5 @@ query {
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
Authorization: {{TOKEN}}
}

View File

@ -11,7 +11,7 @@ post {
}
headers {
Authorization: DEFAULT_TOKEN
Authorization: {{TOKEN}}
}
body:json {

View File

@ -11,7 +11,7 @@ post {
}
headers {
Authorization: kQLvk9XerDZoECCKwC3hEM33xx2GNKhWEtOpstU7EtHWyCHI08xWDNtJzRLtI0hn
Authorization: {{TOKEN}}
}
body:json {

View File

@ -11,5 +11,5 @@ get {
}
headers {
Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB
Authorization: {{TOKEN}}
}

View File

@ -11,7 +11,7 @@ post {
}
headers {
Authorization: CoI4AOO6fu6J7U0YNVgR0CAmPjPIxsL37mKjfUk5ZX9ZBtAVKOTLMhGd9na1EYKz
Authorization: {{TOKEN}}
}
script:pre-request {

View File

@ -18,7 +18,7 @@ query {
}
headers {
Authorization: KPfxP9J6SPnWLh9EiYLluRWOMmLFSo0Znk9LpupPc9aVH9YpvGEZ8DMN5MRDVjPG
Authorization: {{TOKEN}}
}
body:json {

View File

@ -18,7 +18,7 @@ query {
}
headers {
Authorization: o0guQMWuli0YnY15ujV2JULqncC0ufFmzTOExXry3lvMX2gXeECVFKZcg4RW9LQY
Authorization: {{TOKEN}}
}
body:json {

View File

@ -15,5 +15,5 @@ query {
}
headers {
Authorization: ddTJNMTFMRyQDonosxmn2wauk3i6K5CgSeK6f3xwESuMiW54HPdgNrF23uUkgZqN
Authorization: {{TOKEN}}
}

View File

@ -16,7 +16,7 @@ query {
}
headers {
Authorization: 8js9U12LOEHKazfxmQVkohU2lZvJP95a7LDOVTlf9feNT0CaWGJra4Ox9xivISuP
Authorization: {{TOKEN}}
}
body:json {

View File

@ -15,7 +15,7 @@ query {
}
headers {
Authorization: knF6sC44lB3dxeC6ta48EmDB4OfMMXxcI5DPP5bCIOogcqPWM8oAMwL1SYwfHOKg
Authorization: {{TOKEN}}
}
body:json {

View File

@ -11,7 +11,7 @@ post {
}
headers {
Authorization: wqHE3HcmM1qjT1CB2w3dlNzAVs4FRqJ9zNCtFBw9IDdItO9O6scpcpVUlCdAlEVB
Authorization: {{TOKEN}}
}
body:json {

View File

@ -15,7 +15,7 @@ query {
}
headers {
Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9
Authorization: {{TOKEN}}
}
body:json {

View File

@ -15,7 +15,7 @@ query {
}
headers {
Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9
Authorization: {{TOKEN}}
}
body:json {

View File

@ -15,7 +15,7 @@ query {
}
headers {
Authorization: wy2Pn2NQghjCTrcgoRpbDtvgETRh5dWSJ22DccwgZMKaVnxG0lLgFNQIkFoq7KUy
Authorization: {{TOKEN}}
}
body:json {

View File

@ -15,7 +15,7 @@ query {
}
headers {
Authorization: 3EFg7LP2qDGOWghRIzq6azEYIB5BvJUCHUk0BIXxU9lcqiMiKRPtU0EBzLcnv4H9
Authorization: {{TOKEN}}
}
body:json {

View File

@ -15,7 +15,7 @@ query {
}
headers {
Authorization: TDBXtkBF8mGrpcS6RlBggkUeZ8TP6MyKssezFYM2NXYRi4FhZe2CqqA3GNLlbawp
Authorization: {{TOKEN}}
}
body:json {