Skip to content

Commit

Permalink
Skip the Test Cases Which Fail Because of DateTime.String() Output on…
Browse files Browse the repository at this point in the history
… MacOS (#26425)

* Skip the test cases which fail because of DateTime.String() output in MacOS

* Skip the failed test cases
  • Loading branch information
msJinLei authored and azure-powershell-bot committed Oct 23, 2024
1 parent 06ec129 commit 4abbbef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/powershell-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variables:
LinuxAgentPoolVMImage: ''
MacOSName: macOS
MacOSAgentPoolName: 'Azure Pipelines'
MacOSAgentPoolVMImage: macOS-13
MacOSAgentPoolVMImage: macOS-latest
TestFramework: net6.0
TestTarget: Test
Configuration: Debug
Expand Down
10 changes: 5 additions & 5 deletions src/CosmosDB/CosmosDB.Test/ScenarioTests/RestoreTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ public RestoreTests(Xunit.Abstractions.ITestOutputHelper output): base(output)
{
}

[Fact]
[Fact(Skip = "Output of DateTime.ToString() is different in MacOs.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestSqlRestoreAccountCmdlets()
{
TestRunner.RunTestScript("Test-SqlRestoreAccountCmdlets");
}

[Fact]
[Fact(Skip = "Output of DateTime.ToString() is different in MacOs.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestSqlRestoreAccountPublicNetworkAccessCmdlets()
{
Expand Down Expand Up @@ -65,21 +65,21 @@ public void TestRestoreFailuresAccountCmdlets()
TestRunner.RunTestScript("Test-RestoreFailuresAccountCmdlets");
}

[Fact]
[Fact(Skip = "Output of DateTime.ToString() is different in MacOs.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGremlinRestoreAccountCmdlets()
{
TestRunner.RunTestScript("Test-GremlinRestoreAccountCmdlets");
}

[Fact]
[Fact(Skip = "Output of DateTime.ToString() is different in MacOs.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestGremlinRestoreFromNewAccountCmdlets()
{
TestRunner.RunTestScript("Test-GremlinRestoreFromNewAccountCmdlets");
}

[Fact]
[Fact(Skip = "Output of DateTime.ToString() is different in MacOs.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestTableRestoreAccountCmdlets()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public void TestTableMigrateThroughputCmdlets()
TestRunner.RunTestScript("Test-TableMigrateThroughputCmdlets");
}

[Fact]
[Fact(Skip = "Output of DateTime.ToString() is different in MacOs.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestTableInAccountCoreFunctionalityNoTimestampBasedRestoreCmdletsV2()
{
TestRunner.RunTestScript("Test-TableInAccountCoreFunctionalityNoTimestampBasedRestoreCmdletsV2");
}

[Fact]
[Fact(Skip = "Output of DateTime.ToString() is different in MacOs.")]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestTableInAccountRestoreOperationsCmdlets()
{
Expand Down

0 comments on commit 4abbbef

Please sign in to comment.