File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
tools/cli/internal/cli/split Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,26 @@ func TestSplitPrivatePreviewRun(t *testing.T) {
7878 require .Contains (t , info .Spec .Paths .Map (), "/api/atlas/v2/groups" )
7979}
8080
81+ func TestSplitUpcomingRun (t * testing.T ) {
82+ t .Parallel ()
83+ fs := afero .NewMemMapFs ()
84+ opts := & Opts {
85+ basePath : "../../../test/data/openapi_with_upcoming.json" ,
86+ outputPath : "foas.yaml" ,
87+ fs : fs ,
88+ env : "dev" ,
89+ }
90+
91+ require .NoError (t , opts .Run ())
92+
93+ info , err := loadRunResultOas (fs , "foas-2025-09-22.upcoming.yaml" )
94+ require .NoError (t , err )
95+
96+ // check paths has only one
97+ require .Len (t , info .Spec .Paths .Map (), 1 )
98+ require .Contains (t , info .Spec .Paths .Map (), "/api/atlas/v2/openapi/info" )
99+ }
100+
81101func TestSplitMultiplePreviewsRun (t * testing.T ) {
82102 t .Parallel ()
83103 fs := afero .NewMemMapFs ()
You can’t perform that action at this time.
0 commit comments