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

feat: rewrite e2e test(upstream_chash_hash_on_test) with ginkgo #1518

Conversation

Jaycean
Copy link
Member

@Jaycean Jaycean commented Feb 25, 2021

Please answer these questions before submitting a pull request


New feature or improvement

  • Rewrite e2e test(upstream_chash_hash_on_test) with ginkgo

@Jaycean Jaycean marked this pull request as draft February 25, 2021 16:22
@nic-chen
Copy link
Member

@Jaycean is this pr ready ?

@Jaycean
Copy link
Member Author

Jaycean commented Feb 26, 2021

@Jaycean is this pr ready ?

Yes, but I'm going to check it again before opening it.

@Jaycean Jaycean marked this pull request as ready for review February 26, 2021 12:15
@Jaycean
Copy link
Member Author

Jaycean commented Feb 26, 2021

cc @juzhiyuan @liuxiran FE e2e test failed. PTAL.

@juzhiyuan
Copy link
Member

ping @guoqqqi to take a look

@guoqqqi guoqqqi mentioned this pull request Feb 27, 2021
4 tasks
LiteSun pushed a commit that referenced this pull request Mar 1, 2021
assert.Nil(t, err)
req.Header.Add("custom_header", `custom-one`)
resp, err := http.DefaultClient.Do(req)
assert.Nil(t, err)
Copy link
Contributor

Choose a reason for hiding this comment

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

You can call the resp.Body.Close here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

} else {
res[body]++
}
resp.Body.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

} else {
res[body]++
}
resp.Body.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

} else {
res[body]++
}
resp.Body.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

} else {
res[body]++
}
resp.Body.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

} else {
res[body]++
}
resp.Body.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

@Jaycean Jaycean force-pushed the rewrite_e2e_test_upstream_chash_hash_test_with_ginkgo branch from 94257db to 727bd33 Compare March 1, 2021 10:07
@Jaycean Jaycean force-pushed the rewrite_e2e_test_upstream_chash_hash_test_with_ginkgo branch from e0f8186 to 7f7b35e Compare March 1, 2021 14:54
@codecov-io
Copy link

Codecov Report

Merging #1518 (7f7b35e) into master (10f6044) will decrease coverage by 16.91%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1518       +/-   ##
===========================================
- Coverage   68.55%   51.63%   -16.92%     
===========================================
  Files          48       39        -9     
  Lines        3056     2599      -457     
===========================================
- Hits         2095     1342      -753     
- Misses        722     1083      +361     
+ Partials      239      174       -65     
Impacted Files Coverage Δ
api/internal/utils/version.go 0.00% <0.00%> (-100.00%) ⬇️
api/internal/filter/request_id.go 0.00% <0.00%> (-100.00%) ⬇️
api/internal/core/entity/entity.go 0.00% <0.00%> (-100.00%) ⬇️
api/internal/core/store/storehub.go 0.00% <0.00%> (-70.41%) ⬇️
api/internal/filter/cors.go 0.00% <0.00%> (-66.67%) ⬇️
api/internal/filter/schema.go 0.00% <0.00%> (-55.47%) ⬇️
api/internal/utils/consts/api_error.go 0.00% <0.00%> (-50.00%) ⬇️
api/internal/handler/data_loader/route_import.go 27.41% <0.00%> (-37.50%) ⬇️
api/internal/handler/server_info/server_info.go 57.14% <0.00%> (-33.34%) ⬇️
api/internal/utils/closer.go 0.00% <0.00%> (-33.34%) ⬇️
... and 29 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 10f6044...7f7b35e. Read the comment docs.

@Jaycean
Copy link
Member Author

Jaycean commented Mar 2, 2021

cc @starsz PTAL, Thks.

@starsz starsz merged commit e4d72ed into apache:master Mar 2, 2021
@Jaycean Jaycean deleted the rewrite_e2e_test_upstream_chash_hash_test_with_ginkgo branch March 10, 2021 01:03
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.

5 participants