Skip to content

Commit

Permalink
Change the filepaths based on GOOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Nov 3, 2023
1 parent 7bcd00d commit 9ebb402
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions src/test/e2e/09_component_compose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"fmt"
"os"
"path/filepath"
"runtime"
"testing"

"github.com/stretchr/testify/require"
Expand Down Expand Up @@ -55,14 +56,25 @@ func (suite *CompositionSuite) Test_0_ComposabilityExample() {
suite.NoError(err)

// Ensure that common names merge
suite.Contains(stdErr, `
manifests:
- name: multi-games
namespace: dos-games
files:
- ../dos-games/manifests/deployment.yaml
- ../dos-games/manifests/service.yaml
- quake-service.yaml`)
if runtime.GOOS == "windows" {
suite.Contains(stdErr, `
manifests:
- name: multi-games
namespace: dos-games
files:
- "..\\dos-games\\manifests\\deployment.yaml"
- "..\\dos-games\\manifests\\service.yaml"
- quake-service.yaml`)
} else {
suite.Contains(stdErr, `
manifests:
- name: multi-games
namespace: dos-games
files:
- ../dos-games/manifests/deployment.yaml
- ../dos-games/manifests/service.yaml
- quake-service.yaml`)
}

// Ensure that the action was appended
suite.Contains(stdErr, `
Expand Down

0 comments on commit 9ebb402

Please sign in to comment.