-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove httpbin references (75 remain)
- Loading branch information
1 parent
d850845
commit 1b9b322
Showing
9 changed files
with
90 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,8 +53,8 @@ Here is another example using [http.batch()](https://grafana.com/docs/k6/<K6_VER | |
```javascript | ||
import http from 'k6/http'; | ||
|
||
const url1 = 'https://api.k6.io/v3/account/me'; | ||
const url2 = 'https://httpbin.test.k6.io/get'; | ||
const url1 = 'http://quickpizza.grafana-dev.com:3333/api/get'; | ||
const url2 = 'http://quickpizza.grafana-dev.com:3333/api/delete'; | ||
const apiToken = 'f232831bda15dd233c53b9c548732c0197619a3d3c451134d9abded7eb5bb195'; | ||
const requestHeaders = { | ||
'User-Agent': 'k6', | ||
|
@@ -71,33 +71,6 @@ export default function () { | |
|
||
{{< /code >}} | ||
|
||
### Example of Digest Authentication | ||
|
||
Here is one example of how to use the `Params` to Digest Authentication. | ||
|
||
{{< code >}} | ||
|
||
```javascript | ||
import http from 'k6/http'; | ||
import { check } from 'k6'; | ||
|
||
export default function () { | ||
// Passing username and password as part of URL plus the auth option will authenticate using HTTP Digest authentication | ||
const res = http.get('http://user:[email protected]/digest-auth/auth/user/passwd', { | ||
auth: 'digest', | ||
}); | ||
|
||
// Verify response | ||
check(res, { | ||
'status is 200': (r) => r.status === 200, | ||
'is authenticated': (r) => r.json().authenticated === true, | ||
'is correct user': (r) => r.json().user === 'user', | ||
}); | ||
} | ||
``` | ||
|
||
{{< /code >}} | ||
|
||
### Example of overriding discardResponseBodies | ||
|
||
{{< code >}} | ||
|
@@ -110,7 +83,7 @@ export default function () {} | |
export function setup() { | ||
// Get 10 random bytes as an ArrayBuffer. Without the responseType the body | ||
// will be null. | ||
const response = http.get('https://httpbin.test.k6.io/bytes/10', { | ||
const response = http.get('http://quickpizza.grafana-dev.com:3333/api/bytes/10', { | ||
responseType: 'binary', | ||
}); | ||
// response.body is an ArrayBuffer, so wrap it in a typed array view to access | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters