diff --git a/src/SecTester.Scan/Models/TestType.cs b/src/SecTester.Scan/Models/TestType.cs index 9752058..a9e4e42 100644 --- a/src/SecTester.Scan/Models/TestType.cs +++ b/src/SecTester.Scan/Models/TestType.cs @@ -1,3 +1,5 @@ +using System.Runtime.Serialization; + namespace SecTester.Scan.Models; public enum TestType @@ -10,6 +12,8 @@ public enum TestType CommonFiles, CookieSecurity, Csrf, + [EnumMember(Value = "cve_test")] + Cve, DateManipulation, DefaultLoginLocation, DirectoryListing, diff --git a/test/SecTester.Bus.Tests/Dispatchers/MessageSerializerTests.cs b/test/SecTester.Bus.Tests/Dispatchers/MessageSerializerTests.cs index 0e175e7..0111a4a 100644 --- a/test/SecTester.Bus.Tests/Dispatchers/MessageSerializerTests.cs +++ b/test/SecTester.Bus.Tests/Dispatchers/MessageSerializerTests.cs @@ -72,6 +72,7 @@ public class MessageSerializerTests new object[] { TestType.CommonFiles, @"""common_files""" }, new object[] { TestType.CookieSecurity, @"""cookie_security""" }, new object[] { TestType.Csrf, @"""csrf""" }, + new object[] { TestType.Cve, @"""cve_test""" }, new object[] { TestType.DateManipulation, @"""date_manipulation""" }, new object[] { TestType.DefaultLoginLocation, @"""default_login_location""" }, new object[] { TestType.DirectoryListing, @"""directory_listing""" },