Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d6330a

Browse files
committed
Add test
1 parent 2cb9f2a commit 0d6330a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎schemaregistry/rules/encryption/encrypt-executor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class FieldEncryptionExecutor extends FieldRuleExecutor {
9797
let v = this.config.get(key)
9898
if (v != null) {
9999
if (v !== value) {
100-
throw new RuleError('executor already configured')
100+
throw new RuleError('rule config key already set: {key}')
101101
}
102102
} else {
103103
this.config.set(key, value)

‎schemaregistry/test/rules/encryption/encrypt-executor.spec.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ describe('FieldEncryptionExecutor', () => {
1212
const config = new Map<string, string>();
1313
config.set('key', 'value');
1414
executor.configure(clientConfig, config);
15-
// configure with same args should be fine
15+
// configure with same args is fine
1616
executor.configure(clientConfig, config);
1717
const config2 = new Map<string, string>();
1818
config2.set('key2', 'value2');
19-
// configure with addition config keys should be fine
19+
// configure with additional config keys is fine
2020
executor.configure(clientConfig, config);
2121

2222
const clientConfig2: ClientConfig = {
@@ -26,7 +26,7 @@ describe('FieldEncryptionExecutor', () => {
2626
expect(() => executor.configure(clientConfig2, config)).toThrowError()
2727

2828
const config3 = new Map<string, string>();
29-
config3.set('key', 'value2');
29+
config3.set('key', 'value3');
3030
expect(() => executor.configure(clientConfig, config3)).toThrowError()
3131
})
3232
})

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /