(t *testing.T)
| 226 | } |
| 227 | |
| 228 | func TestCDNsUpdateRemoveCustomDomain(t *testing.T) { |
| 229 | withTestClient(t, func(config *CmdConfig, tm *tcMocks) { |
| 230 | cdnur := &godo.CDNUpdateCustomDomainRequest{ |
| 231 | CustomDomain: "", |
| 232 | } |
| 233 | tm.cdns.EXPECT().UpdateCustomDomain(cdnID, cdnur).Return(&testCDN, nil) |
| 234 | |
| 235 | config.Args = append(config.Args, cdnID) |
| 236 | config.Doit.Set(config.NS, doctl.ArgCDNDomain, "") |
| 237 | |
| 238 | err := RunCDNUpdate(config) |
| 239 | assert.NoError(t, err) |
| 240 | }) |
| 241 | } |
| 242 | |
| 243 | func TestCDNsUpdate_NothingToUpdateFail(t *testing.T) { |
| 244 | withTestClient(t, func(config *CmdConfig, tm *tcMocks) { |
nothing calls this directly
no test coverage detected