Skip to content

Commit

Permalink
test: fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Feb 27, 2024
1 parent f4d25c8 commit 41eb447
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package test_engine

import (
"fmt"
"testing"

"github.com/kurtosis-tech/kurtosis/core/server/api_container/server/startosis_engine/kurtosis_starlark_framework/builtin_argument"
"github.com/kurtosis-tech/kurtosis/core/server/api_container/server/startosis_engine/kurtosis_types/service_config"
"github.com/kurtosis-tech/kurtosis/core/server/api_container/server/startosis_engine/startosis_packages"
"github.com/stretchr/testify/require"
"testing"
)

type imageBuildSpecTest struct {
Expand All @@ -33,12 +34,14 @@ func (suite *KurtosisTypeConstructorTestSuite) TestImageBuildSpecTest() {
}

func (t *imageBuildSpecTest) GetStarlarkCode() string {
return fmt.Sprintf("%s(%s=%q, %s=%q, %s=%q)",
return fmt.Sprintf("%s(%s=%q, %s=%q, %s=%q, %s=%q)",
service_config.ImageBuildSpecTypeName,
service_config.BuiltImageNameAttr,
testContainerImageName,
service_config.BuildContextAttr,
testBuildContextDir,
service_config.BuildFileAttr,
testBuildFile,
service_config.TargetStageAttr,
testTargetStage)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ func (suite *KurtosisTypeConstructorTestSuite) TestServiceConfigWithImageBuildSp
}

func (t *serviceConfigImageBuildSpecTestCase) GetStarlarkCode() string {
imageBuildSpec := fmt.Sprintf("%s(%s=%q, %s=%q, %s=%q)",
imageBuildSpec := fmt.Sprintf("%s(%s=%q, %s=%q, %s=%q, %s=%q)",
service_config.ImageBuildSpecTypeName,
service_config.BuiltImageNameAttr,
testContainerImageName,
service_config.BuildContextAttr,
testBuildContextDir,
service_config.BuildFileAttr,
testBuildFile,
service_config.TargetStageAttr,
testTargetStage)
return fmt.Sprintf("%s(%s=%s)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var (

testContainerImageName = "kurtosistech/example-datastore-server"
testBuildContextDir = "./"
testBuildFile = ""
testTargetStage = "builder"
testBuildContextLocator = testModulePackageId
testContainerImageLocator = "github.com/kurtosistech/test-package/Dockerfile"
Expand Down

0 comments on commit 41eb447

Please sign in to comment.