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

DTP open sourcing #7161

Merged
merged 7 commits into from Nov 8, 2022
Merged

DTP open sourcing #7161

merged 7 commits into from Nov 8, 2022

Conversation

ezelkow1
Copy link
Member

@ezelkow1 ezelkow1 commented Oct 26, 2022

This PR open sources our internal testing tool, DTP. Originally DTP was a stand alone origin that can provide origin responses based on path values to simulate a variety of scenarios. It made sense to include this as another endpoint type within fakeOrigin to expand it's capabilities. There is a new endpoint type of "testing" which adds this functionality.


Which Traffic Control components are affected by this PR?

  • unknown

What is the best way to verify this PR?

Build the fakeOrigin and create a testing endpoint and issue some curls against it

PR submission checklist

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@zrhoffman zrhoffman added new feature A new feature, capability or behavior tests related to tests and/or testing infrastructure DTP Deterministic Testing Protocol labels Oct 26, 2022
@ocket8888 ocket8888 added medium impact impacts a significant portion of a CDN, or has the potential to do so high difficulty the estimated level of effort to resolve this issue is high labels Oct 26, 2022
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/config.go Fixed Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Fixed Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Show resolved Hide resolved
@zrhoffman zrhoffman added the experimental a feature/component not directly supported by ATC label Nov 1, 2022
test/fakeOrigin/httpService/httpService.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/text.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/type_txt.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/text.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/type_txt.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/dtp.go Outdated Show resolved Hide resolved
test/fakeOrigin/dtp/handler.go Show resolved Hide resolved
test/fakeOrigin/dtp/handler.go Show resolved Hide resolved
alog.Printf("%.3f %s \"%s\" %s %d b=%d ttms=%d uas=\"%s\" rr=\"%s\"\n",
float64(timeStart.UnixNano())/float64(1.e9),
r.Method,
r.URL.String(),

Check failure

Code scanning / CodeQL

Log entries created from user input

Log entry depends on a [user-provided value](1).
Copy link
Member

@zrhoffman zrhoffman left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for open sourcing!

@zrhoffman zrhoffman merged commit a1a7dde into apache:master Nov 8, 2022
@ezelkow1 ezelkow1 deleted the dtp-fo branch November 8, 2022 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DTP Deterministic Testing Protocol experimental a feature/component not directly supported by ATC high difficulty the estimated level of effort to resolve this issue is high medium impact impacts a significant portion of a CDN, or has the potential to do so new feature A new feature, capability or behavior tests related to tests and/or testing infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants