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