Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging duplicate dir and subdir names #44

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

adampie
Copy link
Member

@adampie adampie commented Sep 6, 2024

No description provided.

Signed-off-by: Adam Pietrzycki <[email protected]>
Signed-off-by: Adam Pietrzycki <[email protected]>
This commit eliminates unnecessary test cases for modified files, specifically removing references to "aws/workspaces/main.tf" and "gcp/workspaces/main.tf". This streamlines the test suite by ensuring it only focuses on the relevant "workspaces/main.tf" file.

Signed-off-by: Adam Pietrzycki <[email protected]>
Introduced unit tests for the workspaceForDir method in project_config_test.go to ensure accurate mapping of directories to TFC workspaces. Tests cover matching, non-matching, and similarly named subdirectory cases.

Signed-off-by: Adam Pietrzycki <[email protected]>
Introduce a series of unit tests to verify the functionality of the workspacesForTriggerDir method in the ProjectConfig class. Tests include scenarios with matching trigger directories, multiple workspaces, multiple trigger directories, and cases with no matching triggers.

Signed-off-by: Adam Pietrzycki <[email protected]>
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.

1 participant