forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#1047 from Azure/master
Sync to Master branch
- Loading branch information
Showing
456 changed files
with
62,938 additions
and
1,983 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ public enum KnownPrimaryType | |
Boolean, | ||
Credentials, | ||
Uuid, | ||
Base64Url | ||
Base64Url, | ||
UnixTime | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
namespace Microsoft.Rest.Generator.Cli | ||
{ | ||
/// <summary> | ||
/// Available exit codes. | ||
/// </summary> | ||
public enum ExitCode : int | ||
{ | ||
Success = 0, | ||
Error = 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
AutoRest/Generators/AzureResourceSchema/AzureResourceSchema.Tests/AcceptanceTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using Microsoft.Rest.Generator.AzureResourceSchema; | ||
using Microsoft.Rest.Modeler.Swagger.Tests; | ||
using System.IO; | ||
using Xunit; | ||
|
||
namespace AutoRest.Generator.AzureResourceSchema.Tests | ||
{ | ||
[Collection("AutoRest Azure Resource Schema Tests")] | ||
public static class AcceptanceTests | ||
{ | ||
[Fact] | ||
public static void Storage() | ||
{ | ||
RunSwaggerTest("storage.json", "Storage"); | ||
} | ||
|
||
[Fact] | ||
public static void Batch() | ||
{ | ||
RunSwaggerTest("BatchManagement.json", "Batch"); | ||
} | ||
|
||
[Fact] | ||
public static void Cdn() | ||
{ | ||
RunSwaggerTest("cdn.json", "CDN"); | ||
} | ||
|
||
[Fact] | ||
public static void Compute() | ||
{ | ||
RunSwaggerTest("compute.json", "Compute"); | ||
} | ||
|
||
[Fact] | ||
public static void Network() | ||
{ | ||
RunSwaggerTest("network.json", "Network"); | ||
} | ||
|
||
[Fact] | ||
public static void Web() | ||
{ | ||
RunSwaggerTest("web.json", "Web"); | ||
} | ||
|
||
private static void RunSwaggerTest(string swaggerFileName, string expectedFolderName) | ||
{ | ||
SwaggerSpecHelper.RunTests<AzureResourceSchemaCodeGenerator>( | ||
Path.Combine("Swagger", swaggerFileName), | ||
Path.Combine("Expected", expectedFolderName)); | ||
} | ||
} | ||
} |
Oops, something went wrong.