aws / aws/eks-anywhere

Make test files dynamic for unit tests

Open
#164 0 comments 0 reactions 0 assignees View on GitHub
area/testing kind/enhancement priority/p1 status/notstarted team/cli
Dominant language
Go
Stars
2.1k
Forks
328
Avg merge
1d 4h
Merged PRs (30d)
9

Description

Currently they are a lot of test files we maintain for our unit tests (for example https://github.com/aws/eks-anywhere/tree/main/pkg/api/v1alpha1/testdata) which makes it inconvenient to change them all based on few spec changes. Having one common file that can be modified based on the test case using similar logic for our E2E tests can make it easier to maintain.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the unit-test fixtures under pkg/api/v1alpha1/testdata and the existing E2E test logic referenced in the issue. Determine how a shared file can be modified per test case, then confirm that the unit tests pass while avoiding duplicated fixture updates after spec changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.