(t *testing.T)
| 111 | } |
| 112 | |
| 113 | func TestChainWithNoProvider(t *testing.T) { |
| 114 | p := &Chain{ |
| 115 | Providers: []Provider{}, |
| 116 | } |
| 117 | if !p.IsExpired() { |
| 118 | t.Fatal("Expected to be expired with no providers") |
| 119 | } |
| 120 | _, err := p.RetrieveWithCredContext(defaultCredContext) |
| 121 | if err != nil { |
| 122 | if err.Error() != "No valid providers found []" { |
| 123 | t.Error(err) |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | func TestChainProviderWithNoValidProvider(t *testing.T) { |
| 129 | errs := []error{ |
nothing calls this directly
no test coverage detected