Skip to content

Commit ebc1b9f

Browse files
committed
Merge pull request #1605 from stankovski/clu
Added WebsitesTests and fixed RoleAssignment test
2 parents 6fe8424 + 8d2ecf5 commit ebc1b9f

File tree

3 files changed

+52
-2
lines changed

3 files changed

+52
-2
lines changed

examples/resource-management/04-RoleAssignments.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ azure role assignment create --ObjectId "$userId" --RoleDefinitionId "$roleDefin
2121

2222
printf "\n3. Delete last created Role Assignment.\n"
2323
assignments=$(azure role assignment get)
24-
assignmentId=$(echo $assignments | cat | jq '.[-1].ObjectId' -s --raw-output)
24+
assignmentId=$(echo $assignments | cat | jq '.[-1:][0].ObjectId' -s --raw-output)
25+
echo "Deleting assignment: $assignmentId"
2526
azure role assignment remove --ObjectId "$assignmentId" --Scope "$scope" --RoleDefinitionId "$roleDefinitionId" -f
2627
export MSYS_NO_PATHCONV=

src/CLU/Commands.Common.ScenarioTest/ExamplesTests/ComputeTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public ComputeTests(ScenarioTestFixture fixture)
2525
_collectionState = fixture;
2626
}
2727

28-
[Fact]
28+
[Fact (Skip = "TODO: Re-enable once fixed in Azure Storage CoreCLR package.")]
2929
public void VirtualHardDisksTest()
3030
{
3131
var helper = _collectionState.GetRunner("virtual-hard-disk");
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Xunit;
16+
17+
namespace Microsoft.Azure.Commands.Common.ScenarioTest
18+
{
19+
[Collection("SampleCollection")]
20+
public class WebsitesTests
21+
{
22+
ScenarioTestFixture _collectionState;
23+
public WebsitesTests(ScenarioTestFixture fixture)
24+
{
25+
_collectionState = fixture;
26+
}
27+
28+
[Fact (Skip = "TODO: Work in progress")]
29+
public void AppServicePlanTest()
30+
{
31+
var helper = _collectionState.GetRunner("webapp-management");
32+
helper.RunScript("01-AppServicePlan");
33+
}
34+
35+
[Fact(Skip = "TODO: Work in progress")]
36+
public void WebAppSlotTest()
37+
{
38+
var helper = _collectionState.GetRunner("webapp-management");
39+
helper.RunScript("02-WebAppSlot");
40+
}
41+
42+
[Fact]
43+
public void WebAppTest()
44+
{
45+
var helper = _collectionState.GetRunner("webapp-management");
46+
helper.RunScript("03-WebApp");
47+
}
48+
}
49+
}

0 commit comments

Comments
 (0)