Skip to content

Commit

Permalink
Enable url discovery tests for automatticwidgets.wpcomstaging.com (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkocer authored Aug 9, 2024
1 parent 25bc85c commit 3be299f
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions wp_api_integration_tests/tests/test_login_immut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ use wp_api::login::WpLoginClient;
use wp_api_integration_tests::{AssertResponse, AsyncWpNetworking};

const LOCALHOST_AUTH_URL: &str = "http://localhost/wp-admin/authorize-application.php";
//const AUTOMATTIC_WIDGETS_AUTH_URL: &str =
// "https://automatticwidgets.wpcomstaging.com/wp-admin/authorize-application.php";
const AUTOMATTIC_WIDGETS_AUTH_URL: &str =
"https://automatticwidgets.wpcomstaging.com/wp-admin/authorize-application.php";

#[rstest]
#[case("http://localhost", LOCALHOST_AUTH_URL)]
#[case("http://localhost/wp-admin", LOCALHOST_AUTH_URL)]
#[case("http://localhost/wp-admin.php", LOCALHOST_AUTH_URL)]
#[case("http://localhost/wp-admin/", LOCALHOST_AUTH_URL)]
#[case("http://localhost/wp-json", LOCALHOST_AUTH_URL)]
//#[case(
// "https://automatticwidgets.wpcomstaging.com/",
// AUTOMATTIC_WIDGETS_AUTH_URL
//)]
//#[case(
// "https://automatticwidgets.wpcomstaging.com/wp-admin",
// AUTOMATTIC_WIDGETS_AUTH_URL
//)]
//#[case(
// "https://automatticwidgets.wpcomstaging.com/wp-admin.php",
// AUTOMATTIC_WIDGETS_AUTH_URL
//)]
//#[case(
// "https://automatticwidgets.wpcomstaging.com/wp-admin/",
// AUTOMATTIC_WIDGETS_AUTH_URL
//)]
//#[case(
// "https://automatticwidgets.wpcomstaging.com/wp-json",
// AUTOMATTIC_WIDGETS_AUTH_URL
//)]
//#[case("automatticwidgets.wpcomstaging.com/ ", AUTOMATTIC_WIDGETS_AUTH_URL)]
#[case(
"https://automatticwidgets.wpcomstaging.com/",
AUTOMATTIC_WIDGETS_AUTH_URL
)]
#[case(
"https://automatticwidgets.wpcomstaging.com/wp-admin",
AUTOMATTIC_WIDGETS_AUTH_URL
)]
#[case(
"https://automatticwidgets.wpcomstaging.com/wp-admin.php",
AUTOMATTIC_WIDGETS_AUTH_URL
)]
#[case(
"https://automatticwidgets.wpcomstaging.com/wp-admin/",
AUTOMATTIC_WIDGETS_AUTH_URL
)]
#[case(
"https://automatticwidgets.wpcomstaging.com/wp-json",
AUTOMATTIC_WIDGETS_AUTH_URL
)]
#[case("automatticwidgets.wpcomstaging.com/ ", AUTOMATTIC_WIDGETS_AUTH_URL)]
#[tokio::test]
#[serial]
async fn test_login_flow(#[case] site_url: &str, #[case] expected_auth_url: &str) {
Expand Down

0 comments on commit 3be299f

Please sign in to comment.