Major changes in package acquisition

This breaks a bunch of things that depended on the older version of this method
This commit is contained in:
2023-06-18 22:44:43 +02:00
parent 60dfb368e6
commit e609caf892
3 changed files with 53 additions and 17 deletions

View File

@ -22,8 +22,8 @@ public class checkForNewerStuffTest {
utils.readPacmanConfig();
// Act
utils.getEveryPackageNameAndVersionViaFolderName("/tmp/before_update.txt");
utils.getEveryPackageNameAndVersionViaFolderName("/tmp/after_update.txt");
utils.getEveryPackageNameAndVersion("before", "/tmp/packages_before.txt");
utils.getEveryPackageNameAndVersion("after", "/tmp/packages_after.txt");
// Assert
File.Exists("/tmp/before_update.txt").Should().BeTrue();
@ -35,7 +35,7 @@ public class checkForNewerStuffTest {
// Arrange
PacserverUtils utils = new PacserverUtils();
utils.readPacmanConfig();
utils.getEveryPackageNameAndVersionViaFolderName("/tmp/before_update.txt");
utils.getEveryPackageNameAndVersion("before", "/tmp/packages_before.txt");
// Act
List<String> packageList = utils.packageNamesAndVersion;
@ -52,7 +52,7 @@ public class checkForNewerStuffTest {
utils.pacmanDatabaseDirectory = "/tmp/";
// Act
Action act = () => utils.getEveryPackageNameAndVersionViaFolderName("/tmp/before_update.txt");
Action act = () => utils.getEveryPackageNameAndVersion("before", "/tmp/packages_before.txt");
// Assert
act.Should().Throw<Exception>().WithMessage("How did you execute this without any packages?");