(t *testing.T)
| 150 | } |
| 151 | |
| 152 | func TestNativeStoreGetIdentityToken(t *testing.T) { |
| 153 | f := &fakeStore{configs: map[string]types.AuthConfig{ |
| 154 | validServerAddress2: {}, |
| 155 | }} |
| 156 | |
| 157 | s := &nativeStore{ |
| 158 | programFunc: mockCommandFn, |
| 159 | fileStore: NewFileStore(f), |
| 160 | } |
| 161 | actual, err := s.Get(validServerAddress2) |
| 162 | assert.NilError(t, err) |
| 163 | |
| 164 | expected := types.AuthConfig{ |
| 165 | IdentityToken: "abcd1234", |
| 166 | ServerAddress: validServerAddress2, |
| 167 | } |
| 168 | assert.Check(t, is.DeepEqual(expected, actual)) |
| 169 | } |
| 170 | |
| 171 | func TestNativeStoreGetAll(t *testing.T) { |
| 172 | f := &fakeStore{configs: map[string]types.AuthConfig{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…