Skip to content

Commit

Permalink
Removed unimplemented operation and associated tests. (#3708)
Browse files Browse the repository at this point in the history
* Regenerate from Swagger. Removed unimplemented operation and associated tests

* Added package release notes
  • Loading branch information
deathly809 authored and shahabhijeet committed Sep 18, 2017
1 parent 82ea969 commit 60eee25
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 993 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<VersionPrefix>0.1.0-preview</VersionPrefix>
<AssemblyName>Microsoft.AzureStack.Management.Commerce.Admin</AssemblyName>
<PackageTags>Microsoft Azure Stack;Commerce;REST HTTP client;azureostackfficial;netcore451511</PackageTags>
<PackageReleaseNotes>This is a preview release of the AzureStack Commerce Admin SDK. Included with this release is support for gathering Usage Aggregates for subscriptions.</PackageReleaseNotes>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net452;netstandard1.4</TargetFrameworks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ namespace Fabric.Tests {
/// Summary description for FabricTest
/// </summary>
public class InfraRoleTests : FabricTestBase {
private string InfraRoleName = "Backup controller";

private void ValidateInfraRole(InfraRole role) {
Assert.True(FabricCommon.ValidateResource(role));
Expand Down Expand Up @@ -70,13 +69,5 @@ public void TestGetAllInfraRoles() {
});
}

// TODO: Figure out what this does before we call it and then break something
[Fact(Skip ="No hardware")]
public void TestScaleUpInfraRole() {
RunTest((client) => {
var role = client.InfraRoles.ScaleUp(Location, InfraRoleName);
Assert.Null(role); // ???
});
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,18 +87,5 @@ public void TestGetAllScaleUnits() {
});
});
}

[Fact(Skip ="no hardware")]
public void TestScaleOutScaleUnit() {
RunTest((client) => {
var scaleUnit = client.ScaleUnits.List(Location).GetFirst();
var desc = new BareMetalNodeDescription()
{
// TODO
};
client.ScaleUnits.ScaleOut(Location, scaleUnit.Name, desc);
});
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,6 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
/// </summary>
public partial interface IInfraRolesOperations
{
/// <summary>
/// Create new infra role instances.
/// </summary>
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='infraRole'>
/// Infra role name.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<OperationStatus>> ScaleUpWithHttpMessagesAsync(string location, string infraRole, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get an infra role description.
/// </summary>
Expand Down Expand Up @@ -101,31 +76,6 @@ public partial interface IInfraRolesOperations
/// </exception>
Task<AzureOperationResponse<IPage<InfraRole>>> ListWithHttpMessagesAsync(string location, ODataQuery<InfraRole> odataQuery = default(ODataQuery<InfraRole>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Create new infra role instances.
/// </summary>
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='infraRole'>
/// Infra role name.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<OperationStatus>> BeginScaleUpWithHttpMessagesAsync(string location, string infraRole, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get a list of all infra roles at a location.
/// </summary>
/// <param name='nextPageLink'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,6 @@ namespace Microsoft.AzureStack.Management.Fabric.Admin
/// </summary>
public partial interface IScaleUnitsOperations
{
/// <summary>
/// Scales out the cluster.
/// </summary>
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='scaleUnit'>
/// Name of the scale units.
/// </param>
/// <param name='serversToBeAdded'>
/// Descripion of the server to be added.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<OperationStatus>> ScaleOutWithHttpMessagesAsync(string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get a scale unit.
/// </summary>
Expand Down Expand Up @@ -104,34 +76,6 @@ public partial interface IScaleUnitsOperations
/// </exception>
Task<AzureOperationResponse<IPage<ScaleUnit>>> ListWithHttpMessagesAsync(string location, ODataQuery<ScaleUnit> odataQuery = default(ODataQuery<ScaleUnit>), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Scales out the cluster.
/// </summary>
/// <param name='location'>
/// Location of the resource.
/// </param>
/// <param name='scaleUnit'>
/// Name of the scale units.
/// </param>
/// <param name='serversToBeAdded'>
/// Descripion of the server to be added.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<OperationStatus>> BeginScaleOutWithHttpMessagesAsync(string location, string scaleUnit, BareMetalNodeDescription serversToBeAdded, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Get a list of all scale units at a location.
/// </summary>
/// <param name='nextPageLink'>
Expand Down
Loading

0 comments on commit 60eee25

Please sign in to comment.