Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@BoxcutterRuntime
@ObjectController @ClusterObjectSet
Feature: ClusterObjectSet object collision and adoption

As an OLM user applying a ClusterObjectSet directly, I want the revision's
Expand All @@ -7,7 +7,7 @@ Feature: ClusterObjectSet object collision and adoption
choose how aggressively a revision takes ownership of pre-existing objects.

Background:
Given OLM is available
Given object-controller is available

# ---------------------------------------------------------------------------
# Collisions: the revision refuses to take ownership (Ready=False/ObjectCollision)
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/object-controller/features/cos_preflight.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@BoxcutterRuntime
@ObjectController @ClusterObjectSet
Feature: ClusterObjectSet preflight dry-run validation

As an OLM user applying a ClusterObjectSet directly, I want the revision to be
Expand All @@ -8,7 +8,7 @@ Feature: ClusterObjectSet preflight dry-run validation
require re-creating the revision.

Background:
Given OLM is available
Given object-controller is available

Scenario: ClusterObjectSet reports PreconditionsNotMet when an object targets a non-existent namespace
When ClusterObjectSet is applied
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
@BoxcutterRuntime
@ObjectController @ClusterObjectSet
Feature: Validate ClusterObjectSet revision identity

A ClusterObjectSet's name must be <group>-<revision>, with the revision in
decimal and without leading zeros. This lets Kubernetes name uniqueness
prevent duplicate revision numbers within a group, regardless of ownership.

Background:
Given OLM is available
Given object-controller is available

Scenario Outline: Reject a ClusterObjectSet name with <mismatch>
When resource apply fails with error msg containing "metadata.name must be <spec.group>-<spec.revision>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@BoxcutterRuntime
@ObjectController @ClusterObjectSet
Feature: ClusterObjectSet static preflight validation

As an OLM user applying a ClusterObjectSet directly, I want the revision to be
Expand All @@ -7,7 +7,7 @@ Feature: ClusterObjectSet static preflight validation
instead of being silently accepted.

Background:
Given OLM is available
Given object-controller is available

Scenario: ClusterObjectSet reports PreconditionsNotMet when the same object appears in multiple phases
Given namespace "${TEST_NAMESPACE}" is available
Expand Down
11 changes: 7 additions & 4 deletions test/e2e/object-controller/features/group.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@BoxcutterRuntime
Feature: Track ClusterObjectSet revisions by group

As a ClusterObjectSet user, I want to group successive revisions so that a new
Expand All @@ -9,10 +8,10 @@ Feature: Track ClusterObjectSet revisions by group
should leave other groups' revisions untouched.

Background:
Given OLM is available
And an image registry is available
Given object-controller is available
And namespace "${TEST_NAMESPACE}" is available

@ObjectController @ClusterObjectSet
Scenario Outline: Group handoff preserves objects when <revision-ownership>
Both ClusterObjectSets have the same group. Their controller owner references
point to different Namespaces, or one or both ClusterObjectSets have no owner
Expand Down Expand Up @@ -99,6 +98,7 @@ Feature: Track ClusterObjectSet revisions by group
| an ownerless revision is followed by an owned revision | | ${TEST_NAMESPACE} |
| both revisions have no controller owner | | |

@ObjectController @ClusterObjectSet
Scenario: Different groups collide even with the same controller owner
Given ClusterObjectSet with Namespace owner "${TEST_NAMESPACE}" is applied
"""
Expand Down Expand Up @@ -167,8 +167,11 @@ Feature: Track ClusterObjectSet revisions by group
lifecycleState: Active
"""

@BoxcutterRuntime
Scenario: Revision pruning is isolated by group
Given a catalog "test" with packages:
Given OLM is available
And an image registry is available
And a catalog "test" with packages:
| package | version | channel | replaces | contents |
| test | 1.0.0 | beta | | CRD, Deployment, ConfigMap |
| test | 1.0.1 | beta | 1.0.0 | CRD, Deployment, ConfigMap |
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/object-controller/features/revision.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@BoxcutterRuntime
@ObjectController @ClusterObjectSet
Feature: Install ClusterObjectSet

As an OLM user I would like to install a ClusterObjectSet directly, without using the cluster extension API.

Background:
Given OLM is available
Given object-controller is available

Scenario: Probe failure for PersistentVolumeClaim halts phase progression
Given ServiceAccount "pvc-probe-sa" with needed permissions is available in test namespace
Expand Down
Loading