@@ -29,7 +29,7 @@ def test_missing_parameters(self, mock_config):
29
29
VIEW_URL ,
30
30
data = payload ,
31
31
content_type = "application/json" ,
32
- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
32
+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
33
33
)
34
34
self .assertEqual (response .status_code , 400 )
35
35
self .assertIn ("Missing required parameters" , response .data )
@@ -45,7 +45,7 @@ def test_invalid_signature(self, mock_config):
45
45
VIEW_URL ,
46
46
data = payload ,
47
47
content_type = "application/json" ,
48
- HTTP_X_GEN_AI_AUTH_SIGNATURE = wrong_sig ,
48
+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = wrong_sig ,
49
49
)
50
50
self .assertEqual (response .status_code , 403 )
51
51
@@ -55,7 +55,7 @@ def test_owner_not_found(self, mock_config):
55
55
sig , serialized_data = sign_payload (payload )
56
56
response = self .client .post (
57
57
VIEW_URL ,
58
- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
58
+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
59
59
data = serialized_data ,
60
60
content_type = "application/json" ,
61
61
)
@@ -70,7 +70,7 @@ def test_no_installation(self, mock_config):
70
70
VIEW_URL ,
71
71
data = data ,
72
72
content_type = "application/json" ,
73
- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
73
+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
74
74
)
75
75
76
76
self .assertEqual (response .status_code , 200 )
@@ -92,7 +92,7 @@ def test_authorized(self, mock_config):
92
92
VIEW_URL ,
93
93
data = data ,
94
94
content_type = "application/json" ,
95
- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
95
+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
96
96
)
97
97
self .assertEqual (response .status_code , status .HTTP_200_OK )
98
98
self .assertEqual (response .data , {"is_valid" : True })
@@ -114,7 +114,7 @@ def test_unauthorized(self, mock_config):
114
114
VIEW_URL ,
115
115
data = data ,
116
116
content_type = "application/json" ,
117
- HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
117
+ HTTP_HTTP_X_GEN_AI_AUTH_SIGNATURE = sig ,
118
118
)
119
119
self .assertEqual (response .status_code , 200 )
120
120
self .assertEqual (response .data , {"is_valid" : False })
0 commit comments