Skip to content

Commit

Permalink
update docs script
Browse files Browse the repository at this point in the history
to create a force_user key
  • Loading branch information
sni committed May 19, 2023
1 parent d476bbb commit a9ab4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/thruk_update_docs_rest.pl
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ sub _update_docs {
`mkdir -p var/broadcast; cp t/scenarios/rest_api/omd/broadcast.json var/broadcast/broadcast.json`;
`mkdir -p var/downtimes; cp t/scenarios/cli_api/omd/1.tsk var/downtimes/9999.tsk`;
`mkdir -p var/reports; cp t/scenarios/cli_api/omd/1.rpt var/reports/9999.rpt`;
my $system_api_key = decode_json(`./script/thruk r -d "comment=test" -d "system=1" -d "roles=admin" /thruk/api_keys`);
my $system_api_key = decode_json(`./script/thruk r -d "comment=test" -d "system=1" -d "roles=admin" -d "force_user=test" /thruk/api_keys`);
my $api_key = decode_json(`./script/thruk r -d "comment=test" -d "username=restapidocs" /thruk/api_keys`);
# fake usage
Thruk::Utils::IO::json_lock_store($api_key->{'file'}.".stats", { last_used => time(), last_from => "127.0.0.1" });
Expand Down

0 comments on commit a9ab4c0

Please sign in to comment.