-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(integ): add test for RCS process owner (#389)
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.../components/deadline/deadline_02_renderQueue/scripts/bastion/testing/RQ-query-rcs-user.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# Script to return the username for the process running the RCS as reported by Deadline | ||
# | ||
# Input: | ||
# None | ||
# Output: | ||
# Non-zero return code on failure. | ||
# Outputs the username of the process that the Deadline RCS is running as | ||
|
||
|
||
set -euo pipefail | ||
|
||
DEADLINE="/opt/Thinkbox/Deadline10/bin" | ||
|
||
# Fetch repository.ini from the Deadline repo | ||
$DEADLINE/deadlinecommand -json GetProxyServerInfos | jq -e -r '.result[]|select(.Stat == 1 and .Type == "Remote")|.User' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters