Skip to content

Commit

Permalink
test cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkowl committed Sep 3, 2024
1 parent cf1caf8 commit 3e60b08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 41 deletions.
24 changes: 5 additions & 19 deletions pkg/operator/controllers/dnsmasq/cluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,24 +273,14 @@ func TestClusterReconciler(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "version",
},
Spec: configv1.ClusterVersionSpec{
DesiredUpdate: &configv1.Update{
Version: "4.10.12",
},
},
Spec: configv1.ClusterVersionSpec{},
Status: configv1.ClusterVersionStatus{
Conditions: []configv1.ClusterOperatorStatusCondition{
{
Type: configv1.OperatorProgressing,
Status: configv1.ConditionTrue,
},
},
History: []configv1.UpdateHistory{
{
State: configv1.CompletedUpdate,
Version: "4.10.11",
},
},
},
},
},
Expand Down Expand Up @@ -325,16 +315,12 @@ func TestClusterReconciler(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "version",
},
Spec: configv1.ClusterVersionSpec{
DesiredUpdate: &configv1.Update{
Version: "4.10.12",
},
},
Spec: configv1.ClusterVersionSpec{},
Status: configv1.ClusterVersionStatus{
History: []configv1.UpdateHistory{
Conditions: []configv1.ClusterOperatorStatusCondition{
{
State: configv1.CompletedUpdate,
Version: "4.10.11",
Type: configv1.OperatorProgressing,
Status: configv1.ConditionTrue,
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,24 +489,14 @@ func TestMachineConfigReconcilerClusterUpgrading(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "version",
},
Spec: configv1.ClusterVersionSpec{
DesiredUpdate: &configv1.Update{
Version: "4.10.12",
},
},
Spec: configv1.ClusterVersionSpec{},
Status: configv1.ClusterVersionStatus{
Conditions: []configv1.ClusterOperatorStatusCondition{
{
Type: configv1.OperatorProgressing,
Status: configv1.ConditionTrue,
},
},
History: []configv1.UpdateHistory{
{
State: configv1.CompletedUpdate,
Version: "4.10.11",
},
},
},
}).
Build())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,24 +511,14 @@ func TestMachineConfigPoolReconcilerClusterUpgrading(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
Name: "version",
},
Spec: configv1.ClusterVersionSpec{
DesiredUpdate: &configv1.Update{
Version: "4.10.12",
},
},
Spec: configv1.ClusterVersionSpec{},
Status: configv1.ClusterVersionStatus{
Conditions: []configv1.ClusterOperatorStatusCondition{
{
Type: configv1.OperatorProgressing,
Status: configv1.ConditionTrue,
},
},
History: []configv1.UpdateHistory{
{
State: configv1.CompletedUpdate,
Version: "4.10.11",
},
},
},
}).
Build())
Expand Down

0 comments on commit 3e60b08

Please sign in to comment.