1{ 2 "bundles": [ 3 { 4 "sourcePath": "tests/unit/data/benchmark.cf", 5 "line": 9, 6 "namespace": "default", 7 "name": "main", 8 "bundleType": "agent", 9 "arguments": [], 10 "promiseTypes": [ 11 { 12 "line": 11, 13 "name": "reports", 14 "contexts": [ 15 { 16 "name": "cfengine", 17 "promises": [ 18 { 19 "line": 13, 20 "promiser": "Hello, CFEngine", 21 "attributes": [ 22 { 23 "line": 14, 24 "lval": "friend_pattern", 25 "rval": { 26 "type": "functionCall", 27 "name": "hash", 28 "arguments": [ 29 { 30 "type": "string", 31 "value": "abc" 32 }, 33 { 34 "type": "string", 35 "value": "md5" 36 } 37 ] 38 } 39 } 40 ] 41 } 42 ] 43 }, 44 { 45 "name": "any", 46 "promises": [ 47 { 48 "line": 16, 49 "promiser": "Hello, world", 50 "attributes": [ 51 { 52 "line": 17, 53 "lval": "friend_pattern", 54 "rval": { 55 "type": "functionCall", 56 "name": "hash", 57 "arguments": [ 58 { 59 "type": "string", 60 "value": "abc" 61 }, 62 { 63 "type": "string", 64 "value": "md5" 65 } 66 ] 67 } 68 } 69 ] 70 } 71 ] 72 } 73 ] 74 }, 75 { 76 "line": 19, 77 "name": "files", 78 "contexts": [ 79 { 80 "name": "any", 81 "promises": [ 82 { 83 "line": 20, 84 "promiser": "/tmp/stuff", 85 "promisee": [ 86 "stakeholder" 87 ], 88 "attributes": [ 89 { 90 "line": 21, 91 "lval": "create", 92 "rval": { 93 "type": "string", 94 "value": "true" 95 } 96 }, 97 { 98 "line": 22, 99 "lval": "perms", 100 "rval": { 101 "type": "symbol", 102 "value": "myperms" 103 } 104 } 105 ] 106 } 107 ] 108 } 109 ] 110 }, 111 { 112 "line": 24, 113 "name": "processes", 114 "contexts": [ 115 { 116 "name": "any", 117 "promises": [ 118 { 119 "line": 25, 120 "promiser": "/bin/stuff", 121 "promisee": [ 122 "stakeholder" 123 ], 124 "attributes": [] 125 } 126 ] 127 } 128 ] 129 } 130 ] 131 } 132 ], 133 "bodies": [ 134 { 135 "sourcePath": "tests/unit/data/benchmark.cf", 136 "line": 4, 137 "namespace": "default", 138 "name": "control", 139 "bodyType": "common", 140 "arguments": [], 141 "contexts": [ 142 { 143 "name": "any", 144 "attributes": [ 145 { 146 "line": 6, 147 "lval": "bundlesequence", 148 "rval": { 149 "type": "list", 150 "value": [ 151 { 152 "type": "string", 153 "value": "main" 154 } 155 ] 156 } 157 } 158 ] 159 } 160 ] 161 }, 162 { 163 "sourcePath": "tests/unit/data/benchmark.cf", 164 "line": 28, 165 "namespace": "default", 166 "name": "myperms", 167 "bodyType": "perms", 168 "arguments": [], 169 "contexts": [ 170 { 171 "name": "any", 172 "attributes": [ 173 { 174 "line": 30, 175 "lval": "mode", 176 "rval": { 177 "type": "string", 178 "value": "555" 179 } 180 } 181 ] 182 } 183 ] 184 } 185 ] 186} 187