Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

fix: validate "basic" LB and fix related unit tests #3690

Merged
merged 1 commit into from Aug 12, 2020

Conversation

mboersma
Copy link
Member

Reason for Change:

Makes load balancer type validation agree that "basic" and "Basic" are both ok.

In making this trivial fix, I noticed there was already a test case that specified "basic", but that was passing. It turns out that set of tests was ignoring any err return, so I fixed that so the UT will actually prevent this behavior from regressing.

Issue Fixed:

Fixes #3661

Requirements:

Notes:

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #3690 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3690   +/-   ##
=======================================
  Coverage   73.14%   73.14%           
=======================================
  Files         147      147           
  Lines       25220    25220           
=======================================
  Hits        18448    18448           
  Misses       5638     5638           
  Partials     1134     1134           
Impacted Files Coverage Δ
pkg/api/vlabs/validate.go 79.66% <100.00%> (ø)

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 c273c51...ae13ac8. Read the comment docs.

Copy link
Member

@jackfrancis jackfrancis left a comment

Choose a reason for hiding this comment

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

/lgtm

thanks!

@acs-bot acs-bot added the lgtm label Aug 12, 2020
@jackfrancis jackfrancis merged commit de85183 into Azure:master Aug 12, 2020
@acs-bot
Copy link

acs-bot commented Aug 12, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jackfrancis, mboersma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [jackfrancis,mboersma]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mboersma mboersma deleted the fix-lbsku-case-validation branch August 12, 2020 18:21
penggu pushed a commit to penggu/aks-engine that referenced this pull request Oct 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation failure for enableVMSSNodePublicIP + Basic LB
3 participants