cluster-api-provider-azure icon indicating copy to clipboard operation
cluster-api-provider-azure copied to clipboard

Add unit tests for AzureManagedMachinePool controller

Open KushalBeniwal opened this issue 3 years ago • 5 comments

What type of PR is this?

/kind feature

What this PR does / why we need it:

The file exp/controllers/azuremanagedmachinepool_controller.go does not have corresponding unit tests, but should because AMMPs are in use.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged): Fixes #2078

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • [ ] squashed commits
  • [ ] add tests

Release note:

NONE

KushalBeniwal avatar Oct 05 '22 09:10 KushalBeniwal

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign sbueringer for approval by writing /assign @sbueringer in a comment. For more information see:The Kubernetes Code Review Process.

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

Needs approval from an approver in each of these files:

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

k8s-ci-robot avatar Oct 05 '22 09:10 k8s-ci-robot

Hi @KushalBeniwal. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Oct 05 '22 09:10 k8s-ci-robot

/ok-to-test

mboersma avatar Oct 05 '22 15:10 mboersma

/retest

KushalBeniwal avatar Oct 08 '22 07:10 KushalBeniwal

@KushalBeniwal: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-e2e-exp 090afe0b1332a55eaaca6871588bc564bc2f38cb link false /test pull-cluster-api-provider-azure-e2e-exp

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

k8s-ci-robot avatar Oct 08 '22 07:10 k8s-ci-robot

Hi @KushalBeniwal, what's the status of this PR?

CecileRobertMichon avatar Nov 08 '22 22:11 CecileRobertMichon

Hi @CecileRobertMichon, apologies but I won't be able to continue with this PR. Please feel free to open the issue for anyone new to take.

KushalBeniwal avatar Nov 13 '22 12:11 KushalBeniwal