Skip to content

Commit

Permalink
Merge pull request #271 from lpalashevski/4.2-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lpalashevski authored Jul 17, 2023
2 parents 097ca0a + 3a9404e commit 7e35eb7
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/egeria-cts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
name: egeria-cts
description: Egeria Conformance Test Suite deployment to Kubernetes
apiVersion: v2
version: 4.1.0
appVersion: "4.1"
version: 4.2-prerelease.1
appVersion: "4.2-SNAPSHOT"
icon: https://raw.githubusercontent.com/odpi/egeria/99016e77167fa30dcfade809b061358a92a59973/assets/img/egeria.png
keywords:
- odpi, egeria, cts
Expand Down
24 changes: 24 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 Expand Up @@ -78,4 +90,16 @@ curl -f -k -w "\n (%{http_code} - %{url_effective})\n" --silent -X POST \
curl -f -k -w "\n (%{http_code} - %{url_effective})\n" --silent -X POST \
"${EGERIA_ENDPOINT}/open-metadata/admin-services/users/${EGERIA_USER}/servers/${TUT_SERVER}/cohorts/${EGERIA_COHORT}" || exit $?

# Custom audit log configuration to help troubleshooting errors and exceptions for TUT 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/${TUT_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/${TUT_SERVER}/audit-log-destinations/console" \
--data '["Error","Exception"]'|| exit $?

echo -e "\n-- End of configuration"

0 comments on commit 7e35eb7

Please sign in to comment.