Skip to content

Commit cfe4407

Browse files
committed
tests(marketplace): use sdk vcr (go-vcr.v4) for marketplace package
1 parent 0c63f5e commit cfe4407

File tree

3 files changed

+255
-156
lines changed

3 files changed

+255
-156
lines changed

core/testing.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,12 +313,13 @@ var DefaultRetryInterval *time.Duration
313313
var foldersUsingVCRv4 = []string{
314314
"instance",
315315
"k8s",
316+
"marketplace",
316317
}
317318

318319
func folderUsesVCRv4(fullFolderPath string) bool {
319320
fullPathSplit := strings.Split(fullFolderPath, "/")
320321

321-
folder := fullPathSplit[len(fullPathSplit)-1]
322+
folder := fullPathSplit[len(fullPathSplit)-2]
322323
for _, migratedFolder := range foldersUsingVCRv4 {
323324
if migratedFolder == folder {
324325
return true

0 commit comments

Comments
 (0)