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 @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters",
"Tag": "net/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters_131031ef74"
"Tag": "net/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters_3c2b8cf39b"
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -186,5 +186,28 @@ directive:
where: $.definitions
transform: >
$.ManagedClusterVersionDetails.properties.supportExpiryUtc['format'] = 'date-time';

- from: nodetype.json
Comment thread
mcgallan marked this conversation as resolved.
where: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabric/managedClusters/{clusterName}/nodeTypes/{nodeTypeName}'].patch
transform: >
$['responses'] = {
"200": {
"description": "The operation completed successfully.",
"schema": {
"$ref": "#/definitions/NodeType"
}
},
"202": {
"description": "The operation completed successfully.",
"schema": {
"$ref": "#/definitions/NodeType"
}
},
"default": {
"description": "The detailed error response.",
"schema": {
"$ref": "#/definitions/ErrorModel"
}
}
}
reason: response status 202 missing
```
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public async Task CreateOrUpdateDelete()
var secondaryNodeType = await CreateServiceFabricManagedNodeType(_cluster, secondaryNodeTypeName, false);
ValidatePurviewAccount(primaryNodeType.Data, primaryNodeTypeName);
ValidatePurviewAccount(secondaryNodeType.Data, secondaryNodeTypeName);

// Delete
await secondaryNodeType.DeleteAsync(WaitUntil.Completed);
var flag = await _nodeTypeCollection.ExistsAsync(secondaryNodeTypeName);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Azure.Core.TestFramework;
using Azure.ResourceManager.ServiceFabricManagedClusters.Models;
using NUnit.Framework;

namespace Azure.ResourceManager.ServiceFabricManagedClusters.Tests
{
internal class ServiceFabricManagerNodeTypeUpdateTest : ServiceFabricManagedClustersManagementTestBase
{
private ServiceFabricManagedClusterResource _cluster;
private ServiceFabricManagedNodeTypeCollection _nodeTypeCollection;
private ServiceFabricManagedNodeTypeResource _nodeTypeResource;
public ServiceFabricManagerNodeTypeUpdateTest(bool isAsync) : base(isAsync)//, RecordedTestMode.Record)
{
}

[SetUp]
public async Task TestSetUp()
{
var resourceGroup = (await DefaultSubscription.GetResourceGroupAsync("testClusterRG-9503")).Value;
_cluster = await resourceGroup.GetServiceFabricManagedClusterAsync("sfmctest5490");
_nodeTypeCollection = _cluster.GetServiceFabricManagedNodeTypes();
_nodeTypeResource = await _cluster.GetServiceFabricManagedNodeTypeAsync("node4968");
}

[Test]
public async Task UpdateTest()
{
//Update
var updateNodetype_lro = await _nodeTypeResource.UpdateAsync(new ServiceFabricManagedNodeTypePatch()
{
Tags =
{
["UpdateKey1"] = "UpdateValue1",
["UpdateKey2"] = "UpdateValue2",
}
});
var updateNodetype = updateNodetype_lro.Value;
}
}
}