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(route_with_vars_test) with ginkgo #1556

Conversation

Jaycean
Copy link
Member

@Jaycean Jaycean commented Mar 4, 2021

Please answer these questions before submitting a pull request


New feature or improvement

  • Rewrite e2e test(route_with_vars_test) with ginkgo

api/test/e2enew/route/route_with_vars_test.go Show resolved Hide resolved
Headers: map[string]string{"k": "header"},
Path: `/hello`,
ExpectStatus: http.StatusOK,
Sleep: base.SleepTime,
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.


ginkgo.It("verify route", func() {
base.RunTestCase(base.HttpTestCase{

Copy link
Contributor

Choose a reason for hiding this comment

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

redundant line.

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.

Sleep: base.SleepTime,
})
})

Copy link
Contributor

Choose a reason for hiding this comment

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

Redundant line.

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

@codecov-io
Copy link

codecov-io commented Mar 7, 2021

Codecov Report

Merging #1556 (02f9b85) into master (9130e09) will decrease coverage by 18.50%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           master    #1556       +/-   ##
===========================================
- Coverage   70.18%   51.68%   -18.51%     
===========================================
  Files         130       40       -90     
  Lines        5340     2707     -2633     
  Branches      549        0      -549     
===========================================
- Hits         3748     1399     -2349     
+ Misses       1344     1127      -217     
+ Partials      248      181       -67     
Flag Coverage Δ
backend-e2e-test ?
backend-e2e-test-ginkgo ?
backend-unit-test 51.68% <ø> (ø)
frontend-e2e-test ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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%> (-71.03%) ⬇️
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 111 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 9130e09...02f9b85. Read the comment docs.

@Jaycean Jaycean force-pushed the rewrite-e2e-test-route-with-vars-test-with-ginkgo branch from b492620 to 8d7e581 Compare March 7, 2021 15:15
@Jaycean Jaycean force-pushed the rewrite-e2e-test-route-with-vars-test-with-ginkgo branch from 8d7e581 to 02f9b85 Compare March 7, 2021 15:24
@Jaycean
Copy link
Member Author

Jaycean commented Mar 8, 2021

cc @starsz PTAL Thks.

@starsz
Copy link
Contributor

starsz commented Mar 8, 2021

cc @starsz PTAL Thks.

LGTM.Thank you very much. : )

@starsz starsz merged commit bf019d6 into apache:master Mar 8, 2021
liuxiran pushed a commit to liuxiran/apisix-dashboard that referenced this pull request Mar 9, 2021
@Jaycean Jaycean deleted the rewrite-e2e-test-route-with-vars-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.

4 participants