Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ is not reproducible, and should only be used for local testing.
It is possible to generate the content for a scenario file by setting the environment variable `GENERATE_SCENARIO=true`:

```bash
env GENERATE_SCENARIO=true DATABASE_URL=postgresql://postgres:trustify@localhost:5432/trustify cargo run --release
env GENERATE_SCENARIO=true DATABASE_URL=postgresql://postgres:trustify@localhost:5432/trustify cargo run --release
```

## Request timeouts
Expand Down Expand Up @@ -143,11 +143,11 @@ debug = true
cargo clean ; cargo build --release
```

* Open a terminal and start trustify with heaptrack and graphql feature
* Open a terminal and start trustify with heaptrack

```shell
cd target/release/
TRUSTD_WITH_GRAPHQL=true heaptrack ./trustd api --db-password eggs --devmode --auth-disabled
heaptrack ./trustd api --db-password eggs --devmode --auth-disabled
```

* Run loadtest
Expand Down
49 changes: 0 additions & 49 deletions src/graphql.rs

This file was deleted.

20 changes: 0 additions & 20 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
// The simplest loadtest example
mod db;
mod graphql;
mod oidc;
mod restapi;
mod scenario;
mod utils;
mod website;

use crate::{
// graphql::*,
oidc::{OpenIdTokenProvider, OpenIdTokenProviderConfigArguments},
restapi::*,
website::*,
Expand Down Expand Up @@ -252,24 +250,6 @@ async fn main() -> Result<(), anyhow::Error> {
}
s
})
// .register_scenario(
// scenario!("GraphQLUser")
// // .set_weight(1)?
// .register_transaction(custom_client.set_name("logon"))
// // After each transactions runs, sleep randomly from 5 to 15 seconds.
// .set_wait_time(
// Duration::from_secs(wait_time_from),
// Duration::from_secs(wait_time_to),
// )?
// .register_transaction(tx!(g_get_advisories))
// .register_transaction(tx!(g_get_advisory_by_id))
// .register_transaction(tx!(g_get_organization_by_name))
// .register_transaction(tx!(g_get_sbom_by_id))
// .register_transaction(tx!(g_get_sbom_by_labels))
// .register_transaction(tx!(g_cves_by_sbom))
// .register_transaction(tx!(g_get_vulnerability_by_id))
// .register_transaction(tx!(g_get_vulnerabilities)),
// )
.execute()
.await?;

Expand Down