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

test: add e2e test cases for proxy-rewrite plugin #341

Merged
merged 15 commits into from
Apr 9, 2021

Conversation

Firstsawyou
Copy link
Contributor

@Firstsawyou Firstsawyou commented Apr 5, 2021

Please answer these questions before submitting a pull request

close #335

  • Why submit this pull request?

  • Bugfix

  • New feature provided

  • Improve performance

  • Backport patches

  • Related issues


Bugfix

  • Description

  • How to fix?


New feature or improvement

  • Describe the details and related test reports.

Backport patches

  • Why need to backport?

  • Source branch

  • Related commits and pull requests

  • Target branch

@codecov-io
Copy link

Codecov Report

Merging #341 (856a24a) into master (456efa6) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #341      +/-   ##
==========================================
- Coverage   43.84%   43.82%   -0.02%     
==========================================
  Files          40       39       -1     
  Lines        3435     3434       -1     
==========================================
- Hits         1506     1505       -1     
  Misses       1761     1761              
  Partials      168      168              
Impacted Files Coverage Δ
test/e2e/e2e.go

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 456efa6...856a24a. Read the comment docs.

@Firstsawyou Firstsawyou marked this pull request as ready for review April 6, 2021 13:29

s.NewAPISIXClient().GET("/hello").WithHeader("Host", "httpbin.org").
Expect().
Status(200)
Copy link
Contributor

Choose a reason for hiding this comment

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

Also check the body, which contains the string "origin".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

test/e2e/plugins/proxy_rewrite.go Show resolved Hide resolved
@tokers
Copy link
Contributor

tokers commented Apr 7, 2021

Missing cases for regex_uri and headers.

@tokers
Copy link
Contributor

tokers commented Apr 8, 2021

Ping @Firstsawyou Any updates?

@Firstsawyou
Copy link
Contributor Author

Ping @Firstsawyou Any updates?

Being resolved.

@tokers
Copy link
Contributor

tokers commented Apr 8, 2021

@Firstsawyou Please fix the e2e failure problem.

@Firstsawyou
Copy link
Contributor Author

@Firstsawyou Please fix the e2e failure problem.

Fixed.

@tokers tokers merged commit c9f04ca into apache:master Apr 9, 2021
@Firstsawyou Firstsawyou deleted the test/proxy-rewrite branch April 9, 2021 09:51
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.

add e2e test cases for request-rewrite plugin
3 participants