Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Commit

Permalink
Add missing test projects to test.ps1 (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Bommarito authored Nov 6, 2018
1 parent 8cc84ca commit 36d7ad1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
28 changes: 16 additions & 12 deletions test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,28 @@ Function Run-Tests {

$xUnitExe = (Join-Path $PSScriptRoot "packages\xunit.runner.console\tools\xunit.console.exe")

$TestAssemblies = "tests\Tests.Gallery.Maintenance\bin\$Configuration\Tests.Gallery.Maintenance.dll", `
$TestAssemblies = "tests\Monitoring.RebootSearchInstance.Tests\bin\$Configuration\NuGet.Monitoring.RebootSearchInstance.Tests.dll", `
"tests\NuGet.Jobs.Common.Tests\bin\$Configuration\NuGet.Jobs.Common.Tests.dll", `
"tests\NuGet.Services.Revalidate.Tests\bin\$Configuration\NuGet.Services.Revalidate.Tests.dll", `
"tests\NuGet.Services.Validation.Orchestrator.Tests\bin\$Configuration\NuGet.Services.Validation.Orchestrator.Tests.dll", `
"tests\StatusAggregator\bin\$Configuration\StatusAggregator.dll", `
"tests\Tests.CredentialExpiration\bin\$Configuration\Tests.CredentialExpiration.dll", `
"tests\Tests.Gallery.Maintenance\bin\$Configuration\Tests.Gallery.Maintenance.dll", `
"tests\Tests.Search.GenerateAuxiliaryData\bin\$Configuration\Tests.Search.GenerateAuxiliaryData.dll", `
"tests\Tests.Stats.AggregateCdnDownloadsInGallery\bin\$Configuration\Tests.Stats.AggregateCdnDownloadsInGallery.dll", `
"tests\Tests.Stats.CollectAzureCdnLogs\bin\$Configuration\Tests.Stats.CollectAzureCdnLogs.dll", `
"tests\Tests.Stats.CollectAzureChinaCdnLogs\bin\$Configuration\Tests.Stats.CollectAzureChinaCdnLogs.dll", `
"tests\Tests.Stats.ImportAzureCdnStatistics\bin\$Configuration\Tests.Stats.ImportAzureCdnStatistics.dll", `
"tests\Validation.Helper.Tests\bin\$Configuration\Validation.Helper.Tests.dll",`
"tests\Tests.Stats.CollectAzureChinaCDNLogs\bin\$Configuration\Tests.Stats.CollectAzureChinaCDNLogs.dll", `
"tests\NuGet.Services.Validation.Orchestrator.Tests\bin\$Configuration\NuGet.Services.Validation.Orchestrator.Tests.dll", `
"tests\NuGet.Services.Revalidate.Tests\bin\$Configuration\NuGet.Services.Revalidate.Tests.dll", `
"tests\Validation.Common.Job.Tests\bin\$Configuration\Validation.Common.Job.Tests.dll", `
"tests\Validation.Common.Tests\bin\$Configuration\Validation.Common.Tests.dll", `
"tests\Validation.Helper.Tests\bin\$Configuration\Validation.Helper.Tests.dll",`
"tests\Validation.PackageSigning.Core.Tests\bin\$Configuration\Validation.PackageSigning.Core.Tests.dll", `
"tests\Validation.PackageSigning.ProcessSignature.Tests\bin\$Configuration\Validation.PackageSigning.ProcessSignature.Tests.dll", `
"tests\Validation.PackageSigning.ValidateCertificate.Tests\bin\$Configuration\Validation.PackageSigning.ValidateCertificate.Tests.dll", `
"tests\Validation.PackageSigning.RevalidateCertificate.Tests\bin\$Configuration\Validation.PackageSigning.RevalidateCertificate.Tests.dll", `
"tests\Validation.PackageSigning.Core.Tests\bin\$Configuration\Validation.PackageSigning.Core.Tests.dll", `
"tests\Validation.Common.Job.Tests\bin\$Configuration\Validation.Common.Job.Tests.dll", `
"tests\StatusAggregator\bin\$Configuration\StatusAggregator.dll", `
"tests\Monitoring.RebootSearchInstance.Tests\bin\$Configuration\NuGet.Monitoring.RebootSearchInstance.Tests.dll", `
"tests\Validation.Symbols.Tests\bin\$Configuration\Validation.Symbols.Tests.dll", `
"tests\Validation.Symbols.Tests\bin\$Configuration\Validation.Symbols.Core.Tests.dll"
"tests\Validation.PackageSigning.ScanAndSign.Tests\bin\$Configuration\Validation.PackageSigning.ScanAndSign.Tests.dll", `
"tests\Validation.PackageSigning.ValidateCertificate.Tests\bin\$Configuration\Validation.PackageSigning.ValidateCertificate.Tests.dll", `
"tests\Validation.Symbols.Tests\bin\$Configuration\Validation.Symbols.Core.Tests.dll", `
"tests\Validation.Symbols.Tests\bin\$Configuration\Validation.Symbols.Tests.dll"

$TestCount = 0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void GetsExpectedBody(EmailFormat format)
{
var credentialMessage = AreCredentialsExpired
? $"{credential.Description} - has expired."
: $"{credential.Description} - expires in {(credential.Expires - JobRunTime).TotalDays}.";
: $"{credential.Description} - expires in {(int)(credential.Expires - JobRunTime).TotalDays} day(s).";

Assert.Contains(
credentialMessage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void TwoJobsInSameDayShouldNotSendDuplicateExpiringEmails()
}

[Fact]
public void OutdatedCursorShouldNotSendExiringToExpiredEmails()
public void OutdatedCursorShouldNotSendExpiringToExpiredEmails()
{
// Arange
var cursorTime = new DateTimeOffset(year: 2018, month: 4, day: 10, hour: 8, minute: 2, second: 2, offset: TimeSpan.FromSeconds(0));
Expand Down Expand Up @@ -145,7 +145,7 @@ public void OutdatedCursorShouldNotSendExiringToExpiredEmails()
}

[Fact]
public void GetMaxandGetMinAreAsExpected()
public void GetMaxAndGetMinAreAsExpected()
{
// Arange
var cursorTime = new DateTimeOffset(year: 2018, month: 4, day: 10, hour: 8, minute: 2, second: 2, offset: TimeSpan.FromSeconds(0));
Expand Down

0 comments on commit 36d7ad1

Please sign in to comment.