Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from DittrichLucas/test/rit-list-credential
Browse files Browse the repository at this point in the history
Test/rit list credential
  • Loading branch information
dittrichlucas authored Aug 17, 2020
2 parents 2b34599 + 8f787e0 commit eb15328
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 18 deletions.
15 changes: 13 additions & 2 deletions functional/core/core_feature.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@
"steps":[
{
"key":"",
"value":"list repo",
"value":"list",
"action":"main"
}
],
"result":"commons"
"result":"This command consists of multiple subcommands to interact with ritchie."
},
{
"entry":"List repo",
Expand All @@ -128,6 +128,17 @@
],
"result":"commons"
},
{
"entry":"List credential",
"steps":[
{
"key":"",
"value":"list credential",
"action":"main"
}
],
"result":"CONTEXT"
},
{
"entry":"Delete repo",
"steps":[
Expand Down
15 changes: 8 additions & 7 deletions functional/core/core_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,21 @@ var _ = Describe("RitCore", func() {
// Entry(scenariosCore[4].Entry, scenariosCore[4]),

Entry(scenariosCore[5].Entry, scenariosCore[5]),
Entry(scenariosCore[6].Entry, scenariosCore[6]),
// Entry(scenariosCore[7].Entry, scenariosCore[7]),

// Entry(scenariosCore[6].Entry, scenariosCore[6]),
Entry(scenariosCore[7].Entry, scenariosCore[7]),
// Entry(scenariosCore[8].Entry, scenariosCore[8]),
Entry(scenariosCore[9].Entry, scenariosCore[9]),
// Entry(scenariosCore[10].Entry, scenariosCore[10]),

Entry(scenariosCore[11].Entry, scenariosCore[11]),
// Entry(scenariosCore[9].Entry, scenariosCore[9]),
Entry(scenariosCore[10].Entry, scenariosCore[10]),
// Entry(scenariosCore[11].Entry, scenariosCore[11]),

Entry(scenariosCore[12].Entry, scenariosCore[12]),
Entry(scenariosCore[13].Entry, scenariosCore[13]),

Entry(scenariosCore[14].Entry, scenariosCore[14]),

Entry(scenariosCore[15].Entry, scenariosCore[15]),
Entry(scenariosCore[16].Entry, scenariosCore[16]),
Entry(scenariosCore[17].Entry, scenariosCore[17]),
Entry(scenariosCore[18].Entry, scenariosCore[18]),
)
})
15 changes: 6 additions & 9 deletions functional/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ import (
)

const (
rit = "rit"
rit = "rit"
windows = runtime.GOOS == "windows"
// initCmd = "init"
)

Expand All @@ -49,8 +50,7 @@ type Scenario struct {
func (scenario *Scenario) RunSteps() (string, error) {
fmt.Println("Running: " + scenario.Entry)

os := runtime.GOOS
if os == "windows" && len(scenario.Steps) >= 2 {
if windows && len(scenario.Steps) >= 2 {
ginkgo.Skip("Scenarios with multi steps for windows doesnt work")
return "", nil
} else {
Expand All @@ -61,8 +61,7 @@ func (scenario *Scenario) RunSteps() (string, error) {

func (scenario *Scenario) RunStdin() (string, error) {
fmt.Println("Running STDIN: " + scenario.Entry)
os := runtime.GOOS
if os == "windows" {
if windows {
b2, err := scenario.runStdinForWindows()
return b2.String(), err
} else {
Expand All @@ -73,8 +72,7 @@ func (scenario *Scenario) RunStdin() (string, error) {
}

func RitSingleInit() {
os := runtime.GOOS
if os == "windows" {
if windows {
setUpRitSingleWin()
} else {
setUpRitSingleUnix()
Expand All @@ -83,8 +81,7 @@ func RitSingleInit() {
}

func RitClearConfigs() {
os := runtime.GOOS
if os == "windows" {
if windows {
setUpClearSetupWindows()
} else {
setUpClearSetupUnix()
Expand Down

0 comments on commit eb15328

Please sign in to comment.