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

chore: update TestDeployment #2721

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Conversation

zirain
Copy link
Member

@zirain zirain commented Feb 28, 2024

update TestDeployment, so the default test output became same as the real world

@zirain zirain requested a review from a team as a code owner February 28, 2024 05:34
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.34%. Comparing base (fa6b0d4) to head (e901f9e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2721      +/-   ##
==========================================
+ Coverage   63.29%   63.34%   +0.05%     
==========================================
  Files         123      123              
  Lines       19991    19991              
==========================================
+ Hits        12654    12664      +10     
+ Misses       6522     6514       -8     
+ Partials      815      813       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: zirain <[email protected]>
@@ -550,6 +544,15 @@ func TestDeployment(t *testing.T) {
})
}

if os.Getenv("UPDATE_TESTDATA") != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use this approach

go.testdata.complete: ## Override test ouputdata

Copy link
Member

@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.

Have you tested if these files will be updated, each time we ran make testdata

@zirain
Copy link
Member Author

zirain commented Feb 29, 2024

Have you tested if these files will be updated, each time we ran make testdata

yes

@Xunzhuo
Copy link
Member

Xunzhuo commented Feb 29, 2024

Thanks for confirming, I met this issue when I firstly add make testdata to eg.

@arkodg arkodg enabled auto-merge (squash) February 29, 2024 02:18
@arkodg arkodg disabled auto-merge February 29, 2024 02:18
@zirain zirain requested a review from Xunzhuo February 29, 2024 02:48
@zhaohuabing zhaohuabing merged commit f6ae81f into envoyproxy:main Feb 29, 2024
17 checks passed
@zirain zirain deleted the proxy-prometheus branch February 29, 2024 03: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.

4 participants