| 1 | QA output created by 184 |
| 2 | |
| 3 | == checking interface == |
| 4 | Testing: |
| 5 | { |
| 6 | QMP_VERSION |
| 7 | } |
| 8 | { |
| 9 | "return": { |
| 10 | } |
| 11 | } |
| 12 | { |
| 13 | "return": { |
| 14 | } |
| 15 | } |
| 16 | { |
| 17 | "return": { |
| 18 | } |
| 19 | } |
| 20 | { |
| 21 | "return": { |
| 22 | } |
| 23 | } |
| 24 | { |
| 25 | "return": [ |
| 26 | { |
| 27 | "iops_rd": 0, |
| 28 | "detect_zeroes": "off", |
| 29 | "active": true, |
| 30 | "image": { |
| 31 | "backing-image": { |
| 32 | "virtual-size": 1073741824, |
| 33 | "filename": "null-co://", |
| 34 | "format": "null-co", |
| 35 | "actual-size": 0 |
| 36 | }, |
| 37 | "virtual-size": 1073741824, |
| 38 | "filename": "json:{\"throttle-group\": \"group0\", \"driver\": \"throttle\", \"file\": {\"driver\": \"null-co\"}}", |
| 39 | "format": "throttle", |
| 40 | "actual-size": 0 |
| 41 | }, |
| 42 | "iops_wr": 0, |
| 43 | "ro": false, |
| 44 | "node-name": "throttle0", |
| 45 | "backing_file_depth": 1, |
| 46 | "drv": "throttle", |
| 47 | "iops": 0, |
| 48 | "bps_wr": 0, |
| 49 | "write_threshold": 0, |
| 50 | "encrypted": false, |
| 51 | "bps": 0, |
| 52 | "bps_rd": 0, |
| 53 | "cache": { |
| 54 | "no-flush": false, |
| 55 | "direct": false, |
| 56 | "writeback": true |
| 57 | }, |
| 58 | "file": "json:{\"throttle-group\": \"group0\", \"driver\": \"throttle\", \"file\": {\"driver\": \"null-co\"}}" |
| 59 | }, |
| 60 | { |
| 61 | "iops_rd": 0, |
| 62 | "detect_zeroes": "off", |
| 63 | "active": true, |
| 64 | "image": { |
| 65 | "virtual-size": 1073741824, |
| 66 | "filename": "null-co://", |
| 67 | "format": "null-co", |
| 68 | "actual-size": 0 |
| 69 | }, |
| 70 | "iops_wr": 0, |
| 71 | "ro": false, |
| 72 | "node-name": "disk0", |
| 73 | "backing_file_depth": 0, |
| 74 | "drv": "null-co", |
| 75 | "iops": 0, |
| 76 | "bps_wr": 0, |
| 77 | "write_threshold": 0, |
| 78 | "encrypted": false, |
| 79 | "bps": 0, |
| 80 | "bps_rd": 0, |
| 81 | "cache": { |
| 82 | "no-flush": false, |
| 83 | "direct": false, |
| 84 | "writeback": true |
| 85 | }, |
| 86 | "file": "null-co://" |
| 87 | } |
| 88 | ] |
| 89 | } |
| 90 | { |
| 91 | "return": [ |
| 92 | ] |
| 93 | } |
| 94 | { |
| 95 | "timestamp": { |
| 96 | "seconds": TIMESTAMP, |
| 97 | "microseconds": TIMESTAMP |
| 98 | }, |
| 99 | "event": "SHUTDOWN", |
| 100 | "data": { |
| 101 | "guest": false, |
| 102 | "reason": "host-qmp-quit" |
| 103 | } |
| 104 | } |
| 105 | { |
| 106 | "return": { |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | |
| 111 | == property changes in ThrottleGroup == |
| 112 | Testing: |
| 113 | { |
| 114 | QMP_VERSION |
| 115 | } |
| 116 | { |
| 117 | "return": { |
| 118 | } |
| 119 | } |
| 120 | { |
| 121 | "return": { |
| 122 | } |
| 123 | } |
| 124 | { |
| 125 | "return": { |
| 126 | "bps-read-max-length": 1, |
| 127 | "iops-read-max-length": 1, |
| 128 | "bps-read-max": 0, |
| 129 | "bps-total": 0, |
| 130 | "iops-total-max-length": 1, |
| 131 | "iops-total": 1000, |
| 132 | "iops-write-max": 0, |
| 133 | "bps-write": 0, |
| 134 | "bps-total-max": 0, |
| 135 | "bps-write-max": 0, |
| 136 | "iops-size": 0, |
| 137 | "iops-read": 0, |
| 138 | "iops-write-max-length": 1, |
| 139 | "iops-write": 0, |
| 140 | "bps-total-max-length": 1, |
| 141 | "iops-read-max": 0, |
| 142 | "bps-read": 0, |
| 143 | "bps-write-max-length": 1, |
| 144 | "iops-total-max": 0 |
| 145 | } |
| 146 | } |
| 147 | { |
| 148 | "return": { |
| 149 | } |
| 150 | } |
| 151 | { |
| 152 | "return": { |
| 153 | "bps-read-max-length": 1, |
| 154 | "iops-read-max-length": 1, |
| 155 | "bps-read-max": 0, |
| 156 | "bps-total": 0, |
| 157 | "iops-total-max-length": 1, |
| 158 | "iops-total": 0, |
| 159 | "iops-write-max": 0, |
| 160 | "bps-write": 0, |
| 161 | "bps-total-max": 0, |
| 162 | "bps-write-max": 0, |
| 163 | "iops-size": 0, |
| 164 | "iops-read": 0, |
| 165 | "iops-write-max-length": 1, |
| 166 | "iops-write": 0, |
| 167 | "bps-total-max-length": 1, |
| 168 | "iops-read-max": 0, |
| 169 | "bps-read": 0, |
| 170 | "bps-write-max-length": 1, |
| 171 | "iops-total-max": 0 |
| 172 | } |
| 173 | } |
| 174 | { |
| 175 | "timestamp": { |
| 176 | "seconds": TIMESTAMP, |
| 177 | "microseconds": TIMESTAMP |
| 178 | }, |
| 179 | "event": "SHUTDOWN", |
| 180 | "data": { |
| 181 | "guest": false, |
| 182 | "reason": "host-qmp-quit" |
| 183 | } |
| 184 | } |
| 185 | { |
| 186 | "return": { |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | |
| 191 | == object creation/set errors == |
| 192 | Testing: |
| 193 | { |
| 194 | QMP_VERSION |
| 195 | } |
| 196 | { |
| 197 | "return": { |
| 198 | } |
| 199 | } |
| 200 | { |
| 201 | "return": { |
| 202 | } |
| 203 | } |
| 204 | { |
| 205 | "error": { |
| 206 | "class": "GenericError", |
| 207 | "desc": "Property cannot be set after initialization" |
| 208 | } |
| 209 | } |
| 210 | { |
| 211 | "error": { |
| 212 | "class": "GenericError", |
| 213 | "desc": "bps/iops/max total values and read/write values cannot be used at the same time" |
| 214 | } |
| 215 | } |
| 216 | { |
| 217 | "timestamp": { |
| 218 | "seconds": TIMESTAMP, |
| 219 | "microseconds": TIMESTAMP |
| 220 | }, |
| 221 | "event": "SHUTDOWN", |
| 222 | "data": { |
| 223 | "guest": false, |
| 224 | "reason": "host-qmp-quit" |
| 225 | } |
| 226 | } |
| 227 | { |
| 228 | "return": { |
| 229 | } |
| 230 | } |
| 231 | |
| 232 | |
| 233 | == don't specify group == |
| 234 | Testing: |
| 235 | { |
| 236 | QMP_VERSION |
| 237 | } |
| 238 | { |
| 239 | "return": { |
| 240 | } |
| 241 | } |
| 242 | { |
| 243 | "return": { |
| 244 | } |
| 245 | } |
| 246 | { |
| 247 | "error": { |
| 248 | "class": "GenericError", |
| 249 | "desc": "Parameter 'throttle-group' is missing" |
| 250 | } |
| 251 | } |
| 252 | { |
| 253 | "timestamp": { |
| 254 | "seconds": TIMESTAMP, |
| 255 | "microseconds": TIMESTAMP |
| 256 | }, |
| 257 | "event": "SHUTDOWN", |
| 258 | "data": { |
| 259 | "guest": false, |
| 260 | "reason": "host-qmp-quit" |
| 261 | } |
| 262 | } |
| 263 | { |
| 264 | "return": { |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | |
| 269 | *** done |