Skip to content

fix(e2e): skip ValidateScriptlessPhase3 when CustomCATrustCerts is set#9013

Closed
mxj220 wants to merge 1 commit into
mainfrom
fix-scriptless-phase3-cacerts-skip
Closed

fix(e2e): skip ValidateScriptlessPhase3 when CustomCATrustCerts is set#9013
mxj220 wants to merge 1 commit into
mainfrom
fix-scriptless-phase3-cacerts-skip

Conversation

@mxj220

@mxj220 mxj220 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
skip ValidateScriptlessPhase3 when CustomCATrustCerts is set

PR #8995 added this skip to the sibling ValidateScriptlessNBCCSECmd but
missed ValidateScriptlessPhase3, causing Test_Ubuntu2204 and
Test_AzureLinuxV3 (both set CustomCATrustCerts) to fail

Which issue(s) this PR fixes:

Fixes #

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the e2e validation suite to skip ValidateScriptlessPhase3 when CustomCATrustCerts are configured, aligning behavior with the existing skip in ValidateScriptlessNBCCSECmd and preventing failures in scenarios that set custom CA trust.

Changes:

  • Add a guard to ValidateScriptlessPhase3 to skip the env-var diff validation when CustomCATrustCerts are present.
  • Refactor the condition to use a local nbc := s.Runtime.NBC for readability.

Comment thread e2e/validators.go
Comment on lines +2773 to +2775
nbc := s.Runtime.NBC
if s.Runtime.AKSNodeConfig != nil && nbc.EnableScriptlessNBCCSECmd &&
(nbc.CustomCATrustConfig == nil || len(nbc.CustomCATrustConfig.CustomCATrustCerts) == 0) {
@mxj220 mxj220 closed this Jul 22, 2026
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.

3 participants