MCPcopy
hub / github.com/cloudflare/cloudflared / updateWithValidation

Function updateWithValidation

orchestration/orchestrator_test.go:564–568  ·  view source on GitHub ↗

nolint: testifylint // this is used inside go routines so it can't use `require.`

(t *testing.T, orchestrator *Orchestrator, version int32, config []byte)

Source from the content-addressed store, hash-verified

562
563// nolint: testifylint // this is used inside go routines so it can't use `require.`
564func updateWithValidation(t *testing.T, orchestrator *Orchestrator, version int32, config []byte) {
565 resp := orchestrator.UpdateConfig(version, config)
566 assert.NoError(t, resp.Err)
567 assert.Equal(t, version, resp.LastAppliedVersion)
568}
569
570// TestClosePreviousProxies makes sure proxies started in the previous configuration version are shutdown
571func TestClosePreviousProxies(t *testing.T) {

Calls 2

UpdateConfigMethod · 0.65
EqualMethod · 0.65

Tested by

no test coverage detected