Skip to content

Commit 8e33836

Browse files
committed
Replace AzureDataLakeException with BadRequestHttpErrorStatus
1 parent 164a6f2 commit 8e33836

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Utils/hdinsight-node-common/Test/java/com/microsoft/azure/hdinsight/sdk/common/livy/interactive/SessionScenario.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class SessionScenario {
7070
}}
7171
}
7272

73-
@Then("^check the AzureDataLakeException\\((\\d+)\\) when creating livy interactive session after creating should be thrown$")
73+
@Then("^check the BadRequestHttpErrorStatus\\((\\d+)\\) when creating livy interactive session after creating should be thrown$")
7474
fun checkCreateSessionException(statusCodeExpect: Int) {
7575
sessionMock!!.create()
7676
.subscribe(

Utils/hdinsight-node-common/Test/resources/com/microsoft/azure/hdinsight/sdk/common/livy/interactive/SessionScenario.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Feature: Livy Interactive Session Tests
1010
Scenario: Session.create() IT negative case with mocked http server
1111
Given setup a mock livy interactive service for POST request '/sessions' to return 'Bad Request' with status code 400
1212
And create a livy Spark interactive session instance with name 'testSparkREPL'
13-
Then check the AzureDataLakeException(400) when creating livy interactive session after creating should be thrown
13+
Then check the BadRequestHttpErrorStatus(400) when creating livy interactive session after creating should be thrown
1414

1515
Scenario: Session.getAppId() IT positive case with mocked http server
1616
Given setup a mock livy interactive service for POST request '/sessions' to return '{"id":6,"appId":null,"owner":null,"proxyUser":null,"state":"starting","kind":"spark","appInfo":{"driverLogUrl":null,"sparkUiUrl":null},"log":[]}' with status code 200

0 commit comments

Comments
 (0)