Skip to content

Commit b4b7c30

Browse files
Update split_test.go
1 parent c19fc2d commit b4b7c30

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tools/cli/internal/cli/split/split_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
81101
func TestSplitMultiplePreviewsRun(t *testing.T) {
82102
t.Parallel()
83103
fs := afero.NewMemMapFs()

0 commit comments

Comments
 (0)