Skip to content

Commit

Permalink
test(e2e): remove ingress type flag from copilot init (#4143)
Browse files Browse the repository at this point in the history
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
  • Loading branch information
dannyrandall authored Nov 1, 2022
1 parent 4f0c876 commit 31385c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion e2e/apprunner/apprunner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ var _ = Describe("App Runner", func() {
WorkloadType: "Request-Driven Web Service",
Deploy: true,
SvcPort: "80",
IngressType: "Internet",
})
})

Expand Down
9 changes: 1 addition & 8 deletions e2e/internal/client/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type InitRequest struct {
WorkloadType string
SvcPort string
Schedule string
IngressType string
}

// EnvInitRequest contains the parameters for calling copilot env init.
Expand Down Expand Up @@ -304,13 +303,11 @@ copilot init
--deploy (optionally)
--schedule $schedule (optionally)
--port $port (optionally)
--ingress-type $type (optionally)
*/
func (cli *CLI) Init(opts *InitRequest) (string, error) {
var deployOption string
var scheduleOption string
var portOption string
var ingressTypeOption string

if opts.Deploy {
deployOption = "--deploy"
Expand All @@ -321,9 +318,6 @@ func (cli *CLI) Init(opts *InitRequest) (string, error) {
if opts.SvcPort != "" {
portOption = "--port"
}
if opts.IngressType != "" {
ingressTypeOption = "--ingress-type"
}

return cli.exec(
exec.Command(cli.path, "init",
Expand All @@ -334,8 +328,7 @@ func (cli *CLI) Init(opts *InitRequest) (string, error) {
"--dockerfile", opts.Dockerfile,
deployOption,
scheduleOption, opts.Schedule,
portOption, opts.SvcPort,
ingressTypeOption, opts.IngressType))
portOption, opts.SvcPort))
}

/*
Expand Down

0 comments on commit 31385c0

Please sign in to comment.