Skip to content

Commit

Permalink
Adjust existing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
newtork committed Sep 4, 2024
1 parent ef80759 commit b8007c4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import static com.sap.ai.sdk.core.Core.getClient;
import static org.assertj.core.api.Assertions.assertThat;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.sap.ai.sdk.core.client.model.AiDeployment;
import com.sap.ai.sdk.core.client.model.AiDeploymentCreationRequest;
import com.sap.ai.sdk.core.client.model.AiDeploymentCreationResponse;
Expand All @@ -22,6 +23,9 @@
import com.sap.ai.sdk.core.client.model.AiDeploymentStatus;
import com.sap.ai.sdk.core.client.model.AiDeploymentTargetStatus;
import com.sap.ai.sdk.core.client.model.AiExecutionStatus;
import com.sap.cloud.sdk.cloudplatform.connectivity.DefaultDestination;
import com.sap.cloud.sdk.cloudplatform.connectivity.DefaultHttpDestination;
import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient;
import org.apache.hc.core5.http.HttpStatus;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -114,7 +118,7 @@ void testPostAiDeployment() {
"deploymentUrl": "",
"id": "d5b764fe55b3e87c",
"message": "AiDeployment scheduled.",
"status": "UNKNOWN"
"status": "FOOBAR"
}
""")));

Expand All @@ -128,7 +132,7 @@ void testPostAiDeployment() {
assertThat(deployment.getDeploymentUrl()).isEqualTo("");
assertThat(deployment.getId()).isEqualTo("d5b764fe55b3e87c");
assertThat(deployment.getMessage()).isEqualTo("AiDeployment scheduled.");
assertThat(deployment.getStatus()).isEqualTo(AiExecutionStatus.UNKNOWN);
assertThat(deployment.getStatus()).isEqualTo(AiExecutionStatus.UNKNOWN_DEFAULT_OPEN_API);
}

@Test
Expand Down

0 comments on commit b8007c4

Please sign in to comment.