OneDrive: TestOneDriveDriveSuite/TestCreateGetDeleteFolder Sub-Test ignored (#1690)

## Description
OneDrive Test experienced different results locally than in CI. Test to be ignored until a consistent test can replace it. 

<!-- Insert PR description-->

## Type of change


- [x] 🐛 Bugfix

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
related to * #1688<issue>

## Test Plan

- [x]  Unit test
This commit is contained in:
Danny 2022-12-06 15:48:48 -05:00 committed by GitHub
parent c8b7ada6f2
commit ff715f4d6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,7 @@ func (suite *OneDriveSuite) TestCreateGetDeleteFolder() {
require.NoError(t, err)
require.NotEmpty(t, drives)
// TODO: Verify the intended drive
driveID := *drives[0].GetId()
defer func() {
@ -88,12 +89,17 @@ func (suite *OneDriveSuite) TestCreateGetDeleteFolder() {
for _, test := range table {
suite.T().Run(test.name, func(t *testing.T) {
if test.name == "NoPrefix" {
// TODO: Issue #1688
t.Skipf("Inconsistent test. Skipping until test is refactored")
}
allFolders, err := GetAllFolders(ctx, gs, suite.userID, test.prefix)
require.NoError(t, err)
foundFolderIDs := []string{}
for _, f := range allFolders {
if *f.GetName() == folderName1 || *f.GetName() == folderName2 {
foundFolderIDs = append(foundFolderIDs, *f.GetId())
}