Skip to content

Commit

Permalink
Merged PR 730404: Enabling Skipped tests. They are passing. The tests…
Browse files Browse the repository at this point in the history
… not stable will be

Enabling Skipped tests. They are passing. The tests not stable will be investigated once they start failing again.

On top of that it was added a configuration for code coverage setting.
  • Loading branch information
aribeironovaes committed Mar 23, 2018
1 parent e23cb46 commit 2c4c3da
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 61 deletions.
1 change: 1 addition & 0 deletions CodeCoverage.runsettings
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Included items must then not match any entries in the exclude list to remain inc
<ModulePath>.*CPPUnitTestFramework.*</ModulePath>
<ModulePath>.*test\..*</ModulePath>
<ModulePath>.*windowsazure\..*</ModulePath>
<ModulePath>.*moq\..*</ModulePath>
</Exclude>
</ModulePaths>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ public class DockerEnvironmentTest
const string OperatingSystemType = "linux";
const string Architecture = "x86_x64";

//TODO: INVESTIGATE/FIX AND ENABLE ASAP. Bug: 1912576
[Fact(Skip = "Failing, needs investigation.")]
[Integration]
public async Task TestEmptyEnvironment()
{
Expand All @@ -42,8 +40,6 @@ public async Task TestEmptyEnvironment()
}
}

//TODO: INVESTIGATE/FIX AND ENABLE ASAP. Bug: 1912576
[Fact(Skip = "Failing, needs investigation.")]
[Integration]
public async Task TestPlatformInfo()
{
Expand All @@ -61,8 +57,6 @@ public async Task TestPlatformInfo()
}
}

//TODO: INVESTIGATE/FIX AND ENABLE ASAP. Bug: 1912576
[Fact(Skip = "Failing, needs investigation.")]
[Integration]
public async Task TestFilters()
{
Expand Down Expand Up @@ -127,8 +121,6 @@ public async Task TestFilters()
}
}

//TODO: INVESTIGATE/FIX AND ENABLE ASAP. Bug: 1912576
[Fact(Skip = "Failing, needs investigation.")]
[Integration]
public async Task TestEnvVars()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public async Task PullValidImages(string testFullImage, string image, string tag
Assert.Equal(tag, testTag);
}

//TODO: INVESTIGATE/FIX AND ENABLE ASAP. Bug: 1912576
[Fact(Skip = "Failing, needs investigation.")]
[Integration]
public async Task ImageNotFoundTest()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public async Task BasicTest()
}
}

//TODO: INVESTIGATE/FIX AND ENABLE ASAP. Bug: 1912576
[Fact(Skip = "Failing, needs investigation.")]
public async Task CleanupTestTimeout()
{
(IMessageStore messageStore, ICheckpointStore checkpointStore) result = await this.GetMessageStore(20);
Expand Down Expand Up @@ -107,8 +105,6 @@ public async Task CleanupTestTimeout()
}
}

//TODO: INVESTIGATE/FIX AND ENABLE ASAP. Bug: 1912576
[Fact(Skip = "Failing, needs investigation.")]
public async Task CleanupTestCheckpointed()
{
(IMessageStore messageStore, ICheckpointStore checkpointStore) result = await this.GetMessageStore(20);
Expand Down Expand Up @@ -150,53 +146,7 @@ public async Task CleanupTestCheckpointed()
Assert.Equal(0, batch.Count());
}
}

[Fact(Skip = "timing issues on build box")]
public async Task CleanupTestCheckpointAndTimeout()
{
(IMessageStore messageStore, ICheckpointStore checkpointStore) result = await this.GetMessageStore(180);
ICheckpointStore checkpointStore = result.checkpointStore;
using (IMessageStore messageStore = result.messageStore)
{
for (int i = 0; i < 100; i++)
{
await messageStore.Add("module1", this.GetMessage(i));
}

await Task.Delay(TimeSpan.FromSeconds(10));

for (int i = 0; i < 100; i++)
{
await messageStore.Add("module2", this.GetMessage(i));
}

IMessageIterator module2Iterator = messageStore.GetMessageIterator("module2");
IEnumerable<IMessage> batch = await module2Iterator.GetNext(100);
Assert.Equal(100, batch.Count());

IMessageIterator module1Iterator = messageStore.GetMessageIterator("module1");
batch = await module1Iterator.GetNext(100);
Assert.Equal(100, batch.Count());

await checkpointStore.SetCheckpointDataAsync("module2", new CheckpointData(99), CancellationToken.None);
await Task.Delay(TimeSpan.FromSeconds(130));

module2Iterator = messageStore.GetMessageIterator("module2");
batch = await module2Iterator.GetNext(100);
Assert.Equal(0, batch.Count());

module1Iterator = messageStore.GetMessageIterator("module1");
batch = await module1Iterator.GetNext(100);
Assert.Equal(100, batch.Count());

await Task.Delay(TimeSpan.FromSeconds(130));

module1Iterator = messageStore.GetMessageIterator("module1");
batch = await module1Iterator.GetNext(100);
Assert.Equal(0, batch.Count());
}
}


IMessage GetMessage(int i)
{
return new Message(TelemetryMessageSource.Instance,
Expand Down

0 comments on commit 2c4c3da

Please sign in to comment.