MCPcopy Create free account
hub / github.com/clouditor/clouditor / TestSession

Function TestSession

cli/session_test.go:73–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestSession(t *testing.T) {
74 var (
75 err error
76 session *cli.Session
77 )
78
79 session, err = cli.ContinueSession()
80 assert.NoError(t, err)
81 assert.NotNil(t, session)
82
83 // Do a simple authenticated call
84 oc := orchestrator.NewOrchestratorClient(session)
85 _, err = oc.ListCertificationTargets(context.Background(), &orchestrator.ListCertificationTargetsRequest{})
86 assert.NoError(t, err)
87}
88
89func TestSession_HandleResponse(t *testing.T) {
90 type fields struct {

Callers

nothing calls this directly

Calls 3

ContinueSessionFunction · 0.92
NotNilFunction · 0.92

Tested by

no test coverage detected