( ctx context.Context, t *testing.T, rawDB database.Store, providerID uuid.UUID, ciphers []Cipher, wantSettings string, )
| 1073 | } |
| 1074 | |
| 1075 | func requireAIProviderRawEncrypted( |
| 1076 | ctx context.Context, |
| 1077 | t *testing.T, |
| 1078 | rawDB database.Store, |
| 1079 | providerID uuid.UUID, |
| 1080 | ciphers []Cipher, |
| 1081 | wantSettings string, |
| 1082 | ) { |
| 1083 | t.Helper() |
| 1084 | raw, err := rawDB.GetAIProviderByID(ctx, providerID) |
| 1085 | require.NoError(t, err) |
| 1086 | require.True(t, raw.Settings.Valid) |
| 1087 | requireEncryptedEquals(t, ciphers[0], raw.Settings.String, wantSettings) |
| 1088 | } |
| 1089 | |
| 1090 | func requireAIProviderKeyDecrypted( |
| 1091 | t *testing.T, |
no test coverage detected