Skip to content

Commit

Permalink
rename matchers2
Browse files Browse the repository at this point in the history
  • Loading branch information
krrrr38 committed Jan 16, 2023
1 parent 88b9e7d commit 9b5ee89
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 55 deletions.
14 changes: 7 additions & 7 deletions server/events/project_command_builder_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/runatlantis/atlantis/server/core/config/valid"
"github.com/runatlantis/atlantis/server/core/terraform/mocks"
"github.com/runatlantis/atlantis/server/events/command"
matchers2 "github.com/runatlantis/atlantis/server/events/mocks/matchers"
eventsmatchers "github.com/runatlantis/atlantis/server/events/mocks/matchers"
"github.com/runatlantis/atlantis/server/events/models"
vcsmocks "github.com/runatlantis/atlantis/server/events/vcs/mocks"
"github.com/runatlantis/atlantis/server/logging"
Expand Down Expand Up @@ -613,9 +613,9 @@ projects:
})

workingDir := NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmp, false, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmp, false, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn([]string{"modules/module/main.tf"}, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn([]string{"modules/module/main.tf"}, nil)

// Write and parse the global config file.
globalCfgPath := filepath.Join(tmp, "global.yaml")
Expand Down Expand Up @@ -824,9 +824,9 @@ projects:
})

workingDir := NewMockWorkingDir()
When(workingDir.Clone(logging_matchers.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmp, false, nil)
When(workingDir.Clone(logging_matchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmp, false, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn([]string{"modules/module/main.tf"}, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn([]string{"modules/module/main.tf"}, nil)

// Write and parse the global config file.
globalCfgPath := filepath.Join(tmp, "global.yaml")
Expand Down Expand Up @@ -1057,9 +1057,9 @@ workflows:
})

workingDir := NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmp, false, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmp, false, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn([]string{"modules/module/main.tf"}, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn([]string{"modules/module/main.tf"}, nil)

// Write and parse the global config file.
globalCfgPath := filepath.Join(tmp, "global.yaml")
Expand Down
96 changes: 48 additions & 48 deletions server/events/project_command_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (

"github.com/hashicorp/go-version"
. "github.com/petergtz/pegomock"
terraform_mocks "github.com/runatlantis/atlantis/server/core/terraform/mocks"
matchers2 "github.com/runatlantis/atlantis/server/events/mocks/matchers"

"github.com/runatlantis/atlantis/server/core/config"
"github.com/runatlantis/atlantis/server/core/config/valid"
terraform_mocks "github.com/runatlantis/atlantis/server/core/terraform/mocks"
"github.com/runatlantis/atlantis/server/events"
"github.com/runatlantis/atlantis/server/events/command"
"github.com/runatlantis/atlantis/server/events/mocks"
eventsmatchers "github.com/runatlantis/atlantis/server/events/mocks/matchers"
"github.com/runatlantis/atlantis/server/events/models"
vcsmocks "github.com/runatlantis/atlantis/server/events/vcs/mocks"
"github.com/runatlantis/atlantis/server/logging"
Expand Down Expand Up @@ -125,7 +125,7 @@ projects:
scope, _, _ := metrics.NewLoggingScope(logger, "atlantis")

terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

for _, c := range cases {
t.Run(c.Description, func(t *testing.T) {
Expand All @@ -135,9 +135,9 @@ projects:
})

workingDir := mocks.NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)
if c.AtlantisYAML != "" {
err := os.WriteFile(filepath.Join(tmpDir, valid.DefaultAtlantisFile), []byte(c.AtlantisYAML), 0600)
Ok(t, err)
Expand Down Expand Up @@ -404,10 +404,10 @@ projects:
})

workingDir := mocks.NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)
if c.AtlantisYAML != "" {
err := os.WriteFile(filepath.Join(tmpDir, valid.DefaultAtlantisFile), []byte(c.AtlantisYAML), 0600)
Ok(t, err)
Expand All @@ -421,7 +421,7 @@ projects:
}

terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down Expand Up @@ -581,10 +581,10 @@ projects:
tmpDir := DirStructure(t, c.DirectoryStructure)

workingDir := mocks.NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn(c.ModifiedFiles, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn(c.ModifiedFiles, nil)
if c.AtlantisYAML != "" {
err := os.WriteFile(filepath.Join(tmpDir, valid.DefaultAtlantisFile), []byte(c.AtlantisYAML), 0600)
Ok(t, err)
Expand All @@ -598,7 +598,7 @@ projects:
}

terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down Expand Up @@ -766,10 +766,10 @@ projects:
tmpDir := DirStructure(t, c.DirStructure)

workingDir := mocks.NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn(c.ModifiedFiles, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn(c.ModifiedFiles, nil)
if c.AtlantisYAML != "" {
err := os.WriteFile(filepath.Join(tmpDir, valid.DefaultAtlantisFile), []byte(c.AtlantisYAML), 0600)
Ok(t, err)
Expand All @@ -783,7 +783,7 @@ projects:
}

terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down Expand Up @@ -866,8 +866,8 @@ func TestDefaultProjectCommandBuilder_BuildMultiApply(t *testing.T) {

workingDir := mocks.NewMockWorkingDir()
When(workingDir.GetPullDir(
matchers2.AnyModelsRepo(),
matchers2.AnyModelsPullRequest())).
eventsmatchers.AnyModelsRepo(),
eventsmatchers.AnyModelsPullRequest())).
ThenReturn(tmpDir, nil)

logger := logging.NewNoopLogger(t)
Expand All @@ -881,7 +881,7 @@ func TestDefaultProjectCommandBuilder_BuildMultiApply(t *testing.T) {
scope, _, _ := metrics.NewLoggingScope(logger, "atlantis")

terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down Expand Up @@ -952,13 +952,13 @@ projects:
Ok(t, err)

When(workingDir.Clone(
matchers2.AnyLoggingSimpleLogging(),
matchers2.AnyModelsRepo(),
matchers2.AnyModelsPullRequest(),
eventsmatchers.AnyLoggingSimpleLogging(),
eventsmatchers.AnyModelsRepo(),
eventsmatchers.AnyModelsPullRequest(),
AnyString())).ThenReturn(repoDir, false, nil)
When(workingDir.GetWorkingDir(
matchers2.AnyModelsRepo(),
matchers2.AnyModelsPullRequest(),
eventsmatchers.AnyModelsRepo(),
eventsmatchers.AnyModelsPullRequest(),
AnyString())).ThenReturn(repoDir, nil)

globalCfgArgs := valid.GlobalCfgArgs{
Expand All @@ -970,7 +970,7 @@ projects:
logger := logging.NewNoopLogger(t)
scope, _, _ := metrics.NewLoggingScope(logger, "atlantis")
terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down Expand Up @@ -1041,10 +1041,10 @@ func TestDefaultProjectCommandBuilder_EscapeArgs(t *testing.T) {
})

workingDir := mocks.NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.GetWorkingDir(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)

globalCfgArgs := valid.GlobalCfgArgs{
AllowRepoCfg: true,
Expand All @@ -1054,7 +1054,7 @@ func TestDefaultProjectCommandBuilder_EscapeArgs(t *testing.T) {
}

terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down Expand Up @@ -1190,18 +1190,18 @@ projects:
tmpDir := DirStructure(t, testCase.DirStructure)

vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn(testCase.ModifiedFiles, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn(testCase.ModifiedFiles, nil)

workingDir := mocks.NewMockWorkingDir()
When(workingDir.Clone(
matchers2.AnyLoggingSimpleLogging(),
matchers2.AnyModelsRepo(),
matchers2.AnyModelsPullRequest(),
eventsmatchers.AnyLoggingSimpleLogging(),
eventsmatchers.AnyModelsRepo(),
eventsmatchers.AnyModelsPullRequest(),
AnyString())).ThenReturn(tmpDir, false, nil)

When(workingDir.GetWorkingDir(
matchers2.AnyModelsRepo(),
matchers2.AnyModelsPullRequest(),
eventsmatchers.AnyModelsRepo(),
eventsmatchers.AnyModelsPullRequest(),
AnyString())).ThenReturn(tmpDir, nil)

globalCfgArgs := valid.GlobalCfgArgs{
Expand All @@ -1212,7 +1212,7 @@ projects:
}

terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.DetectVersion(matchers2.AnyLoggingSimpleLogging(), AnyString())).Then(func(params []Param) ReturnValues {
When(terraformClient.DetectVersion(eventsmatchers.AnyLoggingSimpleLogging(), AnyString())).Then(func(params []Param) ReturnValues {
projectName := filepath.Base(params[1].(string))
testVersion := testCase.Exp[projectName]
if testVersion != "" {
Expand Down Expand Up @@ -1298,9 +1298,9 @@ parallel_plan: true`,
for _, c := range cases {
RegisterMockTestingT(t)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn(c.ModifiedFiles, nil)
When(vcsClient.SupportsSingleFileDownload(matchers2.AnyModelsRepo())).ThenReturn(true)
When(vcsClient.GetFileContent(matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(true, []byte(c.AtlantisYAML), nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn(c.ModifiedFiles, nil)
When(vcsClient.SupportsSingleFileDownload(eventsmatchers.AnyModelsRepo())).ThenReturn(true)
When(vcsClient.GetFileContent(eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(true, []byte(c.AtlantisYAML), nil)
workingDir := mocks.NewMockWorkingDir()

logger := logging.NewNoopLogger(t)
Expand All @@ -1313,7 +1313,7 @@ parallel_plan: true`,
}
scope, _, _ := metrics.NewLoggingScope(logger, "atlantis")
terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down Expand Up @@ -1349,7 +1349,7 @@ parallel_plan: true`,
})
Ok(t, err)
Equals(t, c.ExpectedCtxs, len(actCtxs))
workingDir.VerifyWasCalled(c.ExpectedClones).Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())
workingDir.VerifyWasCalled(c.ExpectedClones).Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())
}
}

Expand All @@ -1363,9 +1363,9 @@ func TestDefaultProjectCommandBuilder_WithPolicyCheckEnabled_BuildAutoplanComman
scope, _, _ := metrics.NewLoggingScope(logger, "atlantis")

workingDir := mocks.NewMockWorkingDir()
When(workingDir.Clone(matchers2.AnyLoggingSimpleLogging(), matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
When(workingDir.Clone(eventsmatchers.AnyLoggingSimpleLogging(), eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest(), AnyString())).ThenReturn(tmpDir, false, nil)
vcsClient := vcsmocks.NewMockClient()
When(vcsClient.GetModifiedFiles(matchers2.AnyModelsRepo(), matchers2.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)
When(vcsClient.GetModifiedFiles(eventsmatchers.AnyModelsRepo(), eventsmatchers.AnyModelsPullRequest())).ThenReturn([]string{"main.tf"}, nil)

globalCfgArgs := valid.GlobalCfgArgs{
AllowRepoCfg: false,
Expand All @@ -1376,7 +1376,7 @@ func TestDefaultProjectCommandBuilder_WithPolicyCheckEnabled_BuildAutoplanComman

globalCfg := valid.NewGlobalCfgFromArgs(globalCfgArgs)
terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
true,
Expand Down Expand Up @@ -1448,8 +1448,8 @@ func TestDefaultProjectCommandBuilder_BuildVersionCommand(t *testing.T) {

workingDir := mocks.NewMockWorkingDir()
When(workingDir.GetPullDir(
matchers2.AnyModelsRepo(),
matchers2.AnyModelsPullRequest())).
eventsmatchers.AnyModelsRepo(),
eventsmatchers.AnyModelsPullRequest())).
ThenReturn(tmpDir, nil)

logger := logging.NewNoopLogger(t)
Expand All @@ -1462,7 +1462,7 @@ func TestDefaultProjectCommandBuilder_BuildVersionCommand(t *testing.T) {
UnDivergedReq: false,
}
terraformClient := terraform_mocks.NewMockClient()
When(terraformClient.ListAvailableVersions(matchers2.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)
When(terraformClient.ListAvailableVersions(eventsmatchers.AnyLoggingSimpleLogging())).ThenReturn([]string{}, nil)

builder := events.NewProjectCommandBuilder(
false,
Expand Down

0 comments on commit 9b5ee89

Please sign in to comment.