-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Orchestration Data Masking tests #52
Conversation
…ry e2e tests and maskingAnonymization unit test
@@ -66,6 +75,33 @@ public class OrchestrationUnitTest { | |||
.templatingModuleConfig(templatingModuleConfig))) | |||
.inputParams(Map.of()); | |||
|
|||
private static final Function<MaskingProviderConfig.MethodEnum, CompletionPostRequest> | |||
MASKING_CONFIG = | |||
(MaskingProviderConfig.MethodEnum maskingType) -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Comment)
I didn't know you can add type def signature in lambda syntax ^^
orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java
Outdated
Show resolved
Hide resolved
.getResourceAsStream("templatingRequest.json") | ||
.readAllBytes()); | ||
verify(postRequestedFor(urlPathEqualTo("/completion")).withRequestBody(equalToJson(request))); | ||
void templating() throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Comment)
(Still) not a fan of dropping the test
method name prefix.
orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java
Outdated
Show resolved
Hide resolved
...le-code/spring-app/src/main/java/com/sap/ai/sdk/app/controllers/OrchestrationController.java
Show resolved
Hide resolved
* | ||
* @return the assistant message response | ||
*/ | ||
@GetMapping("/maskingPseudonymization") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- @GetMapping("/maskingPseudonymization")
+ @GetMapping("/maskingPseudoAnonymization")
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? Orchestration calls it pseudonymization
.
… into feat/orchestration-data-masking
orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java
Outdated
Show resolved
Hide resolved
orchestration/src/test/java/com/sap/ai/sdk/orchestration/client/OrchestrationUnitTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Context
AI/ai-sdk-java-backlog#70.
As an orchestration user I want to anonymize and pseudonymize my input prompts using the data masking capabilites of orchestration.
Feature scope:
Definition of Done
Error handling created / updated & covered by the tests aboveAligned changes with the JavaScript SDKRelease notes updated