Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace httpbin references with QuickPizza #1833

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Conversation

federicotdn
Copy link
Contributor

@federicotdn federicotdn commented Jan 7, 2025

What?

Part of https://github.com/grafana/k6-cloud/issues/2437.
Replace all uses of httpbin.test.k6.io with QuickPizza.

NOTE: The URL used is currently quickpizza.grafana-dev.com:3333. This is because I was testing the changes against a local server. I will change the URLs to the final quickpizza.grafana.com soon, but this can be reviewed already anyways.
Also, once this is approved, I will backport the changes to previous OSS versions, to avoid making the PR diff larger now.

Checklist

  • I have used a meaningful title for the PR.
  • I have described the changes I've made in the "What?" section above.
  • I have performed a self-review of my changes.
  • I have run the npm start command locally and verified that the changes look good.
  • I have made my changes in the docs/sources/k6/next folder of the documentation.
  • I have reflected my changes in the docs/sources/k6/v{most_recent_release} folder of the documentation.
  • I have reflected my changes in the relevant folders of the two previous k6 versions of the documentation (if still applicable to previous versions).
  • I have made my changes in the docs/sources/k6/next folder of the documentation.

Related PR(s)/Issue(s)

@federicotdn federicotdn marked this pull request as ready for review January 10, 2025 10:58
@federicotdn federicotdn requested review from heitortsergent and a team as code owners January 10, 2025 10:58
@federicotdn federicotdn requested review from oleiade and codebien and removed request for a team January 10, 2025 10:58

{{< /code >}}

## Digest authentication
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Digest auth is deprecated since 2011 (https://en.wikipedia.org/wiki/Digest_access_authentication) so I would not recommend users to implement it in their HTTP servers. I also think this auth method is not widely used nowadays - for this reason I've removed this section.

@@ -71,33 +71,6 @@ export default function () {

{{< /code >}}

### Example of Digest Authentication
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same logic.

jar.set('http://quickpizza.grafana-dev.com:3333/api/cookies', 'my_cookie', 'hello world', {
domain: 'quickpizza.grafana-dev.com',
path: '/api/cookies',
secure: false, // TODO set to false
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will undo secure changes once URLs are pointing at QP production.

```javascript
import http from 'k6/http';
import { Trend, Rate, Counter, Gauge } from 'k6/metrics';
import { sleep } from 'k6';

export const TrendRTT = new Trend('RTT');
export const RateContentOK = new Rate('Content OK');
export const RateContentOK = new Rate('ContentOK');
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test was failing due to space in the metric name.

@heitortsergent heitortsergent self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants