Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

<ItemGroup>
<PackageReference Include="Azure.Core" />
<PackageReference Include="Azure.Core.Experimental" />
<PackageReference Include="System.Text.Json" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Core" />
<PackageReference Include="Azure.Core.Experimental" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ public async Task UpdateTask()
{
var options = new PurviewAccountClientOptions();
PurviewAccountClient client = GetAccountClient();
var data = new JsonData(new Dictionary<string, string>
Response updateResponse = await client.UpdateAccountPropertiesAsync(RequestContent.Create(new Dictionary<string, string>
{
["friendlyName"] = "udpatedFriendlyName"
});
Response updateResponse = await client.UpdateAccountPropertiesAsync(RequestContent.Create(data));
}));
using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(updateResponse));
JsonElement upateBodyJson = jsonDocument.RootElement;
Assert.AreEqual("dotnetLLCPurviewAccount", upateBodyJson.GetProperty("name").GetString());
Expand All @@ -64,11 +63,10 @@ public async Task ListKeysTask()
{
var options = new PurviewAccountClientOptions();
PurviewAccountClient client = GetAccountClient();
var data = new JsonData(new Dictionary<string, string>
Response genResponse = await client.RegenerateAccessKeyAsync(RequestContent.Create(new Dictionary<string, string>
{
["keyType"] = "PrimaryAtlasKafkaKey"
});
Response genResponse = await client.RegenerateAccessKeyAsync(RequestContent.Create(data));
}));
using var jsonDocumentGen = JsonDocument.Parse(GetContentFromResponse(genResponse));
JsonElement genKeyBodyJson = jsonDocumentGen.RootElement;
Assert.AreEqual(genResponse.Status, 200);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Core" />
<PackageReference Include="Azure.Core.Experimental" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ public async Task UpdateTask()
{
var options = new PurviewAccountClientOptions();
PurviewAccountClient client = GetAccountClient();
var data = new JsonData(new Dictionary<string, string>
Response updateRespons = await client.UpdateAccountPropertiesAsync(RequestContent.Create(new Dictionary<string, string>
{
["friendlyName"] = "udpatedFriendlyName"
});
Response updateRespons = await client.UpdateAccountPropertiesAsync(RequestContent.Create(data));
}));
using var jsonDocument = JsonDocument.Parse(GetContentFromResponse(updateRespons));
JsonElement upateBodyJson = jsonDocument.RootElement;
Assert.AreEqual("dotnetLLCPurviewAccount", upateBodyJson.GetProperty("name").GetString());
Expand All @@ -64,11 +63,10 @@ public async Task ListKeysTask()
{
var options = new PurviewAccountClientOptions();
PurviewAccountClient client = GetAccountClient();
var data = new JsonData(new Dictionary<string, string>
Response genResponse = await client.RegenerateAccessKeyAsync(RequestContent.Create(new Dictionary<string, string>
{
["keyType"] = "PrimaryAtlasKafkaKey"
});
Response genResponse = await client.RegenerateAccessKeyAsync(RequestContent.Create(data));
}));
using var jsonDocumentGen = JsonDocument.Parse(GetContentFromResponse(genResponse));
JsonElement genKeyBodyJson = jsonDocumentGen.RootElement;
Assert.AreEqual(genResponse.Status, 200);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<Compile Include="$(AzureCoreSharedSources)AzureResourceProviderNamespaceAttribute.cs" LinkBase="Shared" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Core.Experimental" />
<PackageReference Include="Azure.Core" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<Compile Include="$(AzureCoreSharedSources)AzureResourceProviderNamespaceAttribute.cs" LinkBase="Shared" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Core.Experimental" />
<PackageReference Include="Azure.Core" />
</ItemGroup>

Expand Down