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

Add e2e test #40

Open
ahrtr opened this issue Nov 24, 2022 · 9 comments · May be fixed by #101
Open

Add e2e test #40

ahrtr opened this issue Nov 24, 2022 · 9 comments · May be fixed by #101
Assignees

Comments

@ahrtr
Copy link
Member

ahrtr commented Nov 24, 2022

Currently there is only unit test. It would be great if we have an e2e test suite, and it's supposed to be triggered on each PR or commits on master.

@Elbehery
Copy link
Member

@ahrtr is there a doc explains what is needed here ?

@ahrtr
Copy link
Member Author

ahrtr commented Mar 28, 2024

@ahrtr is there a doc explains what is needed here ?

There is no doc on this. The ideal is straightforward. We need to start the HTTP server, and tests all RESTful APIs.

func (*httpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {

@Elbehery
Copy link
Member

ok i can take this 👍🏽

please assign me

@bhuber
Copy link

bhuber commented Jan 29, 2025

Is this still relevant? I see there are now integration tests defined in /integration/** being run with each PR/merge, e.g. https://github.com/etcd-io/gofail/actions/runs/12990996684/job/36227475614 . Is the goal of this task to simply add one there that exercises the http REST endpoints?

@Elbehery
Copy link
Member

thanks @bhuber

iiuc, this should test all REST endpoints, yes

@bhuber
Copy link

bhuber commented Jan 29, 2025

Thanks for the quick response @Elbehery . Mind if I take a crack at it?

@Elbehery
Copy link
Member

yes please 👍🏽

@Elbehery Elbehery assigned bhuber and unassigned Elbehery Jan 29, 2025
@Elbehery
Copy link
Member

just assigned u 👍🏽

bhuber added a commit to bhuber/gofail that referenced this issue Feb 13, 2025
This fixes etcd-io#40

Signed-off-by: Bennet Huber <[email protected]>
bhuber added a commit to bhuber/gofail that referenced this issue Feb 13, 2025
This fixes etcd-io#40

Signed-off-by: Bennet Huber <[email protected]>
@bhuber bhuber linked a pull request Feb 13, 2025 that will close this issue
@bhuber
Copy link

bhuber commented Feb 14, 2025

@Elbehery I submitted a PR, but it looks like nobody's been assigned to review it. https://github.com/kubernetes/community/blob/master/contributors/guide/owners.md#the-code-review-process suggests reviewers should be assigned automatically, so not sure what's happened here. Any tips on how to proceed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants