Skip to content
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

Remove Data plane from ADLS #1187

Merged
merged 4 commits into from
Oct 12, 2016
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Minimal changes due to regen of ADLS.
  • Loading branch information
begoldsm committed Oct 11, 2016
commit 7f80815fddfa4a3e485733487e7f3892c89793c1
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception {
createParams.withTags(new HashMap<String, String>());
createParams.tags().put("testkey", "testvalue");

DataLakeStoreAccount createResponse = dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, createParams).getBody();
DataLakeStoreAccount createResponse = dataLakeStoreAccountManagementClient.accounts().create(rgName, adlsAcct, createParams);
Assert.assertEquals(location, createResponse.location());
Assert.assertEquals("Microsoft.DataLakeStore/accounts", createResponse.type());
Assert.assertNotNull(createResponse.id());
@@ -55,23 +55,23 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception {
// update the tags
createParams.tags().put("testkey2", "testvalue2");
createParams.withProperties(null);
DataLakeStoreAccount updateResponse = dataLakeStoreAccountManagementClient.accounts().update(rgName, adlsAcct, createParams).getBody();
DataLakeStoreAccount updateResponse = dataLakeStoreAccountManagementClient.accounts().update(rgName, adlsAcct, createParams);
Assert.assertEquals(location, updateResponse.location());
Assert.assertEquals("Microsoft.DataLakeStore/accounts", updateResponse.type());
Assert.assertNotNull(updateResponse.id());
Assert.assertTrue(updateResponse.id().contains(adlsAcct));
Assert.assertEquals(2, updateResponse.tags().size());

// get the account
DataLakeStoreAccount getResponse = dataLakeStoreAccountManagementClient.accounts().get(rgName, adlsAcct).getBody();
DataLakeStoreAccount getResponse = dataLakeStoreAccountManagementClient.accounts().get(rgName, adlsAcct);
Assert.assertEquals(location, getResponse.location());
Assert.assertEquals("Microsoft.DataLakeStore/accounts", getResponse.type());
Assert.assertNotNull(getResponse.id());
Assert.assertTrue(getResponse.id().contains(adlsAcct));
Assert.assertEquals(2, getResponse.tags().size());

// list all accounts and make sure there is one.
List<DataLakeStoreAccount> listResult = dataLakeStoreAccountManagementClient.accounts().list().getBody();
List<DataLakeStoreAccount> listResult = dataLakeStoreAccountManagementClient.accounts().list();
DataLakeStoreAccount discoveredAcct = null;
for (DataLakeStoreAccount acct : listResult) {
if (acct.name().equals(adlsAcct)) {
@@ -91,7 +91,7 @@ public void canCreateGetUpdateDeleteAdlsAccount() throws Exception {
Assert.assertNull(discoveredAcct.properties().defaultGroup());

// list within a resource group
listResult = dataLakeStoreAccountManagementClient.accounts().listByResourceGroup(rgName).getBody();
listResult = dataLakeStoreAccountManagementClient.accounts().listByResourceGroup(rgName);
discoveredAcct = null;
for (DataLakeStoreAccount acct : listResult) {
if (acct.name().equals(adlsAcct)) {
Loading