Skip to content

Commit

Permalink
Updating tests for 1.0.0 and 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bradfordcp committed Jun 4, 2020
1 parent 74a0833 commit b9c99a5
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 14 deletions.
34 changes: 24 additions & 10 deletions operator/.osdk-scorecard.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
# Note the structure below is intentional to avoid unnecessary warnings
scorecard:
# Setting a global scorecard option
output: json
bundle: deploy/olm-catalog/cass-operator
plugins:
# `basic` tests configured to test 2 CRs
# - basic:
# cr-manifest:
# - "example-cassdc-yaml/cassandra-3.11.6/example-cassdc-scorecard.yaml"
# - "example-cassdc-yaml/dse-6.8.0/example-cassdc-scorecard.yaml"
# Basic CR Tests
- basic:
cr-manifest:
- "example-cassdc-yaml/cassandra-3.11.6/example-cassdc-scorecard.yaml"
- basic:
cr-manifest:
- "example-cassdc-yaml/dse-6.8.0/example-cassdc-scorecard.yaml"

# v1.0.0
- olm:
cr-manifest:
- "example-cassdc-yaml/cassandra-3.11.6/example-cassdc-scorecard.yaml"
csv-path: "deploy/olm-catalog/cass-operator/1.0.0/cass-operator.v1.0.0.clusterserviceversion.yaml"
- olm:
cr-manifest:
- "example-cassdc-yaml/dse-6.8.0/example-cassdc-scorecard.yaml"
csv-path: "deploy/olm-catalog/cass-operator/1.0.0/cass-operator.v1.0.0.clusterserviceversion.yaml"

# OLM tests may only test one CR
# v1.1.0
- olm:
cr-manifest:
- "example-cassdc-yaml/cassandra-3.11.6/example-cassdc-scorecard.yaml"
# - "example-cassdc-yaml/dse-6.8.0/example-cassdc-scorecard.yaml"
csv-path: "deploy/olm-catalog/cass-operator/1.1.0/cass-operator.v1.1.0.clusterserviceversion.yaml"

- olm:
cr-manifest:
- "example-cassdc-yaml/dse-6.8.0/example-cassdc-scorecard.yaml"
csv-path: "deploy/olm-catalog/cass-operator/1.1.0/cass-operator.v1.1.0.clusterserviceversion.yaml"
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spec:
version: v1
name: ""
- kind: StatefulSet
version: v1beta1
version: v1
name: ""
- kind: Secret
version: v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: >-
[{"apiVersion": "cassandra.datastax.com/v1beta1","kind": "CassandraDatacenter","metadata": {"name": "dc1"},"spec": {"clusterName": "cluster1","size": 3,"racks": [{"name": "rack1","zone": "us-central1-a"},{"name": "rack2","zone": "us-central1-b"},{"name": "rack3","zone": "us-central1-c"}],"resources": {"requests": {"memory": "24Gi","cpu": "6000m"},"limits": {"memory": "24Gi","cpu": "6000m"}},"storageConfig": {"cassandraDataVolumeClaimSpec": {"storageClassName": "server-storage","accessModes": ["ReadWriteOnce"],"resources": {"requests": {"storage": "1000Gi"}}}},"allowMultipleNodesPerWorker": false,"stopped": false,"rollingRestartRequested": false,"canaryUpgrade": false,"serverType": "dse","serverVersion": "6.8.0","serverImage": "registry.connect.redhat.com/datastax/dse-server:6.8.0","configBuilderImage": "registry.connect.redhat.com/datastax/cass-config-builder:1.0.0","superuserSecretName": "","managementApiAuth": {"insecure": {}},"serviceAccount": "default","replaceNodes": []}}]
[{"apiVersion": "cassandra.datastax.com/v1beta1","kind": "CassandraDatacenter","metadata": {"name": "dc1"},"spec": {"clusterName": "cluster1","size": 3,"racks": [{"name": "rack1","zone": "us-central1-a"},{"name": "rack2","zone": "us-central1-b"},{"name": "rack3","zone": "us-central1-c"}],"resources": {"requests": {"memory": "24Gi","cpu": "6000m"},"limits": {"memory": "24Gi","cpu": "6000m"}},"storageConfig": {"cassandraDataVolumeClaimSpec": {"storageClassName": "server-storage","accessModes": ["ReadWriteOnce"],"resources": {"requests": {"storage": "1000Gi"}}}},"allowMultipleNodesPerWorker": false,"stopped": false,"rollingRestartRequested": false,"canaryUpgrade": false,"serverType": "dse","serverVersion": "6.8.0","serverImage": "registry.connect.redhat.com/datastax/dse-server:6.8.0","configBuilderImage": "registry.connect.redhat.com/datastax/cass-config-builder:1.0.0","superuserSecretName": "","managementApiAuth": {"insecure": {}},"serviceAccount": "default"}}]
categories: Database,Big Data,OpenShift Optional
description: >
Simple provisioning, turn-key operations, and automated remediation of
Expand Down Expand Up @@ -259,6 +259,11 @@ spec:
Configuration for connectivity between cass-operator and Management API
displayName: Management API Authentication

- path: replaceNodes
description: |
A list of pod names that need to be replaced
displayName: Replace Nodes

statusDescriptors:
- path: cassandraOperatorProgress
description: Cassandra Operator Progress
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: cassandra.datastax.com/v1beta1
kind: CassandraDatacenter
metadata:
name: dc1
name: cass-dc
namespace: default
spec:
size: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: cassandra.datastax.com/v1beta1
kind: CassandraDatacenter
metadata:
name: dc1
name: dse-dc
namespace: default
spec:
size: 1
Expand Down

0 comments on commit b9c99a5

Please sign in to comment.