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

Add e2e test for cors annotations #171 #179

Merged
merged 2 commits into from
Feb 14, 2023

Conversation

Hinsteny
Copy link
Collaborator

@Hinsteny Hinsteny commented Feb 8, 2023

Ⅰ. Describe what this PR did

Add e2e test for cors annotations #171

Ⅱ. Does this pull request fix one issue?

NO

Ⅲ. Why don't you add test cases (unit test/integration test)?

this is a test PR

Ⅳ. Describe how to verify it

verify by make e2e test

Ⅴ. Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Feb 8, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

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

Thanks for picking this up @Hinsteny. Please refer to current higress supported cors annotations to cover them all.

nginx.ingress.kubernetes.io/enable-cors Ingress 兼容 开启或关闭跨域
nginx.ingress.kubernetes.io/cors-allow-origin Ingress 兼容 允许的第三方站点
nginx.ingress.kubernetes.io/cors-allow-methods Ingress 兼容 允许的请求方法,如GET、POST、PUT等
nginx.ingress.kubernetes.io/cors-allow-headers Ingress 兼容 允许的请求Header
nginx.ingress.kubernetes.io/cors-expose-headers Ingress 兼容 允许的暴露给浏览器的响应Header
nginx.ingress.kubernetes.io/cors-allow-credentials Ingress 兼容 是否允许携带凭证信息
nginx.ingress.kubernetes.io/cors-max-age Ingress 兼容 预检结果的最大缓存时间

@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2023

Codecov Report

Merging #179 (656d043) into main (cdcfe24) will decrease coverage by 0.03%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #179      +/-   ##
==========================================
- Coverage   42.41%   42.39%   -0.03%     
==========================================
  Files          29       29              
  Lines        4866     4866              
==========================================
- Hits         2064     2063       -1     
- Misses       2641     2642       +1     
  Partials      161      161              
Impacted Files Coverage Δ
pkg/bootstrap/server.go 62.59% <0.00%> (-0.39%) ⬇️

@Hinsteny Hinsteny force-pushed the test/e2e_test_for_enablt_cors branch from 65136ee to fcf089c Compare February 9, 2023 13:26
@Xunzhuo
Copy link
Collaborator

Xunzhuo commented Feb 10, 2023

Thanks @Hinsteny, ping me when you are ready for review.

@Hinsteny Hinsteny force-pushed the test/e2e_test_for_enablt_cors branch from fcf089c to bb20386 Compare February 10, 2023 12:49
@Hinsteny
Copy link
Collaborator Author

@Xunzhuo Please help to Review it again

@Hinsteny Hinsteny force-pushed the test/e2e_test_for_enablt_cors branch from bb20386 to 349eec7 Compare February 10, 2023 12:53
Copy link
Collaborator

@Xunzhuo Xunzhuo left a comment

Choose a reason for hiding this comment

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

Generally LGTM, thank you @Hinsteny !

@Xunzhuo Xunzhuo merged commit 6efa393 into alibaba:main Feb 14, 2023
@Hinsteny Hinsteny deleted the test/e2e_test_for_enablt_cors branch February 14, 2023 09:36
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

4 participants