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

Adding tests debugging dir and subdir names #44

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

Commits on Sep 8, 2024

  1. Adding extra tests

    Signed-off-by: Adam Pietrzycki <[email protected]>
    adampie committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    d250c08 View commit details
    Browse the repository at this point in the history
  2. Fix test

    Signed-off-by: Adam Pietrzycki <[email protected]>
    adampie committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    3d8e269 View commit details
    Browse the repository at this point in the history
  3. 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]>
    adampie committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    9e9784e View commit details
    Browse the repository at this point in the history
  4. 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]>
    adampie committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    bcf922f View commit details
    Browse the repository at this point in the history
  5. 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]>
    adampie committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    156f413 View commit details
    Browse the repository at this point in the history