mod utils;
use std::collections::HashMap;
use utils::consts::ENVIRONMENT_SCHEMA;
use utils::environment::Environment;
#[test]
fn environment_file() {
let mut env = Environment::init(4012);
env.grafbase_init();
env.write_schema(ENVIRONMENT_SCHEMA);
let dev_output = env.grafbase_dev_output();
assert!(dev_output.is_err());
env.set_variables(HashMap::from([(
"ISSUER_URL".to_owned(),
"https://example.com".to_owned(),
)]));
env.grafbase_dev();
let client = env.create_client();
client.poll_endpoint(30, 300);
}