Coverage for manila/tests/share/drivers/hitachi/hsp/fakes.py: 100%
7 statements
« prev ^ index » next coverage.py v7.11.0, created at 2026-02-18 22:19 +0000
« prev ^ index » next coverage.py v7.11.0, created at 2026-02-18 22:19 +0000
1# Copyright (c) 2016 Hitachi Data Systems, Inc.
2# All Rights Reserved.
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
16file_system = {
17 'id': '33689245-1806-45d0-8507-0700b5f89750',
18 'properties': {
19 'cluster-id': '85d5b9e2-27f3-11e6-8b50-005056a75f66',
20 'quota': 107374182400,
21 'name': '07c966f9-fea2-4e12-ab72-97cb3c529bb5',
22 'used-capacity': 53687091200,
23 'free-capacity': 53687091200
24 },
25}
27share = {
28 'id': 'aa4a7710-f326-41fb-ad18-b4ad587fc87a',
29 'name': 'aa4a7710-f326-41fb-ad18-b4ad587fc87a',
30 'properties': {
31 'file-system-id': '33689245-1806-45d0-8507-0700b5f89750',
32 'file-system-name': 'fake_name',
33 },
34}
36invalid_share = {
37 'id': 'aa4a7710-f326-41fb-ad18-b4ad587fc87a',
38 'name': 'aa4a7710-f326-41fb-ad18-b4ad587fc87a',
39 'size': 100,
40 'host': 'hsp',
41 'share_proto': 'CIFS',
42}
44access_rule = {
45 'id': 'acdc7172b-fe07-46c4-b78f-df3e0324ccd0',
46 'access_type': 'ip',
47 'access_to': '172.24.44.200',
48 'access_level': 'rw',
49}
51hsp_rules = [{
52 'name': 'qa_access',
53 'host-specification': '172.24.44.200',
54 'read-write': 'true',
55}]
57hsp_cluster = {
58 'id': '835e7c00-9d04-11e5-a935-f4521480e990',
59 'properties': {
60 'total-storage-capacity': 107374182400,
61 'total-storage-used': 53687091200,
62 'total-storage-available': 53687091200,
63 'total-file-system-capacity': 107374182400,
64 'total-file-system-space-used': 53687091200,
65 'total-file-system-space-available': 53687091200
66 },
67}
69stats_data = {
70 'share_backend_name': 'HSP',
71 'vendor_name': 'Hitachi',
72 'driver_version': '1.0.0',
73 'storage_protocol': 'NFS',
74 'pools': [{
75 'reserved_percentage': 0,
76 'reserved_snapshot_percentage': 0,
77 'reserved_share_extend_percentage': 0,
78 'pool_name': 'HSP',
79 'thin_provisioning': True,
80 'total_capacity_gb': 100,
81 'free_capacity_gb': 50,
82 'max_over_subscription_ratio': 20,
83 'qos': False,
84 'dedupe': False,
85 'compression': False,
86 }],
87}