Skip to content

Commit cb1dee1

Browse files
helio-frotactron
authored andcommitted
chore: graphql removed from trustify
1 parent b982a48 commit cb1dee1

File tree

3 files changed

+3
-72
lines changed

3 files changed

+3
-72
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ is not reproducible, and should only be used for local testing.
111111
It 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
143143
cargo 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
149149
cd 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

src/graphql.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/main.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
// The simplest loadtest example
22
mod db;
3-
mod graphql;
43
mod oidc;
54
mod restapi;
65
mod scenario;
76
mod utils;
87
mod website;
98

109
use 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

0 commit comments

Comments
 (0)