MCPcopy
hub / github.com/digitalocean/doctl / TestCDNsUpdateTTL_ZeroFail

Function TestCDNsUpdateTTL_ZeroFail

commands/cdns_test.go:191–199  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

189}
190
191func TestCDNsUpdateTTL_ZeroFail(t *testing.T) {
192 withTestClient(t, func(config *CmdConfig, tm *tcMocks) {
193 config.Args = append(config.Args, cdnID)
194 config.Doit.Set(config.NS, doctl.ArgCDNTTL, 0)
195
196 err := RunCDNUpdate(config)
197 assert.Error(t, err)
198 })
199}
200
201func TestCDNsUpdateCustomDomain(t *testing.T) {
202 withTestClient(t, func(config *CmdConfig, tm *tcMocks) {

Callers

nothing calls this directly

Calls 4

withTestClientFunction · 0.85
RunCDNUpdateFunction · 0.85
SetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected