File tree Expand file tree Collapse file tree 3 files changed +3
-72
lines changed
Expand file tree Collapse file tree 3 files changed +3
-72
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ is not reproducible, and should only be used for local testing.
111111It is possible to generate the content for a scenario file by setting the environment variable ` GENERATE_SCENARIO=true ` :
112112
113113``` bash
114- env GENERATE_SCENARIO=true DATABASE_URL=postgresql://postgres:trustify@localhost:5432/trustify cargo run --release
114+ env GENERATE_SCENARIO=true DATABASE_URL=postgresql://postgres:trustify@localhost:5432/trustify cargo run --release
115115```
116116
117117## Request timeouts
@@ -143,11 +143,11 @@ debug = true
143143cargo clean ; cargo build --release
144144```
145145
146- * Open a terminal and start trustify with heaptrack and graphql feature
146+ * Open a terminal and start trustify with heaptrack
147147
148148``` shell
149149cd target/release/
150- TRUSTD_WITH_GRAPHQL=true heaptrack ./trustd api --db-password eggs --devmode --auth-disabled
150+ heaptrack ./trustd api --db-password eggs --devmode --auth-disabled
151151```
152152
153153* Run loadtest
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11// The simplest loadtest example
22mod db;
3- mod graphql;
43mod oidc;
54mod restapi;
65mod scenario;
76mod utils;
87mod website;
98
109use crate :: {
11- // graphql::*,
1210 oidc:: { OpenIdTokenProvider , OpenIdTokenProviderConfigArguments } ,
1311 restapi:: * ,
1412 website:: * ,
@@ -252,24 +250,6 @@ async fn main() -> Result<(), anyhow::Error> {
252250 }
253251 s
254252 } )
255- // .register_scenario(
256- // scenario!("GraphQLUser")
257- // // .set_weight(1)?
258- // .register_transaction(custom_client.set_name("logon"))
259- // // After each transactions runs, sleep randomly from 5 to 15 seconds.
260- // .set_wait_time(
261- // Duration::from_secs(wait_time_from),
262- // Duration::from_secs(wait_time_to),
263- // )?
264- // .register_transaction(tx!(g_get_advisories))
265- // .register_transaction(tx!(g_get_advisory_by_id))
266- // .register_transaction(tx!(g_get_organization_by_name))
267- // .register_transaction(tx!(g_get_sbom_by_id))
268- // .register_transaction(tx!(g_get_sbom_by_labels))
269- // .register_transaction(tx!(g_cves_by_sbom))
270- // .register_transaction(tx!(g_get_vulnerability_by_id))
271- // .register_transaction(tx!(g_get_vulnerabilities)),
272- // )
273253 . execute ( )
274254 . await ?;
275255
You can’t perform that action at this time.
0 commit comments