Skip to content

Commit

Permalink
fix(backends): team project list (shuttle-hq#1816)
Browse files Browse the repository at this point in the history
* fix(backends): team project list

* fix: rename permit testing key
  • Loading branch information
jonaro00 committed Jul 1, 2024
1 parent 5b5ed78 commit 5efedf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backends/src/client/permit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
6 changes: 3 additions & 3 deletions backends/tests/integration/permit_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand All @@ -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,
);

Expand Down

0 comments on commit 5efedf7

Please sign in to comment.