-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing test that checks for runtime loaded assembly when running…
… in serial (#15637)
- Loading branch information
1 parent
f760711
commit 421e48e
Showing
6 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/Engine/TestCodeBlockNodeSecurityIssue/TestCodeBlockNodeSecurityIssue.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace TestCodeBlockNodeSecurityIssue | ||
{ | ||
/// <summary> | ||
/// This project assembly is used in | ||
/// Dynamo.Tests.CodeBlockNodeTests.ImportStatementInCodeBlock_DoesNotLoadAssemblyIntoProcess | ||
/// to test a security issue in CodeBlockNodes where an import statement | ||
/// would unexpectedly load the assembly into the process. | ||
/// This should be prevented as import statements are not permitted in CBNs | ||
/// and therefore should not be loaded into the process in the first place. | ||
/// NOTE: This assembly shouldn't be used in any other tests. | ||
/// </summary> | ||
public class TestCodeBlockNodeSecurityIssue | ||
{ | ||
|
||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
test/Engine/TestCodeBlockNodeSecurityIssue/TestCodeBlockNodeSecurityIssue.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<ImportGroup Label="PropertySheets"> | ||
<Import Project="$(SolutionDir)Config/CS_SDK.props" /> | ||
</ImportGroup> | ||
|
||
</Project> |