Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-snake committed Jan 14, 2025
1 parent 0271314 commit 8313d15
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/internet_identity/tests/integration/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ fn should_retain_anchor_on_user_range_change() -> Result<(), CallError> {
},
}),
related_origins: None,
openid_google_client_id: None,
};

let canister_id = install_ii_canister_with_arg(&env, II_WASM.clone(), Some(config.clone()));
Expand Down Expand Up @@ -71,6 +72,7 @@ fn should_retain_config_after_none() -> Result<(), CallError> {
},
}),
related_origins: Some(related_origins),
openid_google_client_id: None,
};

let canister_id = install_ii_canister_with_arg(&env, II_WASM.clone(), Some(config.clone()));
Expand Down Expand Up @@ -115,6 +117,7 @@ fn should_override_partially() -> Result<(), CallError> {
},
}),
related_origins: Some(related_origins),
openid_google_client_id: None,
};

let canister_id = install_ii_canister_with_arg(&env, II_WASM.clone(), Some(config.clone()));
Expand All @@ -136,6 +139,7 @@ fn should_override_partially() -> Result<(), CallError> {
register_rate_limit: None,
captcha_config: Some(new_captcha.clone()),
related_origins: None,
openid_google_client_id: None,
};

let _ =
Expand All @@ -160,6 +164,7 @@ fn should_override_partially() -> Result<(), CallError> {
register_rate_limit: None,
captcha_config: None,
related_origins: Some(related_origins_2.clone()),
openid_google_client_id: None,
};

let _ =
Expand Down
4 changes: 4 additions & 0 deletions src/internet_identity/tests/integration/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ fn ii_canister_serves_webauthn_assets() -> Result<(), CallError> {
register_rate_limit: None,
captcha_config: None,
related_origins: Some(related_origins.clone()),
openid_google_client_id: None,
};
let canister_id = install_ii_canister_with_arg(&env, II_WASM.clone(), Some(config));

Expand Down Expand Up @@ -154,6 +155,7 @@ fn ii_canister_serves_webauthn_assets_after_upgrade() -> Result<(), CallError> {
register_rate_limit: None,
captcha_config: None,
related_origins: Some(related_origins.clone()),
openid_google_client_id: None,
};
let canister_id = install_ii_canister_with_arg(&env, II_WASM.clone(), Some(config));

Expand Down Expand Up @@ -191,6 +193,7 @@ fn ii_canister_serves_webauthn_assets_after_upgrade() -> Result<(), CallError> {
register_rate_limit: None,
captcha_config: None,
related_origins: Some(related_origins_2.clone()),
openid_google_client_id: None,
};

let _ = upgrade_ii_canister_with_arg(&env, canister_id, II_WASM.clone(), Some(config_2));
Expand Down Expand Up @@ -573,6 +576,7 @@ fn must_not_cache_well_known_webauthn() -> Result<(), CallError> {
register_rate_limit: None,
captcha_config: None,
related_origins: Some(related_origins.clone()),
openid_google_client_id: None,
};
let canister_id = install_ii_canister_with_arg(&env, II_WASM.clone(), Some(config));

Expand Down

0 comments on commit 8313d15

Please sign in to comment.