Skip to content

Added WebsitesTests and fixed RoleAssignment test #1605

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

Merged
merged 5 commits into from
Jan 7, 2016
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
3 changes: 2 additions & 1 deletion examples/resource-management/04-RoleAssignments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ azure role assignment create --ObjectId "$userId" --RoleDefinitionId "$roleDefin

printf "\n3. Delete last created Role Assignment.\n"
assignments=$(azure role assignment get)
assignmentId=$(echo $assignments | cat | jq '.[-1].ObjectId' -s --raw-output)
assignmentId=$(echo $assignments | cat | jq '.[-1:][0].ObjectId' -s --raw-output)
echo "Deleting assignment: $assignmentId"
azure role assignment remove --ObjectId "$assignmentId" --Scope "$scope" --RoleDefinitionId "$roleDefinitionId" -f
export MSYS_NO_PATHCONV=
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public ComputeTests(ScenarioTestFixture fixture)
_collectionState = fixture;
}

[Fact]
[Fact (Skip = "TODO: Re-enable once fixed in Azure Storage CoreCLR package.")]
public void VirtualHardDisksTest()
{
var helper = _collectionState.GetRunner("virtual-hard-disk");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using Xunit;

namespace Microsoft.Azure.Commands.Common.ScenarioTest
{
[Collection("SampleCollection")]
public class WebsitesTests
{
ScenarioTestFixture _collectionState;
public WebsitesTests(ScenarioTestFixture fixture)
{
_collectionState = fixture;
}

[Fact (Skip = "TODO: Work in progress")]
public void AppServicePlanTest()
{
var helper = _collectionState.GetRunner("webapp-management");
helper.RunScript("01-AppServicePlan");
}

[Fact(Skip = "TODO: Work in progress")]
public void WebAppSlotTest()
{
var helper = _collectionState.GetRunner("webapp-management");
helper.RunScript("02-WebAppSlot");
}

[Fact]
public void WebAppTest()
{
var helper = _collectionState.GetRunner("webapp-management");
helper.RunScript("03-WebApp");
}
}
}