@@ -81,7 +81,7 @@ func TestCodeSampleFilter(t *testing.T) {
8181 {
8282 Lang : "cURL" ,
8383 Label : "Atlas CLI" ,
84- Source : "atlas api testOperationID --help" ,
84+ Source : "atlas api testTag testOperationId --help" ,
8585 },
8686 {
8787 Lang : "go" ,
@@ -127,6 +127,7 @@ func TestCodeSampleFilter(t *testing.T) {
127127 Get : & openapi3.Operation {
128128 OperationID : "testOperationID" ,
129129 Summary : "testSummary" ,
130+ Tags : []string {"TestTag" },
130131 Responses : openapi3 .NewResponses (openapi3 .WithName ("200" , & openapi3.Response {
131132 Content : openapi3.Content {
132133 "application/vnd.atlas.preview+json" : {
@@ -150,6 +151,7 @@ func TestCodeSampleFilter(t *testing.T) {
150151 Get : & openapi3.Operation {
151152 OperationID : "testOperationID" ,
152153 Summary : "testSummary" ,
154+ Tags : []string {"TestTag" },
153155 Responses : openapi3 .NewResponses (openapi3 .WithName ("200" , & openapi3.Response {
154156 Content : openapi3.Content {
155157 "application/vnd.atlas.preview+json" : {
@@ -168,7 +170,7 @@ func TestCodeSampleFilter(t *testing.T) {
168170 {
169171 Lang : "cURL" ,
170172 Label : "Atlas CLI" ,
171- Source : "atlas api testOperationID --help" ,
173+ Source : "atlas api testTag testOperationId --help" ,
172174 },
173175 {
174176 Lang : "cURL" ,
@@ -196,6 +198,7 @@ func TestCodeSampleFilter(t *testing.T) {
196198 Get : & openapi3.Operation {
197199 OperationID : "testOperationID" ,
198200 Summary : "testSummary" ,
201+ Tags : []string {"TestTag" },
199202 Responses : openapi3 .NewResponses (openapi3 .WithName ("200" , & openapi3.Response {
200203 Content : openapi3.Content {
201204 "application/vnd.atlas.2025-01-01.upcoming+json" : {
@@ -219,6 +222,7 @@ func TestCodeSampleFilter(t *testing.T) {
219222 Get : & openapi3.Operation {
220223 OperationID : "testOperationID" ,
221224 Summary : "testSummary" ,
225+ Tags : []string {"TestTag" },
222226 Responses : openapi3 .NewResponses (openapi3 .WithName ("200" , & openapi3.Response {
223227 Content : openapi3.Content {
224228 "application/vnd.atlas.2025-01-01.upcoming+json" : {
@@ -237,7 +241,7 @@ func TestCodeSampleFilter(t *testing.T) {
237241 {
238242 Lang : "cURL" ,
239243 Label : "Atlas CLI" ,
240- Source : "atlas api testOperationID --help" ,
244+ Source : "atlas api testTag testOperationId --help" ,
241245 },
242246 {
243247 Lang : "cURL" ,
@@ -308,7 +312,7 @@ func TestCodeSampleFilter(t *testing.T) {
308312 {
309313 Lang : "cURL" ,
310314 Label : "Atlas CLI" ,
311- Source : "atlas api testOperationID --help" ,
315+ Source : "atlas api testTag testOperationId --help" ,
312316 },
313317 {
314318 Lang : "go" ,
0 commit comments