Skip to content

Commit

Permalink
Integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejressel committed Mar 17, 2024
1 parent 5ee7fa0 commit aa06b08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/simple/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@ use assert_cmd::prelude::*;
use std::str;
use anyhow::anyhow;
use serde_json::{json, Value};

#[test]
fn test_integration() -> Result<(), anyhow::Error> {

Command::new("pulumi")
.args(["stack", "select", "test"])
.current_dir(".")
.assert()
.success();

Command::new("pulumi")
.args(["up", "-y"])
.current_dir(".")
.env("PULUMI_CONFIG_PASSPHRASE", " ")
.env("PULUMI_STACK", "test")
.assert()
.success();

let binding = Command::new("pulumi")
.args(["stack", "export"])
.current_dir(".")
.env("PULUMI_CONFIG_PASSPHRASE", " ")
.env("PULUMI_STACK", "test")
.assert()
.success();
let stack = &binding
Expand Down

0 comments on commit aa06b08

Please sign in to comment.