Skip to content

Commit c4b2d5b

Browse files
committed
Modify keep archive test to verify downloaded archive paths
1 parent 6fd1ccf commit c4b2d5b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/OctoshiftCLI.Tests/gei/Commands/MigrateRepo/MigrateRepoCommandHandlerTests.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ await _handler.Invoking(async x => await x.Handle(new MigrateRepoCommandArgs
16801680
}
16811681

16821682
[Fact]
1683-
public async Task Keep_Archive_Does_Not_Call_DeleteIfExists()
1683+
public async Task Keep_Archive_Does_Not_Call_DeleteIfExists_And_Logs_Downloaded_Archive_Paths()
16841684
{
16851685
_mockTargetGithubApi.Setup(x => x.GetOrganizationId(TARGET_ORG).Result).Returns(GITHUB_ORG_ID);
16861686
_mockTargetGithubApi.Setup(x => x.CreateGhecMigrationSource(GITHUB_ORG_ID).Result).Returns(MIGRATION_SOURCE_ID);
@@ -1737,6 +1737,9 @@ public async Task Keep_Archive_Does_Not_Call_DeleteIfExists()
17371737

17381738
_mockFileSystemProvider.Verify(x => x.DeleteIfExists(GIT_ARCHIVE_FILE_PATH), Times.Never);
17391739
_mockFileSystemProvider.Verify(x => x.DeleteIfExists(METADATA_ARCHIVE_FILE_PATH), Times.Never);
1740+
1741+
_mockOctoLogger.Verify(x => x.LogInformation($"Git archive was successfully downloaded at \"{GIT_ARCHIVE_FILE_PATH}\""));
1742+
_mockOctoLogger.Verify(x => x.LogInformation($"Metadata archive was successfully downloaded at \"{METADATA_ARCHIVE_FILE_PATH}\""));
17401743
}
17411744

17421745
[Fact]

0 commit comments

Comments
 (0)