-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding tests debugging dir and subdir names (#44)
* Adding extra tests Signed-off-by: Adam Pietrzycki <[email protected]> * Fix test Signed-off-by: Adam Pietrzycki <[email protected]> * Remove redundant test cases from project_config_test.go 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]> * Add tests for workspaceForDir in project_config_test.go 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]> * Add unit tests for workspacesForTriggerDir function 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]> --------- Signed-off-by: Adam Pietrzycki <[email protected]>
- Loading branch information
Showing
1 changed file
with
301 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters