Skip to content

Commit

Permalink
Fix path to indico CLI (#234)
Browse files Browse the repository at this point in the history
* Fix path to indico CLI

* Increase p(95) acceptable duration in load tests
  • Loading branch information
nrobinaubertin authored Feb 6, 2023
1 parent 0094ce0 commit 345ae0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion load_tests/load-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const options = {
vus: 50,
thresholds: {
http_req_failed: ['rate<0.01'], // http errors should be less than 1%
http_req_duration: ['p(95)<800'], // 95 percent of response times must be below 800ms
http_req_duration: ['p(95)<1500'], // 95 percent of response times must be below 1500ms
},
};

Expand Down
2 changes: 1 addition & 1 deletion src/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ def _add_admin_action(self, event: ActionEvent) -> None:
indico_env_config = self._get_indico_env_config_str(container)

cmd = [
"/srv/indico/.local/bin/indico",
"/usr/local/bin/indico",
"autocreate",
"admin",
event.params["email"],
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def event_store_failure(arg):

indico_env_config = charm._get_indico_env_config_str(container)
expected_cmd = [
"/srv/indico/.local/bin/indico",
"/usr/local/bin/indico",
"autocreate",
"admin",
email,
Expand Down Expand Up @@ -187,7 +187,7 @@ def event_store_failure(arg):

indico_env_config = charm._get_indico_env_config_str(container)
expected_cmd = [
"/srv/indico/.local/bin/indico",
"/usr/local/bin/indico",
"autocreate",
"admin",
email,
Expand Down

0 comments on commit 345ae0b

Please sign in to comment.