(store secrets.Store)
| 151 | } |
| 152 | |
| 153 | func runtimeWithAuthStore(store secrets.Store) *app.Runtime { |
| 154 | operations := app.AuthOperations{ |
| 155 | OpenSecretsStore: func() (secrets.Store, error) { |
| 156 | return store, nil |
| 157 | }, |
| 158 | } |
| 159 | if secretStore, ok := store.(secrets.SecretStore); ok { |
| 160 | operations.OpenSecretStore = func() (secrets.SecretStore, error) { |
| 161 | return secretStore, nil |
| 162 | } |
| 163 | } |
| 164 | return &app.Runtime{Auth: operations, KeyringOptions: testKeyringOptions()} |
| 165 | } |
| 166 | |
| 167 | func testKeyringOptions() *secrets.OpenOptions { |
| 168 | return &secrets.OpenOptions{ |
no test coverage detected