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 redirect, uri-blocker and fault-injection plugins #320

Merged
merged 5 commits into from Apr 1, 2021

Conversation

tokers
Copy link
Contributor

@tokers tokers commented Mar 29, 2021

Please answer these questions before submitting a pull request

  • 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 #320 (11f81d1) into master (8277995) will increase coverage by 60.74%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           master      #320       +/-   ##
============================================
+ Coverage   39.25%   100.00%   +60.74%     
============================================
  Files          42         1       -41     
  Lines        3577         1     -3576     
============================================
- Hits         1404         1     -1403     
+ Misses       2012         0     -2012     
+ Partials      161         0      -161     
Impacted Files Coverage Δ
test/e2e/e2e.go 100.00% <ø> (ø)
pkg/types/errors.go
pkg/ingress/apisix/tls.go
pkg/apisix/upstream.go
pkg/kube/translation/annotations.go
pkg/log/default_logger.go
pkg/ingress/controller/endpoint.go
pkg/apisix/nonexistentclient.go
pkg/types/timeduration.go
pkg/ingress/controller/ingress.go
... and 32 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 8277995...11f81d1. Read the comment docs.

@tokers tokers requested a review from gxthrj March 29, 2021 10:16
@tokers tokers changed the title test: add e2e test cases for redirect and fault-injection plugins test: add e2e test cases for redirect, uri-blocker and fault-injection plugins Mar 31, 2021
@@ -174,7 +174,7 @@ type ApisixRouteHTTPPlugin struct {
Enable bool `json:"enable" yaml:"enable"`
// Plugin configuration.
// TODO we may use protobuf to define it.
Config ApisixRouteHTTPPluginConfig
Config ApisixRouteHTTPPluginConfig `json:"config" yaml:"enable"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Config ApisixRouteHTTPPluginConfig `json:"config" yaml:"enable"`
Config ApisixRouteHTTPPluginConfig `json:"config" yaml:"config"`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@gxthrj gxthrj merged commit 06e2b35 into apache:master Apr 1, 2021
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.

None yet

3 participants