Skip to content

Commit dc1d162

Browse files
Eric Promislowstaylor14
Eric Promislow
andcommitted
Random-route/hostname conflict: test the command-line settings merger
- `--hostname` should override `random-route=true` in a manifest. [finishes #170197643] Co-authored-by: Eric Promislow <[email protected]> Co-authored-by: Steve Taylor <[email protected]>
1 parent d07795e commit dc1d162

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

actor/pushaction/command_line_settings_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ var _ = Describe("CommandLineSettings", func() {
226226
manifest.Application{RandomRoute: true},
227227
manifest.Application{RandomRoute: true},
228228
),
229+
Entry("hostname overrides random route",
230+
CommandLineSettings{DefaultRouteHostname: "scott's merchandise"},
231+
manifest.Application{RandomRoute: true},
232+
manifest.Application{Hostname: "scott's merchandise", RandomRoute: false},
233+
),
229234
Entry("overrides route path",
230235
CommandLineSettings{RoutePath: "/some-route-path"},
231236
manifest.Application{},

0 commit comments

Comments
 (0)