diff --git a/backends/src/client/permit.rs b/backends/src/client/permit.rs index 1d1ae93b6..d12701a11 100644 --- a/backends/src/client/permit.rs +++ b/backends/src/client/permit.rs @@ -578,8 +578,8 @@ impl PermissionsDal for Client { &self.proj_id, &self.env_id, Some(true), - Some(100), None, + Some(100), Some("default"), Some(&format!("Team:{team_id}")), Some("parent"), diff --git a/backends/tests/integration/permit_tests.rs b/backends/tests/integration/permit_tests.rs index 1488059af..e7894e023 100644 --- a/backends/tests/integration/permit_tests.rs +++ b/backends/tests/integration/permit_tests.rs @@ -79,8 +79,8 @@ mod needs_docker { impl AsyncTestContext for Wrap { async fn setup() -> Self { let api_url = "https://api.eu-central-1.permit.io"; - let api_key = std::env::var("PERMIT_API_KEY") - .expect("PERMIT_API_KEY to be set. You can copy the testing API key from the Testing environment on Permit.io."); + let api_key = std::env::var("PERMIT_TEST_API_KEY") + .expect("PERMIT_TEST_API_KEY to be set. You can copy the testing API key from the Testing environment on Permit.io."); PDP.get_or_init(|| { println!("Starting PDP container..."); @@ -91,7 +91,7 @@ mod needs_docker { api_url.to_owned(), PDP.get().unwrap().uri.clone(), "default".to_owned(), - std::env::var("PERMIT_ENV").unwrap_or_else(|_| "testing".to_owned()), + "testing".to_owned(), api_key, );