-
-
Notifications
You must be signed in to change notification settings - Fork 347
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
test: add initial e2e test #380
Conversation
go func() { | ||
defer wg.Done() | ||
|
||
<-ctx.Done() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love this!
internal/e2e/full_test.go
Outdated
req, err := http.NewRequest(http.MethodPut, "http://127.0.0.1:4466/relationtuple", bytes.NewBuffer(lndTupleEnc)) | ||
require.NoError(t, err) | ||
resp, err := http.DefaultClient.Do(req) | ||
require.NoError(t, err) | ||
require.NoError(t, resp.Body.Close()) | ||
assert.Equal(t, http.StatusCreated, resp.StatusCode) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can probably implement a small body, res := testhelper.MakeRequest()
to make this easier to read when more things are added
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea
This adds a e2e test running on each of sqlite, mysql, postgres, and cockroach.
More cases will be added soon.