Skip to content

Commit

Permalink
Add the same to the CTS server
Browse files Browse the repository at this point in the history
Signed-off-by: Ljupcho Palashevski <[email protected]>
  • Loading branch information
lpalashevski committed Jul 17, 2023
1 parent 9f172e0 commit 3a9404e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/egeria-cts/scripts/config-egeria.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ curl -f -k -w "\n (%{http_code} - %{url_effective})\n" --silent -X POST \
"${EGERIA_ENDPOINT}/open-metadata/admin-services/users/${EGERIA_USER}/servers/${EGERIA_SERVER}/conformance-suite-workbenches/repository-workbench/repositories" \
--data '{"class":"RepositoryConformanceWorkbenchConfig","tutRepositoryServerName":"'"${TUT_SERVER}"'","maxSearchResults":'${CTS_FACTOR}' }' || exit $?

# Custom audit log configuration to help troubleshooting errors and exceptions for CTS server #
# Remove all audit log destinations (removes default) #
curl -f -k -w "\n (%{http_code} - %{url_effective})\n" --silent -X DELETE \
--header "Content-Type: application/json" \
"${EGERIA_ENDPOINT}/open-metadata/admin-services/users/${EGERIA_USER}/servers/${EGERIA_SERVER}/audit-log-destinations" \
--data ''|| exit $?
# Add the custom console destination using only Error and Exception severities #
curl -f -k -w "\n (%{http_code} - %{url_effective})\n" --silent -X POST \
--header "Content-Type: application/json" \
"${EGERIA_ENDPOINT}/open-metadata/admin-services/users/${EGERIA_USER}/servers/${EGERIA_SERVER}/audit-log-destinations/console" \
--data '["Error","Exception"]'|| exit $?

echo -e '\n > Configuring technology under test:\n'

curl -f -k -w "\n (%{http_code} - %{url_effective})\n" --silent -X POST \
Expand Down

0 comments on commit 3a9404e

Please sign in to comment.