-
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
Add unit test #42
Add unit test #42
Conversation
- Remove unneccesary isNotNull assertions - Rename test methods
# Conflicts: # core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java # core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java # core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java # core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java # core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java
core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java
Outdated
Show resolved
Hide resolved
core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.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.
Missing unit tests, this should be written as a comment on the backlog item
- Artifact:
- count
- Configuration:
- get by ID
- count
- Deployment and Execution:
- patch all
- logs
- Scenario:
- get by ID
- available models
assertThat(execution.getConfigurationName()).isEqualTo("i749902_exec_conf"); | ||
assertThat(execution.getCreatedAt()).isEqualTo("2024-09-09T19:09:57Z"); | ||
// executableId is not in the generated client. | ||
assertThat(execution.getCustomField("executableId")).isEqualTo("wt-spam-detection-i749902"); |
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.
You should report to AI Core that they have the field executionScheduleId
instead of executableId
# Conflicts: # core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java
Context
AI/ai-sdk-java-backlog#37.
Add unit test for all commonly used methods for valid response cases.
Feature scope:
Definition of Done
Error handling created / updated & covered by the tests aboveAligned changes with the JavaScript SDKDocumentation updatedRelease notes updated