Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Edit repository address for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bozd4g committed Jun 6, 2020
1 parent 40554c4 commit 050f42b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/run_command_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestRunCommand_WhenRunsWithEmptyArgs_ReturnsOutput(t *testing.T) {

func TestRunCommand_WhenRunsWithCorrectCloneAddressButWrongArgs_ReturnsOutput(t *testing.T) {
addCmd := exec.Command("go", "run", "../main.go", "add",
"--cloneAddress", "https://github.com/Trendyol/four-key.git",
"--cloneAddress", "https://github.com/Trendyol/medusa.git",
"--team", "trendyol-team",
"--releaseTagPattern", "release-v",
"--fixCommitPatterns", "fix", "-f", "hotfix")
Expand All @@ -39,7 +39,7 @@ func TestRunCommand_WhenRunsWithCorrectCloneAddressButWrongArgs_ReturnsOutput(t
}

runCmd := exec.Command("go", "run", "../main.go", "run",
"--repository", "four-key",
"--repository", "medusa",
"--startDate", "",
"--endDate", "")

Expand All @@ -49,7 +49,7 @@ func TestRunCommand_WhenRunsWithCorrectCloneAddressButWrongArgs_ReturnsOutput(t
}

removeCmd := exec.Command("go", "run", "../main.go", "remove",
"--repository", "four-key")
"--repository", "medusa")

_, err = removeCmd.Output()
if err != nil {
Expand All @@ -65,9 +65,9 @@ func TestRunCommand_WhenRunsWithCorrectCloneAddressButWrongArgs_ReturnsOutput(t

func TestRunCommand_WhenRunsWithCorrectArgs_ReturnsOutput(t *testing.T) {
addCmd := exec.Command("go", "run", "../main.go", "add",
"--cloneAddress", "https://github.com/Trendyol/four-key.git",
"--cloneAddress", "https://github.com/Trendyol/android-ui-components.git",
"--team", "trendyol-team",
"--releaseTagPattern", "release-v",
"--releaseTagPattern", "toolbar-",
"--fixCommitPatterns", "fix", "-f", "hotfix")

_, err := addCmd.Output()
Expand All @@ -76,7 +76,7 @@ func TestRunCommand_WhenRunsWithCorrectArgs_ReturnsOutput(t *testing.T) {
}

runCmd := exec.Command("go", "run", "../main.go", "run",
"--repository", "four-key",
"--repository", "android-ui-components",
"--startDate", "2019-01-01",
"--endDate", "2020-12-31")

Expand All @@ -86,7 +86,7 @@ func TestRunCommand_WhenRunsWithCorrectArgs_ReturnsOutput(t *testing.T) {
}

removeCmd := exec.Command("go", "run", "../main.go", "remove",
"--repository", "four-key")
"--repository", "medusa")

_, err = removeCmd.Output()
if err != nil {
Expand Down

0 comments on commit 050f42b

Please sign in to comment.