Skip to content
This repository
Browse code

Added doc templates to gen_load.sh test without attachments (1Kb and …

…2.5Kb docs)

Change-Id: I649f89a80c02eafaad5dda2e2c5b4735e39cd2b9
Reviewed-on: http://review.membase.org/6561
Tested-by: Dustin Sallings <dustin@spy.net>
Reviewed-by: Dustin Sallings <dustin@spy.net>
  • Loading branch information...
commit 36292fe5fd9e6cf8a479292ec36693d32732436a 1 parent 4c0a88e
Filipe Manana authored May 19, 2011 dustin committed May 27, 2011

Showing 1 changed file with 93 additions and 1 deletion. Show diff stats Hide diff stats

  1. 94  gen_load.sh
94  gen_load.sh
@@ -11,7 +11,99 @@ PORT=5984
11 11
 
12 12
 URL="http://$HOST:$PORT/_generate_load?total=$TOTAL_DOCS&db=$DB&concurrency=$CONCURRENCY&batch=$BATCH_SIZE&delayed_commits=$DELAYED_COMMITS&optimistic=$OPTIMISTIC"
13 13
 
  14
+DOC_ATTS='{"_attachments":{"foo.txt": {"content_type":"application/binary","data":"MTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx"}}}'
  15
+
  16
+DOC_1K='{
  17
+    "category": "wizard",
  18
+    "type": "dwarf",
  19
+    "level": 13,
  20
+    "ratio": 1.8,
  21
+    "data1": "31d6aOtoEqmPOZH9wWnEP56LHRYq5LMkSbIzTzQk",
  22
+    "data2": "jQj9YEKLwLsvQnZdfp1Em1myn2cFtF6mp41UTHMSaz6ucLs0NN",
  23
+    "data3": "QxVx4VYQJ4kXamEuaNhZYMfJ9CRCGPVivox",
  24
+    "integers": [
  25
+        59740, 77318, 85730, 22711, 83219, 9113, 90262,
  26
+        10553, 69055, 62303, 67322, 63930, 20929, 77409
  27
+    ],
  28
+    "nested": {
  29
+        "dict": {
  30
+            "kZ3S3lrT": 64,
  31
+            "0QSA4KIy": 3983,
  32
+            "ViMej46m": 15688,
  33
+            "PCe8Fk8e": 7392,
  34
+            "9MbPSlq8": 129,
  35
+            "FpLOJP3C": 11758,
  36
+            "lETmhfOL": 66809
  37
+        },
  38
+        "string1": "UDurtwKrMJMB0r1TjCOGukB",
  39
+        "string2": "EBVZ8ETnsL71",
  40
+        "string3": "iKyrxEp6teTiazK6kH",
  41
+        "values": [
  42
+            58277, 88822, 77135, 3475, 40849, 77577,
  43
+            51913, 24551, 30071, 52972
  44
+        ],
  45
+        "coords": [
  46
+            {"x": 93424.85000000001, "y": 189872.72},
  47
+            {"x": 23527.94, "y": 155983.89},
  48
+            {"x": 2496.26, "y": 169499.21},
  49
+            {"x": 5681.62, "y": 40945.77},
  50
+            {"x": 67300.38, "y": 138137.1}
  51
+        ]
  52
+    }
  53
+}'
  54
+
  55
+DOC_2K='{
  56
+    "data0": "9EVqHm5ARqcEB5jq21v2g0jVcG9CXB0Abk7uAF4NHYyTzeF3TnHhpZBECD14U2bCJPyBY0JWDr1Tjh8gTB0sWUNjqYiWDxFzlx6S",
  57
+    "data5": {
  58
+        "integers": [
  59
+            756509, 116117, 776378, 275045, 703447, 50156, 685803, 147958, 941747,
  60
+            905651, 57367, 530248, 312888, 740951, 988947, 450154
  61
+        ],
  62
+        "floats": [
  63
+            43121609.5543, 99454976.3019, 32945584.756, 18122905.9212, 14590614.6939,
  64
+            45292214.2242, 3332166.364, 53784167.729, 25193846.1867, 81456965.477,
  65
+            68532032.39, 73820009.7952, 57736110.5717, 37304166.7363, 20054244.864,
  66
+            29746392.7397, 86467624.6, 45192685.8793, 44008816.5186, 1861872.8736, 14595859.467,
  67
+            87795257.6703, 57768720.8303, 18290154.3126, 45893183.44, 63052200.6225, 69032152.6897,
  68
+            3748217.6946, 75449850.474, 37111527.415, 84852536.859, 32906366.487, 27027600.417,
  69
+            4758851.9417, 75227407.9214, 76946667.8403, 72518275.9469, 94167085.9588, 75883067.8321,
  70
+            27389831.6101, 57987075.5053, 1298995.2674
  71
+        ],
  72
+        "nested1": {
  73
+            "integers": [
  74
+                756509, 116117, 776378, 275045, 703447, 50156, 685803, 12345678,
  75
+                147958, 941747, 905651, 57367, 530248, 312888, 740951, 988947, 450154
  76
+            ],
  77
+            "floats": [
  78
+                41415831.8949, 24796297.4251, 2819085.3449, 84263963.4848, 74503228.6878, 67925677.403,
  79
+                4758851.9417, 75227407.9214, 76946667.8403, 72518275.9469, 94167085.9588, 75883067.8321,
  80
+                27389831.6101, 57987075.5053, 1298995.2674, 80858801.2712, 98262252.4656, 51612877.944,
  81
+                33397812.7835, 36089655.3049, 50164685.8153, 16852105.5192, 61171929.752, 86376339.7175
  82
+            ]
  83
+        }
  84
+    },
  85
+    "more_nested": {
  86
+        "nested2": {
  87
+            "strings": [
  88
+                "jURcBZ0vrJcmf2roZUMzZJQoTsKZDIdj7KhO7itskKvM80jBU9",
  89
+                "8jKLmo3N2zYdKyTyfTczfr2x6bPaarorlnTNJ7r8lIkiZyBvrP",
  90
+                "jbUeAVOdBSPzYmYhH0sabUHUH39O5e",
  91
+                "I8yAQKZsyZhMfpzWjArQU9pQ6PfU6b14q2eWvQjtCUdgAUxFjg",
  92
+                "97N8ZmGcxRZO4ZabzRRcY4KVHqxJwQ8qY",
  93
+                "0DtY1aWXmUfJENt9rYW9",
  94
+                "DtpBUEppPwMnWexi8eIIxlXRO3GUpPgeNFG9ONpWJYvk8xBkVj",
  95
+                "YsX8V2xOrTw6LhNIMMhO4F4VXFyXUXFr66L3sTkLWgFA9NZuBV",
  96
+                "fKYYthv8iFvaYoFoYZyB"
  97
+            ],
  98
+            "integers": [
  99
+                756509, 116117, 776378, 275045, 703447, 50156, 685803, 147958,
  100
+                941747, 905651, 57367, 530248, 312888, 740951, 988947, 450154
  101
+            ]
  102
+        }
  103
+    }
  104
+}'
  105
+
14 106
 curl -X POST \
15 107
         $URL \
16 108
 	-H "Content-Type: application/json" \
17  
-	-d '{"_attachments":{"foo.txt": {"content_type":"application/binary","data":"MTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx\r\nMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEx"}}}'
  109
+	-d "$DOC_2K"

0 notes on commit 36292fe

Please sign in to comment.
Something went wrong with that request. Please try again.