//  Copyright (c) 2024 Huawei Technologies Co., Ltd.
//  openUBMC is licensed under Mulan PSL v2.
//  You can use this software according to the terms and conditions of the Mulan PSL v2.
//  You may obtain a copy of Mulan PSL v2 at:
//        #  http://license.coscl.org.cn/MulanPSL2
//  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
//  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
//  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
//  See the Mulan PSL v2 for more details.
import { MockMethod } from 'vite-plugin-mock';
import storage from './data/storage.data'
import RAIDStorage0 from './data/RAIDStorage0.data'
import LogicalDrive0 from './data/LogicalDrive0.data'
import LogicalDrive1 from './data/LogicalDrive1.data'
import HDDPlaneDisk1 from './data/HDDPlaneDisk1.data'
import HDDPlaneDisk2 from './data/HDDPlaneDisk2.data'

export default [
  {
    url: '/UI/Rest/System/Storage/ViewsSummary',
    method: 'get',
    timeout: 500,
    response: storage,
  },
  {
    url: '/UI/Rest/System/Storage/RAIDStorage0',
    method: 'get',
    timeout: 500,
    response: RAIDStorage0,
  },
  {
    url: '/UI/Rest/System/Storage/RAIDStorage0/Volumes/LogicalDrive0',
    method: 'get',
    timeout: 500,
    response: LogicalDrive0,
  },
  {
    url: '/UI/Rest/System/Storage/RAIDStorage0/Volumes/LogicalDrive1',
    method: 'get',
    timeout: 500,
    response: LogicalDrive1,
  },
  {
    url: '/UI/Rest/System/Storage/Drives/HDDPlaneDisk1',
    method: 'get',
    timeout: 500,
    response: HDDPlaneDisk1,
  },
  {
    url: '/UI/Rest/System/Storage/Drives/HDDPlaneDisk2',
    method: 'get',
    timeout: 500,
    response: HDDPlaneDisk2,
  }
] as MockMethod[];