aws / aws/eks-anywhere

Improve cloudstack provider tests with validator mocks

Open
#3,944 0 comments 0 reactions 0 assignees View on GitHub
area/providers/capc team/providers
Dominant language
Go
Stars
2.1k
Forks
328
Avg merge
1d 4h
Merged PRs (30d)
9

Description

**What would you like to be added**:
Currently, the cloudstack provider tests rely on wildcard dependencies to keep the test initialization light and simple. However, this reduces the coverage of the tests.

**Why is this needed**:
We should refactor the provider tests so that we can assert on dependency calls more easily instead of using wildcard dependencies.

Contributor guide

Open the contributing guide

Research direction

Start by locating the CloudStack provider tests and the wildcard dependencies used during test initialization, then run the existing provider test suite. Replace the wildcard setup with validator mocks so dependency calls can be asserted; done means the tests retain their coverage while verifying those calls explicitly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
infrastructure, testing-qa
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.