[v11.2.x] CloudMigration: Removes snapshot and resources when deleting a session (#92250)
CloudMigration: Removes snapshot and resources when deleting a session (#91548)
(cherry picked from commit e20c7342a9)
Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com>
This commit is contained in:
co-authored by
lean.dev
parent
4115a67a42
commit
a37d107c58
@@ -114,9 +114,20 @@ func Test_CreateGetRunMigrationsAndRuns(t *testing.T) {
|
||||
require.Equal(t, 1, len(listRunResp.Runs))
|
||||
require.Equal(t, runResp.RunUID, listRunResp.Runs[0].RunUID)
|
||||
|
||||
/**
|
||||
-- This is not working at the moment since it is a mix of old and new methods
|
||||
will be fixed later when we clean the old functions and stick to the new ones.
|
||||
|
||||
delMigResp, err := s.DeleteSession(context.Background(), createResp.UID)
|
||||
require.NoError(t, err)
|
||||
require.NotNil(t, createResp.UID, delMigResp.UID)
|
||||
|
||||
// after deleting the session, the snapshots and resources should not exist anymore.
|
||||
// we check the snapshot for now
|
||||
listRunResp2, err := s.GetMigrationRunList(context.Background(), createResp.UID)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 0, len(listRunResp2.Runs))
|
||||
*/
|
||||
}
|
||||
|
||||
func Test_GetSnapshotStatusFromGMS(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user