mirror of
https://github.com/bartvdbraak/keyweave.git
synced 2025-04-28 15:21:21 +00:00
chore: add debug output and logging
This commit is contained in:
parent
068e4063fc
commit
b7b2a3de6a
1 changed files with 9 additions and 7 deletions
16
tests/e2e.rs
16
tests/e2e.rs
|
@ -12,22 +12,24 @@ static FIREWALL_KEYVAULT: &str = "bvdbkeyweavetweukvt2";
|
||||||
static NON_EXISTENT_KEYVAULT: &str = "bvdbkeyweavetweukvt3";
|
static NON_EXISTENT_KEYVAULT: &str = "bvdbkeyweavetweukvt3";
|
||||||
|
|
||||||
fn azure_cli_login(client_id: String, tenant_id: String, subscription_id: String) -> Result<(), std::io::Error> {
|
fn azure_cli_login(client_id: String, tenant_id: String, subscription_id: String) -> Result<(), std::io::Error> {
|
||||||
Command::new("az")
|
println!("Executing 'az login' with client ID: {}", client_id);
|
||||||
|
let login_output = Command::new("az")
|
||||||
.arg("login")
|
.arg("login")
|
||||||
.arg("--identity")
|
.arg("--identity")
|
||||||
.arg("--username")
|
.arg("--username")
|
||||||
.arg(client_id)
|
.arg(&client_id)
|
||||||
.arg("--tenant")
|
.arg("--tenant")
|
||||||
.arg(tenant_id)
|
.arg(&tenant_id)
|
||||||
.output()?;
|
.output()?;
|
||||||
|
println!("Login output: {:?}", login_output);
|
||||||
Command::new("az")
|
println!("Executing 'az account set' with subscription ID: {}", subscription_id);
|
||||||
|
let account_output = Command::new("az")
|
||||||
.arg("account")
|
.arg("account")
|
||||||
.arg("set")
|
.arg("set")
|
||||||
.arg("--subscription")
|
.arg("--subscription")
|
||||||
.arg(subscription_id)
|
.arg(&subscription_id)
|
||||||
.output()?;
|
.output()?;
|
||||||
|
println!("Account output: {:?}", account_output);
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue