File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -364,25 +364,6 @@ func TestDetectPowerDNSAppConfigPathCmdLineError(t *testing.T) {
364364 require .Nil (t , configPath )
365365}
366366
367- // Test that an error is returned when getting a process current working directory fails.
368- func TestDetectPowerDNSAppConfigPathCwdError (t * testing.T ) {
369- ctrl := gomock .NewController (t )
370- defer ctrl .Finish ()
371-
372- process := NewMockSupportedProcess (ctrl )
373- process .EXPECT ().getCmdline ().Return ("/dir/pdns_server --config-name=custom" , nil )
374-
375- executor := NewMockCommandExecutor (ctrl )
376- executor .EXPECT ().IsFileExist (gomock .Any ()).DoAndReturn (func (path string ) bool {
377- return path == "/etc/powerdns/pdns-custom.conf"
378- })
379-
380- configPath , err := detectPowerDNSAppConfigPath (process , executor , "" )
381- require .NoError (t , err )
382- require .NotNil (t , configPath )
383- require .Equal (t , "/etc/powerdns/pdns-custom.conf" , * configPath )
384- }
385-
386367// Test instantiating and configuring the PowerDNS app using specified config path.
387368func TestConfigurePowerDNSApp (t * testing.T ) {
388369 ctrl := gomock .NewController (t )
You can’t perform that action at this time.
0 commit comments