Skip to content

test: add test for unavailableofferings checking instanceType on cp.List#1538

Merged
matthchr merged 1 commit intoAzure:mainfrom
matthchr:matthchr/add-test
Mar 16, 2026
Merged

test: add test for unavailableofferings checking instanceType on cp.List#1538
matthchr merged 1 commit intoAzure:mainfrom
matthchr:matthchr/add-test

Conversation

@matthchr
Copy link
Copy Markdown
Member

How was this change tested?

  • Unit test

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note


Copy link
Copy Markdown
Collaborator

@MaximilianoUribe MaximilianoUribe left a comment

Choose a reason for hiding this comment

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

lgtm, was this a bug or an issue?

@matthchr
Copy link
Copy Markdown
Member Author

No but I thought there was one so I added this test, which showed it was actually fine. The case is interesting though (sku that has since been offering restricted) so figured it was worth keeping the test regardless for regression reasons.

@matthchr matthchr merged commit 0cf17f6 into Azure:main Mar 16, 2026
15 checks passed
@matthchr matthchr deleted the matthchr/add-test branch March 16, 2026 21:23
Comment thread pkg/controllers/nodeclass/hash/suite_test.go
comtalyst added a commit that referenced this pull request Mar 23, 2026
Remove tests and assertions that were invalidated by recently merged PRs
but survived the rebase because the conflict resolution didn't catch them:

- Remove 7 stale GC tests referencing creationtimestamp tag deleted by
  #1468 (MachineStatus migration). These tests called the non-existent
  instance.AKSMachineTimestampToTag function, causing compile failure.
- Remove duplicate E2E tests from instancetype/suite_test.go (Zone-aware,
  CloudProvider Create Error Cases, Unavailable Offerings) that are
  already covered by shared tests in cloudprovider/suite_offerings_test.go.
  These duplicates referenced the removed nodePool variable.
- Add missing Azure test/expectations dot-import to suite_test.go for
  ExpectProvisionedAndWaitForPromises (used by test added in #1538).
- Remove stale creationtimestamp tag assertion from suite_features_test.go
  (tag removed by #1468).
- Restore ScaleSetPrioritySpot assertion from #1546 (allocationstrategy
  provider) by adding priority field to creationResult struct, preserving
  the test's intention in the reunified framework.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
comtalyst added a commit that referenced this pull request Mar 28, 2026
Remove tests and assertions that were invalidated by recently merged PRs
but survived the rebase because the conflict resolution didn't catch them:

- Remove 7 stale GC tests referencing creationtimestamp tag deleted by
  #1468 (MachineStatus migration). These tests called the non-existent
  instance.AKSMachineTimestampToTag function, causing compile failure.
- Remove duplicate E2E tests from instancetype/suite_test.go (Zone-aware,
  CloudProvider Create Error Cases, Unavailable Offerings) that are
  already covered by shared tests in cloudprovider/suite_offerings_test.go.
  These duplicates referenced the removed nodePool variable.
- Add missing Azure test/expectations dot-import to suite_test.go for
  ExpectProvisionedAndWaitForPromises (used by test added in #1538).
- Remove stale creationtimestamp tag assertion from suite_features_test.go
  (tag removed by #1468).
- Restore ScaleSetPrioritySpot assertion from #1546 (allocationstrategy
  provider) by adding priority field to creationResult struct, preserving
  the test's intention in the reunified framework.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
comtalyst added a commit that referenced this pull request Mar 31, 2026
Remove tests and assertions that were invalidated by recently merged PRs
but survived the rebase because the conflict resolution didn't catch them:

- Remove 7 stale GC tests referencing creationtimestamp tag deleted by
  #1468 (MachineStatus migration). These tests called the non-existent
  instance.AKSMachineTimestampToTag function, causing compile failure.
- Remove duplicate E2E tests from instancetype/suite_test.go (Zone-aware,
  CloudProvider Create Error Cases, Unavailable Offerings) that are
  already covered by shared tests in cloudprovider/suite_offerings_test.go.
  These duplicates referenced the removed nodePool variable.
- Add missing Azure test/expectations dot-import to suite_test.go for
  ExpectProvisionedAndWaitForPromises (used by test added in #1538).
- Remove stale creationtimestamp tag assertion from suite_features_test.go
  (tag removed by #1468).
- Restore ScaleSetPrioritySpot assertion from #1546 (allocationstrategy
  provider) by adding priority field to creationResult struct, preserving
  the test's intention in the reunified framework.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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