Skip to content

Commit

Permalink
Update the signed package file to uniqure namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
saintentropy committed Dec 12, 2019
1 parent de2a7e6 commit 0005f38
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void CheckAssemblyForValidCertificateTest()
{
var executingDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var directory = new DirectoryInfo(executingDirectory);
var testFilePath = Path.Combine(directory.Parent.Parent.Parent.FullName, "test", "pkgs_signed", "Signed Package", "bin", "Package.dll");
var testFilePath = Path.Combine(directory.Parent.Parent.Parent.FullName, "test", "pkgs_signed", "Signed Package", "bin", "SignedPackage.dll");

Assert.IsTrue(File.Exists(testFilePath));

Expand Down
6 changes: 2 additions & 4 deletions test/Libraries/PackageManagerTests/PackageLoaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,6 @@ public void ScanPackageDirectoryWithCheckingCertificatesEnabledWillNotLoadPackag
}

[Test]
//Todo need to add a new signed package file with unique name space
[Category("Failure")]
public void ScanPackageDirectoryWithCheckingCertificatesEnabledWillLoadPackageWithValidCertificate()
{
var loader = new PackageLoader(new[] { PackagesDirectory }, new[] { PackagesDirectorySigned });
Expand All @@ -557,11 +555,11 @@ public void ScanPackageDirectoryWithCheckingCertificatesEnabledWillLoadPackageWi

// Verify that package resolved successfully
var libs = CurrentDynamoModel.LibraryServices.ImportedLibraries.ToList();
Assert.IsTrue(libs.Contains(Path.Combine(PackagesDirectorySigned, "Signed Package", "bin", "Package.dll")));
Assert.IsTrue(libs.Contains(Path.Combine(PackagesDirectorySigned, "Signed Package", "bin", "SignedPackage.dll")));

// Verify that the package are imported successfully
var entries = CurrentDynamoModel.SearchModel.SearchEntries.ToList();
Assert.IsTrue(entries.Any(x => x.FullName == "Package.Package.Package.Hello"));
Assert.IsTrue(entries.Any(x => x.FullName == "SignedPackage.SignedPackage.SignedPackage.Hello"));
}

[Test]
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion test/pkgs_signed/Signed Package/pkg.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"license":"","file_hash":null,"name":"Package","version":"1.0.0","description":"original package","group":"","keywords":null,"dependencies":[],"contents":"","engine_version":"2.1.0.7840","engine":"dynamo","engine_metadata":"","site_url":"","repository_url":"","contains_binaries":true,"node_libraries":["Package, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"]}
{"license":"","file_hash":null,"name":"Package","version":"1.0.0","description":"original package","group":"","keywords":null,"dependencies":[],"contents":"","engine_version":"2.1.0.7840","engine":"dynamo","engine_metadata":"","site_url":"","repository_url":"","contains_binaries":true,"node_libraries":["SignedPackage, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"]}

0 comments on commit 0005f38

Please sign in to comment.