Adapt test data to changed ipolicy format
authorKlaus Aehlig <aehlig@google.com>
Fri, 12 Apr 2013 07:57:49 +0000 (09:57 +0200)
committerKlaus Aehlig <aehlig@google.com>
Fri, 12 Apr 2013 09:03:10 +0000 (11:03 +0200)
The test data for hail allocating a multi-disk instance was
originally added in the 2.7 branch. On master the format
of the ipolicy had changed; "min" and "max" are no longer
top-level of the ipolicy, but instead below the "minmax"
key. Hence change the test data accordingly after the merge
to master.

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>

test/data/htools/hail-alloc-invalid-twodisks.json
test/data/htools/hail-alloc-twodisks.json

index 3558256..790de2a 100644 (file)
         "disk-templates": [
           "file"
         ],
-        "max": {
-          "cpu-count": 2,
-          "disk-count": 8,
-          "disk-size": 2048,
-          "memory-size": 12800,
-          "nic-count": 8,
-          "spindle-use": 8
-        },
-        "min": {
-          "cpu-count": 1,
-          "disk-count": 1,
-          "disk-size": 1024,
-          "memory-size": 128,
-          "nic-count": 1,
-          "spindle-use": 1
+        "minmax" : {
+          "max": {
+            "cpu-count": 2,
+            "disk-count": 8,
+            "disk-size": 2048,
+            "memory-size": 12800,
+            "nic-count": 8,
+            "spindle-use": 8
+          },
+          "min": {
+            "cpu-count": 1,
+            "disk-count": 1,
+            "disk-size": 1024,
+            "memory-size": 128,
+            "nic-count": 1,
+            "spindle-use": 1
+          }
         },
         "spindle-ratio": 32.0,
         "std": {
index abf7221..2a4f636 100644 (file)
         "disk-templates": [
           "file"
         ],
-        "max": {
-          "cpu-count": 2,
-          "disk-count": 8,
-          "disk-size": 2048,
-          "memory-size": 12800,
-          "nic-count": 8,
-          "spindle-use": 8
-        },
-        "min": {
-          "cpu-count": 1,
-          "disk-count": 1,
-          "disk-size": 1024,
-          "memory-size": 128,
-          "nic-count": 1,
-          "spindle-use": 1
+        "minmax": {
+          "max": {
+            "cpu-count": 2,
+            "disk-count": 8,
+            "disk-size": 2048,
+            "memory-size": 12800,
+            "nic-count": 8,
+            "spindle-use": 8
+          },
+          "min": {
+            "cpu-count": 1,
+            "disk-count": 1,
+            "disk-size": 1024,
+            "memory-size": 128,
+            "nic-count": 1,
+            "spindle-use": 1
+          }
         },
         "spindle-ratio": 32.0,
         "std": {