Skip to content

Commit

Permalink
Remove SaaS Test Tool verification from mpdev (#83)
Browse files Browse the repository at this point in the history
* Revert "Rename to SaaS Test Tool and added README (#54)"

This reverts commit 40e4302, as part of
the effort to remove SaaS Test Tool verification from mpdev based on
feedback.

* Revert "Aa/integrate saas billing metering (#53)"

This reverts commit a2bf9cb, as part of
the effort to remove SaaS Test Tool verification from mpdev based on
feedback.

* Revert "Added sample SaaS template file (#52)"

This reverts commit e069fec, as part of
the effort to remove SaaS Test Tool verification from mpdev based on
feedback.

* Revert "Add SaasListing as a resource type. (#51)"

This reverts commit 42691b9, as part of
the effort to remove SaaS Test Tool verification from mpdev.
  • Loading branch information
dexterchiu committed Mar 13, 2024
1 parent 64a212f commit a77a567
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 741 deletions.
387 changes: 0 additions & 387 deletions examples/saas-template/partner-integration/README.md

This file was deleted.

41 changes: 0 additions & 41 deletions examples/saas-template/partner-integration/config.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions mpdev/internal/resources/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ go_library(
"image.go",
"registry.go",
"resource.go",
"saas_listing.go",
"types.go",
],
importpath = "github.com/GoogleCloudPlatform/marketplace-tools/mpdev/internal/resources",
Expand All @@ -30,7 +29,6 @@ go_test(
"deployment_manager_test.go",
"registry_test.go",
"resource_test.go",
"saas_listing_test.go",
],
embed = [":go_default_library"],
deps = [
Expand Down
5 changes: 1 addition & 4 deletions mpdev/internal/resources/container_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,15 @@ import (

type containerProcess struct {
executor exec.Interface
dockerArgs []string
containerImage string
processArgs []string
mounts []mount
}

// newContainerProcess constructs a command to execute the container process
func newContainerProcess(executor exec.Interface, dockerArgs []string, containerImage string, processArgs []string, mounts []mount) *containerProcess {
func newContainerProcess(executor exec.Interface, containerImage string, processArgs []string, mounts []mount) *containerProcess {
return &containerProcess{
executor: executor,
dockerArgs: dockerArgs,
containerImage: containerImage,
processArgs: processArgs,
mounts: mounts,
Expand All @@ -56,7 +54,6 @@ func (cp *containerProcess) getCommand() exec.Cmd {
for _, mount := range cp.mounts {
args = append(args, "--mount", mount.getMount())
}
args = append(args, cp.dockerArgs...)
args = append(args, cp.containerImage)
args = append(args, cp.processArgs...)
return cp.executor.Command(args[0], args[1:]...)
Expand Down
1 change: 0 additions & 1 deletion mpdev/internal/resources/deployment_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ func (dm *DeploymentManagerAutogenTemplate) runAutogen(registry Registry, inputD

cp := newContainerProcess(
registry.GetExecutor(),
[]string{},
autogenImg,
args,
[]mount{
Expand Down
195 changes: 0 additions & 195 deletions mpdev/internal/resources/saas_listing.go

This file was deleted.

Loading

0 comments on commit a77a567

Please sign in to comment.