summaryrefslogtreecommitdiff
path: root/tests/integration_tests.rs
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-06-19 17:18:07 -0600
committermo khan <mo@mokhan.ca>2025-06-19 17:18:07 -0600
commit5fc7a6f0d477b7dcb9489f7b6841b01d7964fdbe (patch)
tree53c9e0bf5261ef078a1c33f0c9e683388e21fb05 /tests/integration_tests.rs
parentf08ef97f4894fde8feff08bb91bed1e1c1105b83 (diff)
refactor: rename PolicyServer to CheckService
Diffstat (limited to 'tests/integration_tests.rs')
-rw-r--r--tests/integration_tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index 28cdf959..a3603c11 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -1,11 +1,11 @@
-use authzd::PolicyServer;
+use authzd::CheckService;
use envoy_types::ext_authz::v3::pb::Authorization;
mod common;
#[tokio::test]
async fn test_success_response() {
- let server = PolicyServer::default();
+ let server = CheckService::default();
let headers = common::create_headers_with_auth("Bearer valid-token");
let request = common::create_test_request_with_headers(headers);
@@ -22,7 +22,7 @@ async fn test_success_response() {
#[tokio::test]
async fn test_multiple() {
- let server = PolicyServer::default();
+ let server = CheckService::default();
let test_cases = vec![
("Bearer valid-token", true),