Skip to content

Commit 441b03d

Browse files
committed
add migration serverless to flex unit-test
1 parent 0cedc62 commit 441b03d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

api/v1/atlasdeployment_types_test.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,23 @@ func TestDeploymentCELChecks(t *testing.T) {
100100
},
101101
},
102102
},
103+
{
104+
title: "can migrate from serverless to flex cluster",
105+
old: &AtlasDeployment{
106+
Spec: AtlasDeploymentSpec{
107+
ServerlessSpec: &ServerlessSpec{
108+
Name: "my-serverless",
109+
},
110+
},
111+
},
112+
obj: &AtlasDeployment{
113+
Spec: AtlasDeploymentSpec{
114+
FlexSpec: &FlexSpec{
115+
Name: "my-serverless",
116+
},
117+
},
118+
},
119+
},
103120
} {
104121
t.Run(tc.title, func(t *testing.T) {
105122
// inject a project to avoid other CEL validations being hit

0 commit comments

Comments
 (0)