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

Path too long fix for policy test #3995

Merged
merged 1 commit into from
May 19, 2017
Merged
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 @@ -30,10 +30,10 @@ public SecurityPolicyTests(ITestOutputHelper testOutputHelper)
[Description("Package push fails if min client version policy not met")]
[Priority(1)]
[Category("P1Tests")]
public async Task PackagePush_Returns400IfRequireMinClientVersionPolicyNotMet(string clientVersion)
public async Task PackagePush_Returns400IfMinClientVersionPolicyNotMet(string clientVersion)
{
// Arrange
var id = $"{nameof(PackagePush_Returns400IfRequireMinClientVersionPolicyNotMet)}.{DateTime.UtcNow.Ticks}";
var id = $"{nameof(PackagePush_Returns400IfMinClientVersionPolicyNotMet)}.{DateTime.UtcNow.Ticks}";

// Act
var response = await PushPackageAsync(EnvironmentSettings.TestSecurityPoliciesAccountApiKey, id, clientVersion);
Expand All @@ -48,10 +48,10 @@ public async Task PackagePush_Returns400IfRequireMinClientVersionPolicyNotMet(st
[Description("Package push succeeds if min client version policy met")]
[Priority(1)]
[Category("P1Tests")]
public async Task PackagePush_Returns200IfRequireMinClientVersionPolicyMet(string clientVersion)
public async Task PackagePush_Returns200IfMinClientVersionPolicyMet(string clientVersion)
{
// Arrange
var id = $"{nameof(PackagePush_Returns200IfRequireMinClientVersionPolicyMet)}.{DateTime.UtcNow.Ticks}";
var id = $"{nameof(PackagePush_Returns200IfMinClientVersionPolicyMet)}.{DateTime.UtcNow.Ticks}";

// Act
var response = await PushPackageAsync(EnvironmentSettings.TestSecurityPoliciesAccountApiKey, id, clientVersion);
Expand All @@ -64,10 +64,10 @@ public async Task PackagePush_Returns200IfRequireMinClientVersionPolicyMet(strin
[Description("VerifyPackageKey fails if package verify policy not met")]
[Priority(1)]
[Category("P1Tests")]
public async Task VerifyPackageKey_Returns400IfRequirePackageVerifyScopePolicyNotMet()
public async Task VerifyPackageKey_Returns400IfPackageVerifyScopePolicyNotMet()
{
// Arrange
var id = $"{nameof(VerifyPackageKey_Returns400IfRequirePackageVerifyScopePolicyNotMet)}.{DateTime.UtcNow.Ticks}";
var id = $"{nameof(VerifyPackageKey_Returns400IfPackageVerifyScopePolicyNotMet)}.{DateTime.UtcNow.Ticks}";

var pushResponse = await PushPackageAsync(EnvironmentSettings.TestSecurityPoliciesAccountApiKey, id, "4.1.0");
Assert.Equal(HttpStatusCode.Created, pushResponse.StatusCode);
Expand All @@ -83,10 +83,10 @@ public async Task VerifyPackageKey_Returns400IfRequirePackageVerifyScopePolicyNo
[Description("VerifyPackageKey succeeds if package verify policy met")]
[Priority(1)]
[Category("P1Tests")]
public async Task VerifyPackageKey_Returns200IfRequirePackageVerifyScopePolicyMet()
public async Task VerifyPackageKey_Returns200IfPackageVerifyScopePolicyMet()
{
// Arrange
var id = $"{nameof(VerifyPackageKey_Returns200IfRequirePackageVerifyScopePolicyMet)}.{DateTime.UtcNow.Ticks}";
var id = $"{nameof(VerifyPackageKey_Returns200IfPackageVerifyScopePolicyMet)}.{DateTime.UtcNow.Ticks}";

var pushResponse = await PushPackageAsync(EnvironmentSettings.TestSecurityPoliciesAccountApiKey, id, "4.1.0");
Assert.Equal(HttpStatusCode.Created, pushResponse.StatusCode);
Expand Down