mirror of https://github.com/helm/helm
Add ParseCreateOptions/ParseUpdateOptions helpers to pkg/kube so tests can inspect resolved option values without depending on unexported structs. FailingKubeClient records the last Create/Update options in RecordedCreateOptions and RecordedUpdateOptions. Update TestInstallRelease_DryRunServerValidation and TestUpgradeRelease_DryRunServerValidation to: - explicitly use TakeOwnership/ServerSideApply=true so the server dry-run path is actually exercised (previously the test accidentally passed because the ownership-check error also contained the string 'validation error') - assert RecordedUpdateOptions.DryRun is true for --dry-run=server and false for --dry-run=client, so removing the DryRun option from the call site would correctly break the test Signed-off-by: MrJack <36191829+biagiopietro@users.noreply.github.com>pull/31616/head
parent
9f1c738027
commit
67cc63ad26
Loading…
Reference in new issue