18 #include "../suricata-common.h"
20 #include "../detect-engine.h"
22 #include "../detect-http2.h"
24 #include "../util-unittest.h"
30 static int DetectHTTP2frameTypeParseTest01 (
void)
36 "alert http2 any any -> any any (http2.frametype:GOAWAY; sid:1; rev:1;)");
48 UtRegisterTest(
"DetectHTTP2frameTypeParseTest01", DetectHTTP2frameTypeParseTest01);
55 static int DetectHTTP2errorCodeParseTest01 (
void)
61 "alert http2 any any -> any any (http2.errorcode:NO_ERROR; sid:1; rev:1;)");
70 UtRegisterTest(
"DetectHTTP2errorCodeParseTest01", DetectHTTP2errorCodeParseTest01);
77 static int DetectHTTP2priorityParseTest01 (
void)
83 "alert http2 any any -> any any (http2.priority:>100; sid:1; rev:1;)");
92 UtRegisterTest(
"DetectHTTP2priorityParseTest01", DetectHTTP2priorityParseTest01);
99 static int DetectHTTP2windowParseTest01 (
void)
105 "alert http2 any any -> any any (http2.window:<42; sid:1; rev:1;)");
114 UtRegisterTest(
"DetectHTTP2windowParseTest01", DetectHTTP2windowParseTest01);
122 static int DetectHTTP2settingsParseTest01 (
void)
128 "alert http2 any any -> any any (http2.settings:SETTINGS_MAX_HEADER_LIST_SIZE >1024; sid:1; rev:1;)");
137 UtRegisterTest(
"DetectHTTP2settingsParseTest01", DetectHTTP2settingsParseTest01);
145 static int DetectHTTP2sizeUpdateParseTest01 (
void)
151 "alert http2 any any -> any any (http2.size_update:>4096; sid:1; rev:1;)");
160 UtRegisterTest(
"DetectHTTP2sizeUpdateParseTest01", DetectHTTP2sizeUpdateParseTest01);