Skip to content

Commit

Permalink
Use latest Goose with rustls option
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiPolo committed Jul 2, 2020
1 parent daeb0c4 commit 73e1078
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 179 deletions.
185 changes: 10 additions & 175 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ reqwest = { version = "0.10", default-features = false, features = ["json", "rus
structopt = "0.3"
termcolor = "1.0"
uuid = { version = ">= 0.6", features = ["v4"] }
rand = "0.7.0"
rand = "0.7"
chrono = "0.4"
openapiv3 = "0.3.2"
openapiv3 = "0.3"
#openapi_utils = { path = "../../oasproxy/openapi_utils" }
openapi_utils = "0.2"
thiserror = "1.0"
Expand All @@ -38,12 +38,12 @@ env_logger = "0.7"
http = "*"
shellexpand = "2.0"
itertools = "0.9"
comfy-table = "0.1.0"
comfy-table = "0.1"
lazy_static = "*"
tokio = { version = "0.2", features = ["full"] }
#mauth-client = { path = "../mauth-client-rust"}
hyper = "*"
goose = "^0.8"
goose = { version = "0.8", default-features = false, features = ["rustls"] }


[profile.dev]
Expand Down
4 changes: 4 additions & 0 deletions src/performance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,17 @@ lazy_static! {

pub fn run(scenarios: &Vec<scenario::Scenario<'_>>, service: &service::Service, users: usize) {

// TODO: I need to put all the defaults here because the method that set them up also sets stuff I do not want.
let mut configuration: GooseConfiguration = Default::default();
configuration.hatch_rate = 1; // Make one user per second
configuration.users = Some(users); // How many users accessing simultaneously
configuration.run_time = (users + 60).to_string(); // End test after 1 minute after users all online
configuration.reset_stats = true; // Stats reset after hatching is completed so only count final 1 minute
configuration.status_codes = false; // Add or not stats about status codes
configuration.stats_log_format = "json".to_string();
configuration.log_file = "/tmp/minos_performance".to_string();
configuration.debug_log_format = "json".to_string();
configuration.debug_log_file = "/tmp/minos_performance".to_string();
configuration.host = "http://localhost:3000".to_string(); // Dummy. Goose needs this. we overwrite urls later
let goose_attack = GooseAttack::initialize_with_config(configuration).setup();

Expand Down

0 comments on commit 73e1078

Please sign in to comment.