Skip to content

Commit ae655c6

Browse files
author
Samuel Anudeep
committed
Merge pull request #115 from MabOneSdk/dev1-anudeeb
Final Touches. Signed off by SwatiM.
2 parents d62b592 + 97a9c67 commit ae655c6

13 files changed

+91
-16
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupContainerTests.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.WindowsAzure.Commands.ScenarioTest;
16-
using System;
17-
using System.Collections.Generic;
18-
using System.Configuration;
19-
using System.Linq;
20-
using System.Text;
21-
using System.Threading.Tasks;
2216
using Xunit;
2317

2418
namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,21 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
2020
public class AzureBackupItemTestCases : AzureBackupTestsBase
2121
{
2222
[Fact]
23+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2324
public void ListAzureBackupItemTests()
2425
{
2526
this.RunPowerShellTest("Test-GetAzureBackupItemTests");
2627
}
2728

2829
[Fact]
30+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2931
public void EnableAzureBackupProtectionTest()
3032
{
3133
this.RunPowerShellTest("Test-EnableAzureBackupProtection");
3234
}
3335

3436
[Fact]
37+
[Trait(Category.AcceptanceType, Category.CheckIn)]
3538
public void DisableAzureBackupProtectionTest()
3639
{
3740
this.RunPowerShellTest("Test-DisableAzureBackupProtection");

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupItemTestCases.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
$ResourceGroupName = "backuprg"
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+
$ResourceGroupName = "backuprg"
216
$ResourceName = "backuprn"
317
$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
418
$ContainerType = "IaasVMContainer"

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@ public class AzureBackupJobTests : AzureBackupTestsBase
2121
{
2222

2323
[Fact]
24+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2425
public void GetAzureRMBackupJobTests()
2526
{
2627
this.RunPowerShellTest("Test-GetAzureRMBackupJob");
2728
}
2829

2930
[Fact]
31+
[Trait(Category.AcceptanceType, Category.CheckIn)]
3032
public void StopAzureRMBackupJobTests()
3133
{
3234
this.RunPowerShellTest("Test-StopAzureRMBackupJob");

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupJobTests.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
$ResourceGroupName = "backuprg"
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+
$ResourceGroupName = "backuprg"
216
$ResourceName = "backuprn"
317
$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
418
$ContainerType = "IaasVMContainer"

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupPolicyTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,35 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
2020
public class AzureBackupPolicyTests : AzureBackupTestsBase
2121
{
2222
[Fact]
23+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2324
public void ListProtectionPolicyTests()
2425
{
2526
this.RunPowerShellTest("Test-GetAzureBackupProtectionPolicyTests");
2627
}
2728

2829
[Fact]
30+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2931
public void NewProtectionPolicyTests()
3032
{
3133
this.RunPowerShellTest("Test-NewAzureBackupProtectionPolicyTests");
3234
}
3335

3436
[Fact]
37+
[Trait(Category.AcceptanceType, Category.CheckIn)]
3538
public void ListProtectionPolicyByNameTests()
3639
{
3740
this.RunPowerShellTest("Test-GetAzureBackupProtectionPolicyByNameTests");
3841
}
3942

4043
[Fact]
44+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4145
public void SetProtectionPolicyTests()
4246
{
4347
this.RunPowerShellTest("Test-SetAzureBackupProtectionPolicyTests");
4448
}
4549

4650
[Fact]
51+
[Trait(Category.AcceptanceType, Category.CheckIn)]
4752
public void RemoveProtectionPolicyTests()
4853
{
4954
this.RunPowerShellTest("Test-RemoveAzureBackupProtectionPolicyTests");

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/AzureBackupScenarioTests.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,15 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using System;
16-
using System.Collections.Generic;
17-
using System.Linq;
18-
using System.Text;
19-
using System.Threading.Tasks;
15+
using Microsoft.WindowsAzure.Commands.ScenarioTest;
2016
using Xunit;
2117

2218
namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
2319
{
2420
public class AzureBackupScenarioTests : AzureBackupTestsBase
2521
{
2622
[Fact]
23+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2724
public void AzureBackupEndToEndTests()
2825
{
2926
//this.RunPowerShellTest("Test-AzureBackupEndToEnd");

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
2020
public class BackupItemTests : AzureBackupTestsBase
2121
{
2222
[Fact]
23+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2324
public void BackUpAzureBackUpItem()
2425
{
2526
this.RunPowerShellTest("Test-BackUpAzureBackUpItem");

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/BackupItemTests.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
$ResourceGroupName = "backuprg"
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+
$ResourceGroupName = "backuprg"
216
$ResourceName = "backuprn"
317
$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
418
$ContainerType = "IaasVMContainer"

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
2020
public class RecoveryPointTests : AzureBackupTestsBase
2121
{
2222
[Fact]
23+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2324
public void GetRecoveryPointsTests()
2425
{
2526
this.RunPowerShellTest("Test-GetAzureRecoveryPoints");
2627
}
2728

2829
[Fact]
30+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2931
public void GetRecoveryPointTests()
3032
{
3133
this.RunPowerShellTest("Test-GetAzureRecoveryPoint");

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RecoveryPointTests.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
$ResourceGroupName = "backuprg"
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+
$ResourceGroupName = "backuprg"
216
$ResourceName = "backuprn"
317
$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
418
$ContainerType = "IaasVMContainer"

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ namespace Microsoft.Azure.Commands.AzureBackup.Test.ScenarioTests
2020
public class RestoreItemTests : AzureBackupTestsBase
2121
{
2222
[Fact]
23+
[Trait(Category.AcceptanceType, Category.CheckIn)]
2324
public void RestoreAzureBackUpItem()
2425
{
2526
this.RunPowerShellTest("Test-RestoreAzureBackUpItem");

src/ResourceManager/AzureBackup/Commands.AzureBackup.Test/ScenarioTests/RestoreItemTests.ps1

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
$ResourceGroupName = "backuprg"
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+
$ResourceGroupName = "backuprg"
216
$ResourceName = "backuprn"
317
$ContainerName = "iaasvmcontainer;hydrarecordvm;hydrarecordvm"
418
$ContainerType = "IaasVMContainer"

0 commit comments

Comments
 (0)