Skip to content

Commit

Permalink
Fix e2e test offline-upgrade-ks-0 (vertica#623)
Browse files Browse the repository at this point in the history
Fixed e2e test offline-upgrade-ks-0, and enabled it in the test suite
e2e-server-upgrade.
  • Loading branch information
cchen-vertica authored Dec 7, 2023
1 parent 7bf8c57 commit 19fd850
Show file tree
Hide file tree
Showing 46 changed files with 50 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# (c) Copyright [2021-2023] Open Text.
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Creating a vdb with non-existent s3 credentials. Purpose is to do an upgrade
# before a database exists.

apiVersion: kuttl.dev/v1beta1
kind: TestStep
commands:
- command: |
bash -c "kustomize build setup-vdb-bad-endpoint/customized-overlay | \
if [ "$VERTICA_DEPLOYMENT_METHOD" != "vclusterops" ]; then sed 's/vcluster-ops: \"true\"/vcluster-ops: \"false\"/'; else cat; fi | \
kubectl -n $NAMESPACE apply -f - "
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# (c) Copyright [2021-2023] Open Text.
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

resources:
- setup-vdb.yaml

patches:
- patch: |-
- op: add
path: /metadata/annotations/vertica.com~1vcluster-ops
value: "true"
- op: add
path: /metadata/annotations/vertica.com~1run-nma-in-sidecar
value: "false"
target:
kind: VerticaDB
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Creating a vdb with non-existent s3 credentials. Purpose is to do an upgrade
# before a database exists.

apiVersion: vertica.com/v1beta1
kind: VerticaDB
metadata:
Expand All @@ -34,4 +31,4 @@ spec:
size: 2
# Set requeueTime since we are intentionally failing. This prevents the
# exponential backoff kicking in, which can cause the test to timeout.
requeueTime: 5
requeueTime: 5

0 comments on commit 19fd850

Please sign in to comment.