(t *testing.T)
| 129 | } |
| 130 | |
| 131 | func TestNativeStoreGet(t *testing.T) { |
| 132 | f := &fakeStore{configs: map[string]types.AuthConfig{ |
| 133 | validServerAddress: { |
| 134 | Username: "foo@example.com", |
| 135 | }, |
| 136 | }} |
| 137 | s := &nativeStore{ |
| 138 | programFunc: mockCommandFn, |
| 139 | fileStore: NewFileStore(f), |
| 140 | } |
| 141 | actual, err := s.Get(validServerAddress) |
| 142 | assert.NilError(t, err) |
| 143 | |
| 144 | expected := types.AuthConfig{ |
| 145 | Username: "foo", |
| 146 | Password: "bar", |
| 147 | ServerAddress: validServerAddress, |
| 148 | } |
| 149 | assert.Check(t, is.DeepEqual(expected, actual)) |
| 150 | } |
| 151 | |
| 152 | func TestNativeStoreGetIdentityToken(t *testing.T) { |
| 153 | f := &fakeStore{configs: map[string]types.AuthConfig{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…