Skip to content

Commit

Permalink
Removed old config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Feb 22, 2025
1 parent 6ec61ba commit bd0123a
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions config/configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,27 +143,3 @@ func TestSplitMultipleHostWithMultipleConfigs(t *testing.T) {
})
}
}

func TestWrongNumberOfApiTokenParams(t *testing.T) {
assert := assert.New(t)

env := getDefaultEnvConfig()
env.PIHoleHostname = []string{"127.0.0.1", "127.0.0.2", "127.0.0.3"}
env.PIHolePort = []uint16{808}

clientConfigs, err := env.Split()
assert.Errorf(err, "Wrong number of PIHoleApiToken. PIHoleApiToken can be empty to use default, one value to use for all hosts, or match the number of hosts")
assert.Nil(clientConfigs)
}

func TestWrongNumberOfAdminContextParams(t *testing.T) {
assert := assert.New(t)

env := getDefaultEnvConfig()
env.PIHoleHostname = []string{"127.0.0.1", "127.0.0.2", "127.0.0.3"}
env.PIHolePort = []uint16{808}

clientConfigs, err := env.Split()
assert.Errorf(err, "Wrong number of PIHoleAdminContext. PIHoleAdminContext can be empty to use default, one value to use for all hosts, or match the number of hosts")
assert.Nil(clientConfigs)
}

0 comments on commit bd0123a

Please sign in to comment.