(t *testing.T)
| 71 | } |
| 72 | |
| 73 | func 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 | |
| 89 | func TestSession_HandleResponse(t *testing.T) { |
| 90 | type fields struct { |
nothing calls this directly
no test coverage detected