Project

General

Profile

Revision 4a6b2238

Added by Thomas McKay about 6 years ago

fixes #17735 - export content-hosts count greater than page size

vcr - full re-record

View differences:

test/fixtures/vcr_cassettes/setup/setup_locations/setup.yml
21 21
      message: OK
22 22
    headers:
23 23
      Date:
24
      - Wed, 14 Dec 2016 13:43:43 GMT
24
      - Mon, 19 Dec 2016 16:43:54 GMT
25 25
      Server:
26 26
      - Apache/2.4.6 (Red Hat Enterprise Linux)
27 27
      X-Frame-Options:
......
31 31
      X-Content-Type-Options:
32 32
      - nosniff
33 33
      Foreman-Version:
34
      - 1.11.0.54
34
      - 1.11.0.61
35 35
      Foreman-Api-Version:
36 36
      - '2'
37 37
      Apipie-Checksum:
38
      - e1df2e8d43e22495b02a53b48e3b5298
38
      - 9793fd9909c89b81479655ed560c4340
39 39
      Cache-Control:
40 40
      - max-age=0, private, must-revalidate
41 41
      X-Request-Id:
42
      - 0ccbe58d-34d6-49ea-8ac7-273aef6cde81
42
      - 9e06abe3-744d-4563-be1d-977239bd6869
43 43
      X-Runtime:
44
      - '0.039506'
44
      - '0.043884'
45 45
      X-Powered-By:
46 46
      - Phusion Passenger 4.0.18
47 47
      Set-Cookie:
48
      - _session_id=6039a83cad42beaf851357f69fd2b225; path=/; secure; HttpOnly
48
      - _session_id=cee7f022899ee225acef9f58c9424993; path=/; secure; HttpOnly
49 49
      Etag:
50
      - '"8e3341d0a4cc328651f7391aed11fef8"'
50
      - '"6ec0375dc2b106a955e67a8139b7d9c5"'
51 51
      Status:
52 52
      - 200 OK
53 53
      Content-Length:
......
56 56
      - application/json; charset=utf-8
57 57
    body:
58 58
      encoding: UTF-8
59
      string: '{"result":"ok","status":200,"version":"1.11.0.54","api_version":2}'
59
      string: '{"result":"ok","status":200,"version":"1.11.0.61","api_version":2}'
60 60
    http_version: 
61
  recorded_at: Wed, 14 Dec 2016 13:43:38 GMT
61
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
62 62
- request:
63 63
    method: get
64 64
    uri: https://admin:changeme@satlap.example.com/api/v2/plugins
......
80 80
      message: OK
81 81
    headers:
82 82
      Date:
83
      - Wed, 14 Dec 2016 13:43:43 GMT
83
      - Mon, 19 Dec 2016 16:43:54 GMT
84 84
      Server:
85 85
      - Apache/2.4.6 (Red Hat Enterprise Linux)
86 86
      X-Frame-Options:
......
90 90
      X-Content-Type-Options:
91 91
      - nosniff
92 92
      Foreman-Version:
93
      - 1.11.0.54
93
      - 1.11.0.61
94 94
      Foreman-Api-Version:
95 95
      - '2'
96 96
      Apipie-Checksum:
97
      - e1df2e8d43e22495b02a53b48e3b5298
97
      - 9793fd9909c89b81479655ed560c4340
98 98
      Cache-Control:
99 99
      - max-age=0, private, must-revalidate
100 100
      X-Request-Id:
101
      - 608f1117-6dfa-4b09-8746-2c8da095de33
101
      - 3676a58b-0652-4e2e-a9af-c7c6e46b94d0
102 102
      X-Runtime:
103
      - '0.045438'
103
      - '0.038263'
104 104
      X-Powered-By:
105 105
      - Phusion Passenger 4.0.18
106 106
      Set-Cookie:
107
      - _session_id=7e2ae5aee2e1e41955d4cda54321c2c7; path=/; secure; HttpOnly
107
      - _session_id=93fcb4082190fd544affe07b9c886e32; path=/; secure; HttpOnly
108 108
      Etag:
109
      - '"077fb42a553a8a1a1bbf6262a2cc79ec-gzip"'
109
      - '"973c5d3fa1e5326b7762aec3d6a31dde-gzip"'
110 110
      Status:
111 111
      - 200 OK
112 112
      Vary:
113 113
      - Accept-Encoding
114 114
      Content-Length:
115
      - '1338'
115
      - '1339'
116 116
      Content-Type:
117 117
      - application/json; charset=utf-8
118 118
    body:
......
133 133
        dXJjZS4gSXQgYWxzbyBvcHRpb25hbGx5IHByb3ZpZGVzIER5bmZsb3cgaW5m
134 134
        cmFzdHJ1Y3R1cmUgZm9yIHVzaW5nIGl0IGZvciBtYW5hZ2luZyB0aGUgdGFz
135 135
        a3MuXG4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9m
136
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC45In0seyJpZCI6ImZv
137
        cmVtYW5fYm9vdGRpc2siLCJuYW1lIjoiZm9yZW1hbl9ib290ZGlzayIsImF1
138
        dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJkZXNjcmlwdGlvbiI6IlBsdWdpbiBm
139
        b3IgRm9yZW1hbiB0aGF0IGNyZWF0ZXMgaVBYRS1iYXNlZCBib290IGRpc2tz
140
        IHRvIHByb3Zpc2lvbiBob3N0cyB3aXRob3V0IHRoZSBuZWVkIGZvciBQWEUg
141
        aW5mcmFzdHJ1Y3R1cmUuIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
142
        Zm9yZW1hbi9mb3JlbWFuX2Jvb3RkaXNrIiwidmVyc2lvbiI6IjYuMS4wLjMi
143
        fSx7ImlkIjoiZm9yZW1hbl9kaXNjb3ZlcnkiLCJuYW1lIjoiZm9yZW1hbl9k
144
        aXNjb3ZlcnkiLCJhdXRob3IiOiJBbW9zIEJlbmFyaSxCcnlhbiBLZWFybmV5
145
        LENoYWlybWFuVHViZUFtcCxEYW5pZWwgTG9iYXRvIEdhcmPDrWEsRG9taW5p
146
        YyBDbGVhbCxFcmljIEQuIEhlbG1zLEZyYW5rIFdhbGwsR3JlZyBTdXRjbGlm
147
        ZmUsSW1yaSBadmlrLEpvc2VwaCBNaXRjaGVsbCBNYWdlbixMdWthcyBaYXBs
148
        ZXRhbCxMdWvDocWhIFphcGxldGFsLE1hcmVrIEh1bGFuLE1hcnRpbiBCYcSN
149
        b3Zza8O9LE1hdHQgSmFydmlzLE1pY2hhZWwgTW9sbCxOaWNrLE9oYWQgTGV2
150
        eSxPcmkgUmFiaW4sUGV0ciBDaGFsdXBhLFBoaXJpbmNlIFBoaWxpcCxTY3Vi
151
        YWZsb3lkLFNobG9taSBaYWRvayxTdGVwaGVuIEJlbmphbWluLFlhbm4gQ8Op
152
        emFyZCIsImRlc2NyaXB0aW9uIjoiTWFhUyBEaXNjb3ZlcnkgUGx1Z2luIGVu
153
        Z2luZSBmb3IgRm9yZW1hbiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
154
        ZWZvcmVtYW4vZm9yZW1hbl9kaXNjb3ZlcnkiLCJ2ZXJzaW9uIjoiNS4wLjAu
155
        OSJ9LHsiaWQiOiJmb3JlbWFuX2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2Rv
156
        Y2tlciIsImF1dGhvciI6IkRhbmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwi
157
        ZGVzY3JpcHRpb24iOiJQcm92aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29u
158
        dGFpbmVycyBhbmQgaW1hZ2VzIGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRw
159
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVy
160
        c2lvbiI6IjIuMC4xLjExIn0seyJpZCI6ImZvcmVtYW5faG9va3MiLCJuYW1l
161
        IjoiZm9yZW1hbl9ob29rcyIsImF1dGhvciI6IkRvbWluaWMgQ2xlYWwiLCJk
162
        ZXNjcmlwdGlvbiI6IlBsdWdpbiBlbmdpbmUgZm9yIEZvcmVtYW4gdGhhdCBl
163
        bmFibGVzIHJ1bm5pbmcgY3VzdG9tIGhvb2sgc2NyaXB0cyBvbiBGb3JlbWFu
164
        IGV2ZW50cyIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4v
165
        Zm9yZW1hbl9ob29rcyIsInZlcnNpb24iOiIwLjMuMTEifSx7ImlkIjoiZm9y
166
        ZW1hbl9vcGVuc2NhcCIsIm5hbWUiOiJmb3JlbWFuX29wZW5zY2FwIiwiYXV0
167
        aG9yIjoixaBpbW9uIEx1a2HFocOtayxTaGxvbWkgWmFkb2ssTWFyZWsgSHVs
168
        YW4sT25kcmVqIFByYXphayIsImRlc2NyaXB0aW9uIjoiRm9yZW1hbiBwbHVn
169
        LWluIGZvciBtYW5hZ2luZyBzZWN1cml0eSBjb21wbGlhbmNlIHJlcG9ydHMi
170
        LCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vT3BlblNDQVAvZm9yZW1hbl9v
171
        cGVuc2NhcCIsInZlcnNpb24iOiIwLjUuMy4xOCJ9LHsiaWQiOiJmb3JlbWFu
172
        X3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1hbl9yZW1vdGVfZXhl
173
        Y3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUgRXhlY3V0aW9uIHRl
174
        YW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5naW5nIHJlbW90ZSBl
175
        eGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRpbmcgdGhlIGNvbmZp
176
        ZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCByZW1vdGUgbWFuYWdl
177
        bWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBzOi8vZ2l0aHViLmNv
178
        bS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1dGlvbiIsInZlcnNp
179
        b24iOiIwLjMuMC4xMiJ9LHsiaWQiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0
180
        ZSIsIm5hbWUiOiJmb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsImF1dGhvciI6
181
        IkFsb24gR29sZGJvaW0sIFNoaW1vbiBTdGVpbiIsImRlc2NyaXB0aW9uIjoi
182
        VGhpcyBpcyBhIHBsdWdpbiB0aGF0IGVuYWJsZXMgYnVpbGRpbmcgYSB0aGVt
183
        ZSBmb3IgRm9yZW1hbi4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5jb20vYWxv
184
        bmdvbGRib2ltL2ZvcmVtYW5fdGhlbWVfc2F0ZWxsaXRlIiwidmVyc2lvbiI6
185
        IjAuMS4zMyJ9LHsiaWQiOiJrYXRlbGxvIiwibmFtZSI6ImthdGVsbG8iLCJh
186
        dXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNvbnRlbnQgYW5kIFN1YnNj
187
        cmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3IgRm9yZW1hbiIsInVybCI6
188
        Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJzaW9uIjoiMy4wLjAuODIi
189
        fSx7ImlkIjoicmVkaGF0X2FjY2VzcyIsIm5hbWUiOiJyZWRoYXRfYWNjZXNz
190
        IiwiYXV0aG9yIjoiTGluZGFuaSBQaGlyaSIsImRlc2NyaXB0aW9uIjoiVGhp
191
        cyBwbHVnaW4gYWRkcyBSZWQgSGF0IEFjY2VzcyBrbm93bGVkZ2UgYmFzZSBz
192
        ZWFyY2gsIGNhc2UgbWFuYWdlbWVudCBhbmQgZGlhZ25vc3RpY3MgdG8gRm9y
193
        ZW1hbiIsInVybCI6Imh0dHA6Ly93d3cubHBoaXJpLnJlZGhhdC5jb20iLCJ2
194
        ZXJzaW9uIjoiMS4wLjEzIn1dCn0K
136
        b3JlbWFuLXRhc2tzIiwidmVyc2lvbiI6IjAuNy4xNC4xMSJ9LHsiaWQiOiJm
137
        b3JlbWFuX2Jvb3RkaXNrIiwibmFtZSI6ImZvcmVtYW5fYm9vdGRpc2siLCJh
138
        dXRob3IiOiJEb21pbmljIENsZWFsIiwiZGVzY3JpcHRpb24iOiJQbHVnaW4g
139
        Zm9yIEZvcmVtYW4gdGhhdCBjcmVhdGVzIGlQWEUtYmFzZWQgYm9vdCBkaXNr
140
        cyB0byBwcm92aXNpb24gaG9zdHMgd2l0aG91dCB0aGUgbmVlZCBmb3IgUFhF
141
        IGluZnJhc3RydWN0dXJlLiIsInVybCI6Imh0dHA6Ly9naXRodWIuY29tL3Ro
142
        ZWZvcmVtYW4vZm9yZW1hbl9ib290ZGlzayIsInZlcnNpb24iOiI2LjEuMC4z
143
        In0seyJpZCI6ImZvcmVtYW5fZGlzY292ZXJ5IiwibmFtZSI6ImZvcmVtYW5f
144
        ZGlzY292ZXJ5IiwiYXV0aG9yIjoiQW1vcyBCZW5hcmksQnJ5YW4gS2Vhcm5l
145
        eSxDaGFpcm1hblR1YmVBbXAsRGFuaWVsIExvYmF0byBHYXJjw61hLERvbWlu
146
        aWMgQ2xlYWwsRXJpYyBELiBIZWxtcyxGcmFuayBXYWxsLEdyZWcgU3V0Y2xp
147
        ZmZlLEltcmkgWnZpayxKb3NlcGggTWl0Y2hlbGwgTWFnZW4sTHVrYXMgWmFw
148
        bGV0YWwsTHVrw6HFoSBaYXBsZXRhbCxNYXJlayBIdWxhbixNYXJ0aW4gQmHE
149
        jW92c2vDvSxNYXR0IEphcnZpcyxNaWNoYWVsIE1vbGwsTmljayxPaGFkIExl
150
        dnksT3JpIFJhYmluLFBldHIgQ2hhbHVwYSxQaGlyaW5jZSBQaGlsaXAsU2N1
151
        YmFmbG95ZCxTaGxvbWkgWmFkb2ssU3RlcGhlbiBCZW5qYW1pbixZYW5uIEPD
152
        qXphcmQiLCJkZXNjcmlwdGlvbiI6Ik1hYVMgRGlzY292ZXJ5IFBsdWdpbiBl
153
        bmdpbmUgZm9yIEZvcmVtYW4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90
154
        aGVmb3JlbWFuL2ZvcmVtYW5fZGlzY292ZXJ5IiwidmVyc2lvbiI6IjUuMC4w
155
        LjkifSx7ImlkIjoiZm9yZW1hbl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9k
156
        b2NrZXIiLCJhdXRob3IiOiJEYW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIs
157
        ImRlc2NyaXB0aW9uIjoiUHJvdmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNv
158
        bnRhaW5lcnMgYW5kIGltYWdlcyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0
159
        cDovL2dpdGh1Yi5jb20vdGhlZm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZl
160
        cnNpb24iOiIyLjAuMS4xMSJ9LHsiaWQiOiJmb3JlbWFuX2hvb2tzIiwibmFt
161
        ZSI6ImZvcmVtYW5faG9va3MiLCJhdXRob3IiOiJEb21pbmljIENsZWFsIiwi
162
        ZGVzY3JpcHRpb24iOiJQbHVnaW4gZW5naW5lIGZvciBGb3JlbWFuIHRoYXQg
163
        ZW5hYmxlcyBydW5uaW5nIGN1c3RvbSBob29rIHNjcmlwdHMgb24gRm9yZW1h
164
        biBldmVudHMiLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVmb3JlbWFu
165
        L2ZvcmVtYW5faG9va3MiLCJ2ZXJzaW9uIjoiMC4zLjExIn0seyJpZCI6ImZv
166
        cmVtYW5fb3BlbnNjYXAiLCJuYW1lIjoiZm9yZW1hbl9vcGVuc2NhcCIsImF1
167
        dGhvciI6IsWgaW1vbiBMdWthxaHDrWssU2hsb21pIFphZG9rLE1hcmVrIEh1
168
        bGFuLE9uZHJlaiBQcmF6YWsiLCJkZXNjcmlwdGlvbiI6IkZvcmVtYW4gcGx1
169
        Zy1pbiBmb3IgbWFuYWdpbmcgc2VjdXJpdHkgY29tcGxpYW5jZSByZXBvcnRz
170
        IiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL09wZW5TQ0FQL2ZvcmVtYW5f
171
        b3BlbnNjYXAiLCJ2ZXJzaW9uIjoiMC41LjMuMTgifSx7ImlkIjoiZm9yZW1h
172
        bl9yZW1vdGVfZXhlY3V0aW9uIiwibmFtZSI6ImZvcmVtYW5fcmVtb3RlX2V4
173
        ZWN1dGlvbiIsImF1dGhvciI6IkZvcmVtYW4gUmVtb3RlIEV4ZWN1dGlvbiB0
174
        ZWFtIiwiZGVzY3JpcHRpb24iOiJBIHBsdWdpbiBicmluZ2luZyByZW1vdGUg
175
        ZXhlY3V0aW9uIHRvIHRoZSBGb3JlbWFuLCBjb21wbGV0aW5nIHRoZSBjb25m
176
        aWcgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5IHdpdGggcmVtb3RlIG1hbmFn
177
        ZW1lbnQgZnVuY3Rpb25hbGl0eS4iLCJ1cmwiOiJodHRwczovL2dpdGh1Yi5j
178
        b20vdGhlZm9yZW1hbi9mb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJ2ZXJz
179
        aW9uIjoiMC4zLjAuMTIifSx7ImlkIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxp
180
        dGUiLCJuYW1lIjoiZm9yZW1hbl90aGVtZV9zYXRlbGxpdGUiLCJhdXRob3Ii
181
        OiJBbG9uIEdvbGRib2ltLCBTaGltb24gU3RlaW4iLCJkZXNjcmlwdGlvbiI6
182
        IlRoaXMgaXMgYSBwbHVnaW4gdGhhdCBlbmFibGVzIGJ1aWxkaW5nIGEgdGhl
183
        bWUgZm9yIEZvcmVtYW4uIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL2Fs
184
        b25nb2xkYm9pbS9mb3JlbWFuX3RoZW1lX3NhdGVsbGl0ZSIsInZlcnNpb24i
185
        OiIwLjEuMzYifSx7ImlkIjoia2F0ZWxsbyIsIm5hbWUiOiJrYXRlbGxvIiwi
186
        YXV0aG9yIjoiTi9BIiwiZGVzY3JpcHRpb24iOiJDb250ZW50IGFuZCBTdWJz
187
        Y3JpcHRpb24gTWFuYWdlbWVudCBwbHVnaW4gZm9yIEZvcmVtYW4iLCJ1cmwi
188
        OiJodHRwOi8vd3d3LmthdGVsbG8ub3JnIiwidmVyc2lvbiI6IjMuMC4wLjkw
189
        In0seyJpZCI6InJlZGhhdF9hY2Nlc3MiLCJuYW1lIjoicmVkaGF0X2FjY2Vz
190
        cyIsImF1dGhvciI6IkxpbmRhbmkgUGhpcmkiLCJkZXNjcmlwdGlvbiI6IlRo
191
        aXMgcGx1Z2luIGFkZHMgUmVkIEhhdCBBY2Nlc3Mga25vd2xlZGdlIGJhc2Ug
192
        c2VhcmNoLCBjYXNlIG1hbmFnZW1lbnQgYW5kIGRpYWdub3N0aWNzIHRvIEZv
193
        cmVtYW4iLCJ1cmwiOiJodHRwOi8vd3d3LmxwaGlyaS5yZWRoYXQuY29tIiwi
194
        dmVyc2lvbiI6IjEuMC4xMyJ9XQp9Cg==
195 195
    http_version: 
196
  recorded_at: Wed, 14 Dec 2016 13:43:38 GMT
196
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
197 197
- request:
198 198
    method: get
199 199
    uri: https://admin:changeme@satlap.example.com/api/locations?per_page=999999
......
219 219
      message: OK
220 220
    headers:
221 221
      Date:
222
      - Wed, 14 Dec 2016 13:43:43 GMT
222
      - Mon, 19 Dec 2016 16:43:54 GMT
223 223
      Server:
224 224
      - Apache/2.4.6 (Red Hat Enterprise Linux)
225 225
      X-Frame-Options:
......
229 229
      X-Content-Type-Options:
230 230
      - nosniff
231 231
      Foreman-Version:
232
      - 1.11.0.54
232
      - 1.11.0.61
233 233
      Foreman-Api-Version:
234 234
      - '2'
235 235
      Apipie-Checksum:
236
      - e1df2e8d43e22495b02a53b48e3b5298
236
      - 9793fd9909c89b81479655ed560c4340
237 237
      Cache-Control:
238 238
      - max-age=0, private, must-revalidate
239 239
      X-Request-Id:
240
      - 66cb2103-d7b1-4c5b-ab03-e6321089516b
240
      - f2646e16-0adb-41e0-899f-fac07bbba9e8
241 241
      X-Runtime:
242
      - '0.035941'
242
      - '0.046061'
243 243
      X-Powered-By:
244 244
      - Phusion Passenger 4.0.18
245 245
      Set-Cookie:
246
      - _session_id=e133edd9be90f2a83d4fb1abe5b877e3; path=/; secure; HttpOnly
246
      - _session_id=a510a2caeb9dcff68296c62b234184df; path=/; secure; HttpOnly
247 247
      Etag:
248
      - '"e3182d44d3e6447f1a85f9a09ac2c8c6-gzip"'
248
      - '"7cf41e79e0eb9c2cafbad18be7b049e0-gzip"'
249 249
      Status:
250 250
      - 200 OK
251 251
      Vary:
......
267 267
            "by": null,
268 268
            "order": null
269 269
          },
270
          "results": [{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-07 03:03:54 UTC","updated_at":"2016-12-07 03:03:54 UTC","id":2,"name":"Default Location","title":"Default Location","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:24 UTC","updated_at":"2016-12-14 13:43:11 UTC","id":4,"name":"Test East","title":"Test East","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:23 UTC","updated_at":"2016-12-14 13:43:11 UTC","id":3,"name":"Testing","title":"Testing","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:24 UTC","updated_at":"2016-12-14 13:43:12 UTC","id":5,"name":"Test North","title":"Test North","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:25 UTC","updated_at":"2016-12-14 13:43:12 UTC","id":6,"name":"Test South","title":"Test South","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:25 UTC","updated_at":"2016-12-14 13:43:12 UTC","id":7,"name":"Test West","title":"Test West","description":null}]
270
          "results": [{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-07 03:03:54 UTC","updated_at":"2016-12-07 03:03:54 UTC","id":2,"name":"Default Location","title":"Default Location","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:24 UTC","updated_at":"2016-12-19 16:39:57 UTC","id":4,"name":"Test East","title":"Test East","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:23 UTC","updated_at":"2016-12-19 16:42:45 UTC","id":3,"name":"Testing","title":"Testing","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:24 UTC","updated_at":"2016-12-19 16:39:57 UTC","id":5,"name":"Test North","title":"Test North","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:25 UTC","updated_at":"2016-12-19 16:39:58 UTC","id":6,"name":"Test South","title":"Test South","description":null},{"ancestry":null,"parent_id":null,"parent_name":null,"created_at":"2016-12-13 10:58:25 UTC","updated_at":"2016-12-19 16:39:58 UTC","id":7,"name":"Test West","title":"Test West","description":null}]
271 271
        }
272 272
    http_version: 
273
  recorded_at: Wed, 14 Dec 2016 13:43:38 GMT
273
  recorded_at: Mon, 19 Dec 2016 16:43:37 GMT
274 274
- request:
275 275
    method: put
276 276
    uri: https://admin:changeme@satlap.example.com/api/locations/3
......
298 298
      message: OK
299 299
    headers:
300 300
      Date:
301
      - Wed, 14 Dec 2016 13:43:43 GMT
301
      - Mon, 19 Dec 2016 16:43:54 GMT
302 302
      Server:
303 303
      - Apache/2.4.6 (Red Hat Enterprise Linux)
304 304
      X-Frame-Options:
......
308 308
      X-Content-Type-Options:
309 309
      - nosniff
310 310
      Foreman-Version:
311
      - 1.11.0.54
311
      - 1.11.0.61
312 312
      Foreman-Api-Version:
313 313
      - '2'
314 314
      Apipie-Checksum:
315
      - e1df2e8d43e22495b02a53b48e3b5298
315
      - 9793fd9909c89b81479655ed560c4340
316 316
      Cache-Control:
317 317
      - max-age=0, private, must-revalidate
318 318
      X-Request-Id:
319
      - 51b0e692-211f-4b50-a0c4-72aa244053f7
319
      - a86d0333-5075-40b3-a508-f8d2cafa1336
320 320
      X-Runtime:
321
      - '0.220036'
321
      - '0.269079'
322 322
      X-Powered-By:
323 323
      - Phusion Passenger 4.0.18
324 324
      Set-Cookie:
325
      - _session_id=5c591bc6b15c9963a3e0245e009ce280; path=/; secure; HttpOnly
325
      - _session_id=825387be7828917adeb40994ef62198e; path=/; secure; HttpOnly
326 326
      - request_method=PUT; path=/
327 327
      Etag:
328
      - '"2b78bb6e65b2cc502249e2a482a0074e-gzip"'
328
      - '"e328282a98e7b8b6424f589161ffcda4-gzip"'
329 329
      Status:
330 330
      - 200 OK
331 331
      Vary:
......
337 337
    body:
338 338
      encoding: ASCII-8BIT
339 339
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-12-13
340
        10:58:23 UTC","updated_at":"2016-12-14 13:43:43 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":3,"name":"Testing","title":"Testing","users":[],"smart_proxies":[],"subnets":[{"id":1,"name":"Test
340
        10:58:23 UTC","updated_at":"2016-12-19 16:43:54 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":3,"name":"Testing","title":"Testing","users":[],"smart_proxies":[],"subnets":[{"id":1,"name":"Test
341 341
        Subnet","network_address":"192.168.100.1/24"}],"compute_resources":[],"media":[],"config_templates":[{"id":7,"name":"Alterator
342 342
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":8,"name":"Alterator
343 343
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":9,"name":"Alterator
......
447 447
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":36,"name":"WAIK
448 448
        default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
449 449
    http_version: 
450
  recorded_at: Wed, 14 Dec 2016 13:43:39 GMT
450
  recorded_at: Mon, 19 Dec 2016 16:43:38 GMT
451 451
- request:
452 452
    method: put
453 453
    uri: https://admin:changeme@satlap.example.com/api/locations/4
......
475 475
      message: OK
476 476
    headers:
477 477
      Date:
478
      - Wed, 14 Dec 2016 13:43:43 GMT
478
      - Mon, 19 Dec 2016 16:43:54 GMT
479 479
      Server:
480 480
      - Apache/2.4.6 (Red Hat Enterprise Linux)
481 481
      X-Frame-Options:
......
485 485
      X-Content-Type-Options:
486 486
      - nosniff
487 487
      Foreman-Version:
488
      - 1.11.0.54
488
      - 1.11.0.61
489 489
      Foreman-Api-Version:
490 490
      - '2'
491 491
      Apipie-Checksum:
492
      - e1df2e8d43e22495b02a53b48e3b5298
492
      - 9793fd9909c89b81479655ed560c4340
493 493
      Cache-Control:
494 494
      - max-age=0, private, must-revalidate
495 495
      X-Request-Id:
496
      - 52ea90e6-6d34-4902-95b5-f3b85483dfea
496
      - cafc7788-9483-4684-b59a-a65ad1fc5ff4
497 497
      X-Runtime:
498
      - '0.226417'
498
      - '0.270754'
499 499
      X-Powered-By:
500 500
      - Phusion Passenger 4.0.18
501 501
      Set-Cookie:
502
      - _session_id=2cc4c1672a0e07b8f5344aafcb0d7475; path=/; secure; HttpOnly
502
      - _session_id=92be87e01dc4203e24bcf6d0164ae974; path=/; secure; HttpOnly
503 503
      - request_method=PUT; path=/
504 504
      Etag:
505
      - '"417a7a505d956060b6e79c117fccbb61-gzip"'
505
      - '"b3275c4984148c5d4c531fd4f6605ba2-gzip"'
506 506
      Status:
507 507
      - 200 OK
508 508
      Vary:
......
514 514
    body:
515 515
      encoding: ASCII-8BIT
516 516
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-12-13
517
        10:58:24 UTC","updated_at":"2016-12-14 13:43:43 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test
517
        10:58:24 UTC","updated_at":"2016-12-19 16:43:54 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":4,"name":"Test
518 518
        East","title":"Test East","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":7,"name":"Alterator
519 519
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":8,"name":"Alterator
520 520
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":9,"name":"Alterator
......
624 624
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":36,"name":"WAIK
625 625
        default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
626 626
    http_version: 
627
  recorded_at: Wed, 14 Dec 2016 13:43:39 GMT
627
  recorded_at: Mon, 19 Dec 2016 16:43:38 GMT
628 628
- request:
629 629
    method: put
630 630
    uri: https://admin:changeme@satlap.example.com/api/locations/5
......
652 652
      message: OK
653 653
    headers:
654 654
      Date:
655
      - Wed, 14 Dec 2016 13:43:44 GMT
655
      - Mon, 19 Dec 2016 16:43:54 GMT
656 656
      Server:
657 657
      - Apache/2.4.6 (Red Hat Enterprise Linux)
658 658
      X-Frame-Options:
......
662 662
      X-Content-Type-Options:
663 663
      - nosniff
664 664
      Foreman-Version:
665
      - 1.11.0.54
665
      - 1.11.0.61
666 666
      Foreman-Api-Version:
667 667
      - '2'
668 668
      Apipie-Checksum:
669
      - e1df2e8d43e22495b02a53b48e3b5298
669
      - 9793fd9909c89b81479655ed560c4340
670 670
      Cache-Control:
671 671
      - max-age=0, private, must-revalidate
672 672
      X-Request-Id:
673
      - 482a9009-4afc-44f1-a4d8-42510e234a39
673
      - 0b307064-b714-401c-a6c0-86014f8e9454
674 674
      X-Runtime:
675
      - '0.461095'
675
      - '0.298311'
676 676
      X-Powered-By:
677 677
      - Phusion Passenger 4.0.18
678 678
      Set-Cookie:
679
      - _session_id=e2f71f7a551969b683d8160c848878a6; path=/; secure; HttpOnly
679
      - _session_id=090c2c77565179c1e8812f242ee9aed2; path=/; secure; HttpOnly
680 680
      - request_method=PUT; path=/
681 681
      Etag:
682
      - '"4ce970f611d9b5783293436f1a3038c8-gzip"'
682
      - '"b1227d67c8f1d9e4242ddd73d689958c-gzip"'
683 683
      Status:
684 684
      - 200 OK
685 685
      Vary:
......
691 691
    body:
692 692
      encoding: ASCII-8BIT
693 693
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-12-13
694
        10:58:24 UTC","updated_at":"2016-12-14 13:43:44 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":5,"name":"Test
694
        10:58:24 UTC","updated_at":"2016-12-19 16:43:54 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":5,"name":"Test
695 695
        North","title":"Test North","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":7,"name":"Alterator
696 696
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":8,"name":"Alterator
697 697
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":9,"name":"Alterator
......
801 801
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":36,"name":"WAIK
802 802
        default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
803 803
    http_version: 
804
  recorded_at: Wed, 14 Dec 2016 13:43:39 GMT
804
  recorded_at: Mon, 19 Dec 2016 16:43:38 GMT
805 805
- request:
806 806
    method: put
807 807
    uri: https://admin:changeme@satlap.example.com/api/locations/6
......
829 829
      message: OK
830 830
    headers:
831 831
      Date:
832
      - Wed, 14 Dec 2016 13:43:44 GMT
832
      - Mon, 19 Dec 2016 16:43:55 GMT
833 833
      Server:
834 834
      - Apache/2.4.6 (Red Hat Enterprise Linux)
835 835
      X-Frame-Options:
......
839 839
      X-Content-Type-Options:
840 840
      - nosniff
841 841
      Foreman-Version:
842
      - 1.11.0.54
842
      - 1.11.0.61
843 843
      Foreman-Api-Version:
844 844
      - '2'
845 845
      Apipie-Checksum:
846
      - e1df2e8d43e22495b02a53b48e3b5298
846
      - 9793fd9909c89b81479655ed560c4340
847 847
      Cache-Control:
848 848
      - max-age=0, private, must-revalidate
849 849
      X-Request-Id:
850
      - b77d9bb6-8803-47e2-a533-31c282d5b991
850
      - 8a230474-88aa-4f8d-a468-98910c673288
851 851
      X-Runtime:
852
      - '0.199474'
852
      - '0.350845'
853 853
      X-Powered-By:
854 854
      - Phusion Passenger 4.0.18
855 855
      Set-Cookie:
856
      - _session_id=2e09aefbfa2b22bb5b72828c57d477b6; path=/; secure; HttpOnly
856
      - _session_id=5f0cd6aa8ff003de4f287e3a1e822f4d; path=/; secure; HttpOnly
857 857
      - request_method=PUT; path=/
858 858
      Etag:
859
      - '"58ca9d2770f94adabab399abfc7ecd07-gzip"'
859
      - '"b7bff135718b23c9b48b783bc3ecd8b7-gzip"'
860 860
      Status:
861 861
      - 200 OK
862 862
      Vary:
......
868 868
    body:
869 869
      encoding: ASCII-8BIT
870 870
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-12-13
871
        10:58:25 UTC","updated_at":"2016-12-14 13:43:44 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":6,"name":"Test
871
        10:58:25 UTC","updated_at":"2016-12-19 16:43:55 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":6,"name":"Test
872 872
        South","title":"Test South","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":7,"name":"Alterator
873 873
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":8,"name":"Alterator
874 874
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":9,"name":"Alterator
......
978 978
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":36,"name":"WAIK
979 979
        default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
980 980
    http_version: 
981
  recorded_at: Wed, 14 Dec 2016 13:43:40 GMT
981
  recorded_at: Mon, 19 Dec 2016 16:43:39 GMT
982 982
- request:
983 983
    method: put
984 984
    uri: https://admin:changeme@satlap.example.com/api/locations/7
......
1006 1006
      message: OK
1007 1007
    headers:
1008 1008
      Date:
1009
      - Wed, 14 Dec 2016 13:43:44 GMT
1009
      - Mon, 19 Dec 2016 16:43:55 GMT
1010 1010
      Server:
1011 1011
      - Apache/2.4.6 (Red Hat Enterprise Linux)
1012 1012
      X-Frame-Options:
......
1016 1016
      X-Content-Type-Options:
1017 1017
      - nosniff
1018 1018
      Foreman-Version:
1019
      - 1.11.0.54
1019
      - 1.11.0.61
1020 1020
      Foreman-Api-Version:
1021 1021
      - '2'
1022 1022
      Apipie-Checksum:
1023
      - e1df2e8d43e22495b02a53b48e3b5298
1023
      - 9793fd9909c89b81479655ed560c4340
1024 1024
      Cache-Control:
1025 1025
      - max-age=0, private, must-revalidate
1026 1026
      X-Request-Id:
1027
      - 8ce9522b-81f7-433a-bfc7-e5e9892f29e5
1027
      - f636d660-4cff-4088-97c8-f829f7ba0e19
1028 1028
      X-Runtime:
1029
      - '0.203489'
1029
      - '0.278466'
1030 1030
      X-Powered-By:
1031 1031
      - Phusion Passenger 4.0.18
1032 1032
      Set-Cookie:
1033
      - _session_id=1612341c83b20478b81b00e072991a4d; path=/; secure; HttpOnly
1033
      - _session_id=34e3f1a83565423d9705dc8ae5af693c; path=/; secure; HttpOnly
1034 1034
      - request_method=PUT; path=/
1035 1035
      Etag:
1036
      - '"84a297e86e97aad6a90779d59f984562-gzip"'
1036
      - '"a7b72b23dd13cf7724ed8a7fbd84ba25-gzip"'
1037 1037
      Status:
1038 1038
      - 200 OK
1039 1039
      Vary:
......
1045 1045
    body:
1046 1046
      encoding: ASCII-8BIT
1047 1047
      string: '{"select_all_types":["ProvisioningTemplate","Hostgroup"],"description":null,"created_at":"2016-12-13
1048
        10:58:25 UTC","updated_at":"2016-12-14 13:43:44 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":7,"name":"Test
1048
        10:58:25 UTC","updated_at":"2016-12-19 16:43:55 UTC","ancestry":null,"parent_id":null,"parent_name":null,"id":7,"name":"Test
1049 1049
        West","title":"Test West","users":[],"smart_proxies":[],"subnets":[],"compute_resources":[],"media":[],"config_templates":[{"id":7,"name":"Alterator
1050 1050
        default","template_kind_id":5,"template_kind_name":"provision"},{"id":8,"name":"Alterator
1051 1051
        default finish","template_kind_id":6,"template_kind_name":"finish"},{"id":9,"name":"Alterator
......
1155 1155
        default","template_kind_id":8,"template_kind_name":"user_data"},{"id":36,"name":"WAIK
1156 1156
        default PXELinux","template_kind_id":2,"template_kind_name":"PXELinux"}],"domains":[],"realms":[],"environments":[],"hostgroups":[],"organizations":[],"parameters":[]}'
1157 1157
    http_version: 
1158
  recorded_at: Wed, 14 Dec 2016 13:43:40 GMT
1158
  recorded_at: Mon, 19 Dec 2016 16:43:39 GMT
1159 1159
recorded_with: VCR 3.0.3

Also available in: Unified diff