Commit 7f5389d5 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Fix CI/CD pipeline - end-to-end automated tests

parent 2ea3e679
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ function crdb_undeploy_single() {

function crdb_drop_database_single() {
    echo "Drop database if exists"
    kubectl --namespace ${CRDB_NAMESPACE} describe service cockroachdb-public -o yaml
    kubectl --namespace ${CRDB_NAMESPACE} get service cockroachdb-public -o yaml
    CRDB_PORT_SQL=$(kubectl --namespace ${CRDB_NAMESPACE} get service cockroachdb-public -o 'jsonpath={.spec.ports[?(@.name=="sql")].port}')
    echo "CRDB_PORT_SQL=${CRDB_PORT_SQL}"
    CRDB_CLIENT_URL="postgresql://${CRDB_USERNAME}:${CRDB_PASSWORD}@cockroachdb-0:${CRDB_PORT_SQL}/defaultdb?sslmode=require"
+1 −1
Original line number Diff line number Diff line
@@ -373,7 +373,7 @@ for COMPONENT in $TFS_COMPONENTS; do
    WAIT_EXIT_CODE=$!
    if [[ $WAIT_EXIT_CODE != 0 ]]; then
        echo "  Failed to deploy '$COMPONENT' component, exiting..."
        kubectl logs --namespace $TFS_K8S_NAMESPACE deployment/${COMPONENT_OBJNAME}service
        kubectl logs --namespace $TFS_K8S_NAMESPACE deployment/${COMPONENT_OBJNAME}service --all-containers=true
        exit $exit_code
    fi
    printf "\n"