summaryrefslogtreecommitdiff
path: root/tests/integration_tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration_tests.rs')
-rw-r--r--tests/integration_tests.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index 6e181f26..f7093600 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -14,7 +14,7 @@ fn authorizer() -> Arc<dyn authzd::Authorizer + Send + Sync> {
#[tokio::test]
async fn test_success_response() {
let server = CheckService::new(authorizer());
- let request = tonic::Request::new(factory_bot::create_request(|item: &mut HttpRequest| {
+ let request = tonic::Request::new(factory_bot::build_request(|item: &mut HttpRequest| {
item.headers = factory_bot::build_headers(vec![(
"authorization".to_string(),
"Bearer valid-token".to_string(),
@@ -43,7 +43,7 @@ async fn test_multiple() {
];
for (auth_value, should_succeed) in test_cases {
- let request = tonic::Request::new(factory_bot::create_request(|item: &mut HttpRequest| {
+ let request = tonic::Request::new(factory_bot::build_request(|item: &mut HttpRequest| {
item.headers = factory_bot::build_headers(vec![(
"authorization".to_string(),
auth_value.to_string(),