Project

General

Profile

Revision d9498f54

Added by Thomas McKay over 5 years ago

fixes #16428 - set domain FastGettext

+ Initialize FastGettext properly when called under Thread.new()
+ Changed pot/po files from _ to -

View differences:

test/fixtures/vcr_cassettes/resources/content_hosts_export/export.yml
2 2
http_interactions:
3 3
- request:
4 4
    method: get
5
    uri: http://admin:changeme@katello:3000/api/status
6
    body:
7
      encoding: US-ASCII
8
      string: ''
9
    headers:
10
      Accept-Encoding:
11
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
      Accept:
13
      - '*/*'
14
      User-Agent:
15
      - Ruby
16
  response:
17
    status:
18
      code: 200
19
      message: OK
20
    headers:
21
      X-Frame-Options:
22
      - SAMEORIGIN
23
      X-Xss-Protection:
24
      - 1; mode=block
25
      X-Content-Type-Options:
26
      - nosniff
27
      Foreman-Version:
28
      - 1.13.0-develop
29
      Foreman-Api-Version:
30
      - '2'
31
      Content-Type:
32
      - application/json; charset=utf-8
33
      Apipie-Checksum:
34
      - e98945ba1db6bdbb4c25ce4988912344
35
      Etag:
36
      - W/"f536fd8685b76bb26a943d472593c93e"
37
      Cache-Control:
38
      - max-age=0, private, must-revalidate
39
      Set-Cookie:
40
      - _session_id=6e629008e2b647f0dba29226013334bf; path=/; HttpOnly
41
      X-Request-Id:
42
      - 1a3f360f-3ca3-404a-8b9a-a9dd1a9f5f58
43
      X-Runtime:
44
      - '0.457344'
45
      Transfer-Encoding:
46
      - chunked
47
    body:
48
      encoding: UTF-8
49
      string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
50
    http_version: 
51
  recorded_at: Tue, 16 Aug 2016 19:37:52 GMT
52
- request:
53
    method: get
54
    uri: http://admin:changeme@katello:3000/api/v2/plugins
55
    body:
56
      encoding: US-ASCII
57
      string: ''
58
    headers:
59
      Accept-Encoding:
60
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
      Accept:
62
      - '*/*'
63
      User-Agent:
64
      - Ruby
65
  response:
66
    status:
67
      code: 200
68
      message: OK
69
    headers:
70
      X-Frame-Options:
71
      - SAMEORIGIN
72
      X-Xss-Protection:
73
      - 1; mode=block
74
      X-Content-Type-Options:
75
      - nosniff
76
      Foreman-Version:
77
      - 1.13.0-develop
78
      Foreman-Api-Version:
79
      - '2'
80
      Content-Type:
81
      - application/json; charset=utf-8
82
      Apipie-Checksum:
83
      - e98945ba1db6bdbb4c25ce4988912344
84
      Etag:
85
      - W/"dc4a8351c6668134273bfe99879f93b1"
86
      Cache-Control:
87
      - max-age=0, private, must-revalidate
88
      Set-Cookie:
89
      - _session_id=f2c5401ffb4099ffefed140b8628e7de; path=/; HttpOnly
90
      X-Request-Id:
91
      - bc7b3b51-e5e1-487e-9f2e-b42a17140c8d
92
      X-Runtime:
93
      - '0.215330'
94
      Transfer-Encoding:
95
      - chunked
96
    body:
97
      encoding: ASCII-8BIT
98
      string: !binary |-
99
        ewogICJ0b3RhbCI6IDQsCiAgInN1YnRvdGFsIjogNCwKICAicGFnZSI6IDEs
100
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
101
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
102
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
103
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
104
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
105
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
106
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
107
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
108
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
109
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
110
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
111
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
112
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
113
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
114
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjcuMjAifSx7ImlkIjoiZm9yZW1h
115
        bl9kb2NrZXIiLCJuYW1lIjoiZm9yZW1hbl9kb2NrZXIiLCJhdXRob3IiOiJE
116
        YW5pZWwgTG9iYXRvLCBBbW9zIEJlbmFyaSIsImRlc2NyaXB0aW9uIjoiUHJv
117
        dmlzaW9uIGFuZCBtYW5hZ2UgRG9ja2VyIGNvbnRhaW5lcnMgYW5kIGltYWdl
118
        cyBmcm9tIEZvcmVtYW4uIiwidXJsIjoiaHR0cDovL2dpdGh1Yi5jb20vdGhl
119
        Zm9yZW1hbi9mb3JlbWFuLWRvY2tlciIsInZlcnNpb24iOiIzLjAuMCJ9LHsi
120
        aWQiOiJmb3JlbWFuX3JlbW90ZV9leGVjdXRpb24iLCJuYW1lIjoiZm9yZW1h
121
        bl9yZW1vdGVfZXhlY3V0aW9uIiwiYXV0aG9yIjoiRm9yZW1hbiBSZW1vdGUg
122
        RXhlY3V0aW9uIHRlYW0iLCJkZXNjcmlwdGlvbiI6IkEgcGx1Z2luIGJyaW5n
123
        aW5nIHJlbW90ZSBleGVjdXRpb24gdG8gdGhlIEZvcmVtYW4sIGNvbXBsZXRp
124
        bmcgdGhlIGNvbmZpZyBtYW5hZ2VtZW50IGZ1bmN0aW9uYWxpdHkgd2l0aCBy
125
        ZW1vdGUgbWFuYWdlbWVudCBmdW5jdGlvbmFsaXR5LiIsInVybCI6Imh0dHBz
126
        Oi8vZ2l0aHViLmNvbS90aGVmb3JlbWFuL2ZvcmVtYW5fcmVtb3RlX2V4ZWN1
127
        dGlvbiIsInZlcnNpb24iOiIxLjAuMCJ9LHsiaWQiOiJrYXRlbGxvIiwibmFt
128
        ZSI6ImthdGVsbG8iLCJhdXRob3IiOiJOL0EiLCJkZXNjcmlwdGlvbiI6IkNv
129
        bnRlbnQgYW5kIFN1YnNjcmlwdGlvbiBNYW5hZ2VtZW50IHBsdWdpbiBmb3Ig
130
        Rm9yZW1hbiIsInVybCI6Imh0dHA6Ly93d3cua2F0ZWxsby5vcmciLCJ2ZXJz
131
        aW9uIjoiMy4yLjAifV0KfQo=
132
    http_version: 
133
  recorded_at: Tue, 16 Aug 2016 19:37:52 GMT
134
- request:
135
    method: get
136
    uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999
137
    body:
138
      encoding: US-ASCII
139
      string: ''
140
    headers:
141
      Accept:
142
      - application/json;version=2
143
      Accept-Encoding:
144
      - gzip, deflate
145
      Content-Type:
146
      - application/json
147
      User-Agent:
148
      - Ruby
149
  response:
150
    status:
151
      code: 200
152
      message: OK
153
    headers:
154
      X-Frame-Options:
155
      - SAMEORIGIN
156
      X-Xss-Protection:
157
      - 1; mode=block
158
      X-Content-Type-Options:
159
      - nosniff
160
      Foreman-Version:
161
      - 1.13.0-develop
162
      Foreman-Api-Version:
163
      - '2'
164
      Content-Type:
165
      - application/json; charset=utf-8
166
      Apipie-Checksum:
167
      - e98945ba1db6bdbb4c25ce4988912344
168
      Etag:
169
      - W/"4334603e104dcf3bf9d4222dd9a77b6a"
170
      Cache-Control:
171
      - max-age=0, private, must-revalidate
172
      Set-Cookie:
173
      - _session_id=2ae74564c40f295dcbe6db34b987ab90; path=/; HttpOnly
174
      X-Request-Id:
175
      - b3f09222-4f69-49ca-b78b-4953703cad0d
176
      X-Runtime:
177
      - '1.289614'
178
      Transfer-Encoding:
179
      - chunked
180
    body:
181
      encoding: UTF-8
182
      string: |
183
        {
184
          "total": 3,
185
          "subtotal": 3,
186
          "page": 1,
187
          "per_page": 999999,
188
          "search": null,
189
          "sort": {
190
            "by": null,
191
            "order": null
192
          },
193
          "results": [{"label":"Default_Organization","created_at":"2016-08-10 12:38:23 UTC","updated_at":"2016-08-10 12:38:23 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"examplecorp","created_at":"2016-08-10 13:40:47 UTC","updated_at":"2016-08-10 13:40:47 UTC","id":3,"name":"Example Corporation","title":"Example Corporation","description":"The number one example company in the world!"},{"label":"testcorp","created_at":"2016-08-16 12:46:24 UTC","updated_at":"2016-08-16 12:46:24 UTC","id":4,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
194
        }
195
    http_version: 
196
  recorded_at: Tue, 16 Aug 2016 19:37:54 GMT
197
- request:
198
    method: get
199 5
    uri: http://admin:changeme@katello:3000/apidoc/v2.json
200 6
    body:
201 7
      encoding: US-ASCII
......
18719 18525
  recorded_at: Tue, 16 Aug 2016 19:37:54 GMT
18720 18526
- request:
18721 18527
    method: get
18722
    uri: http://admin:changeme@katello:3000/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
18528
    uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?per_page=999999
18723 18529
    body:
18724 18530
      encoding: US-ASCII
18725 18531
      string: ''
......
18752 18558
      Apipie-Checksum:
18753 18559
      - e98945ba1db6bdbb4c25ce4988912344
18754 18560
      Etag:
18755
      - W/"dec57c653102523d2cd2de13cb7fee01"
18561
      - W/"a4c7cad8c39c0a80e0091f015157f090"
18756 18562
      Cache-Control:
18757 18563
      - max-age=0, private, must-revalidate
18758 18564
      Set-Cookie:
18759
      - _session_id=129cb93423e585cf596e928386daeed2; path=/; HttpOnly
18565
      - _session_id=97b20ddae4629fd52c6b2f1a1af4a3b2; path=/; HttpOnly
18760 18566
      X-Request-Id:
18761
      - beb5c37f-3833-4004-a1fe-e0aa2669a10e
18567
      - 640bd941-08ec-43ed-b327-cc01acfa39c7
18762 18568
      X-Runtime:
18763
      - '0.240771'
18569
      - '0.249073'
18764 18570
      Transfer-Encoding:
18765 18571
      - chunked
18766 18572
    body:
18767 18573
      encoding: UTF-8
18768 18574
      string: |
18769 18575
        {
18770
          "total": 3,
18771
          "subtotal": 1,
18576
          "total": 0,
18577
          "subtotal": 0,
18772 18578
          "page": 1,
18773 18579
          "per_page": 999999,
18774
          "search": "name=\"Test Corporation\"",
18580
          "search": null,
18775 18581
          "sort": {
18776 18582
            "by": null,
18777 18583
            "order": null
18778 18584
          },
18779
          "results": [{"label":"testcorp","created_at":"2016-08-16 12:46:24 UTC","updated_at":"2016-08-16 12:46:24 UTC","id":4,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
18585
          "results": []
18780 18586
        }
18781 18587
    http_version: 
18782 18588
  recorded_at: Tue, 16 Aug 2016 19:37:54 GMT
18783 18589
- request:
18784 18590
    method: get
18785
    uri: http://admin:changeme@katello:3000/api/organizations/4/hosts?per_page=999999
18591
    uri: https://admin:changeme@katello.example.com:50191/api/status
18592
    body:
18593
      encoding: US-ASCII
18594
      string: ''
18595
    headers:
18596
      Accept-Encoding:
18597
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18598
      Accept:
18599
      - "*/*"
18600
      User-Agent:
18601
      - Ruby
18602
  response:
18603
    status:
18604
      code: 200
18605
      message: OK
18606
    headers:
18607
      Date:
18608
      - Wed, 07 Sep 2016 12:00:46 GMT
18609
      Server:
18610
      - Apache/2.4.6 (CentOS)
18611
      X-Frame-Options:
18612
      - SAMEORIGIN
18613
      X-Xss-Protection:
18614
      - 1; mode=block
18615
      X-Content-Type-Options:
18616
      - nosniff
18617
      Foreman-Version:
18618
      - 1.13.0-develop
18619
      Foreman-Api-Version:
18620
      - '2'
18621
      Content-Type:
18622
      - application/json; charset=utf-8
18623
      Apipie-Checksum:
18624
      - 9544abef9cf8343005f07ed8c9f1f8e7
18625
      Etag:
18626
      - W/"f536fd8685b76bb26a943d472593c93e-gzip"
18627
      Cache-Control:
18628
      - max-age=0, private, must-revalidate
18629
      X-Request-Id:
18630
      - 904a0572-249c-4b22-8720-7ba08648b80e
18631
      X-Runtime:
18632
      - '0.211952'
18633
      Via:
18634
      - 1.1 katello.example.com:50191
18635
      Vary:
18636
      - Accept-Encoding
18637
      Content-Length:
18638
      - '81'
18639
      Set-Cookie:
18640
      - _session_id=43094757b98f0c84367dca9745cc1849; path=/; HttpOnly
18641
    body:
18642
      encoding: UTF-8
18643
      string: '{"result":"ok","status":200,"version":"1.13.0-develop","api_version":2}'
18644
    http_version: 
18645
  recorded_at: Wed, 07 Sep 2016 12:00:48 GMT
18646
- request:
18647
    method: get
18648
    uri: https://admin:changeme@katello.example.com:50191/api/v2/plugins
18649
    body:
18650
      encoding: US-ASCII
18651
      string: ''
18652
    headers:
18653
      Accept-Encoding:
18654
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18655
      Accept:
18656
      - "*/*"
18657
      User-Agent:
18658
      - Ruby
18659
  response:
18660
    status:
18661
      code: 200
18662
      message: OK
18663
    headers:
18664
      Date:
18665
      - Wed, 07 Sep 2016 12:00:47 GMT
18666
      Server:
18667
      - Apache/2.4.6 (CentOS)
18668
      X-Frame-Options:
18669
      - SAMEORIGIN
18670
      X-Xss-Protection:
18671
      - 1; mode=block
18672
      X-Content-Type-Options:
18673
      - nosniff
18674
      Foreman-Version:
18675
      - 1.13.0-develop
18676
      Foreman-Api-Version:
18677
      - '2'
18678
      Content-Type:
18679
      - application/json; charset=utf-8
18680
      Apipie-Checksum:
18681
      - 9544abef9cf8343005f07ed8c9f1f8e7
18682
      Etag:
18683
      - W/"de0a55a439f41ab6fcd72b3d74503dcc-gzip"
18684
      Cache-Control:
18685
      - max-age=0, private, must-revalidate
18686
      X-Request-Id:
18687
      - e31aa255-f52e-4d05-bbd0-ead9edbba837
18688
      X-Runtime:
18689
      - '0.169493'
18690
      Via:
18691
      - 1.1 katello.example.com:50191
18692
      Vary:
18693
      - Accept-Encoding
18694
      Content-Length:
18695
      - '564'
18696
      Set-Cookie:
18697
      - _session_id=f37f863954fa76f93856fa637261bf44; path=/; HttpOnly
18698
    body:
18699
      encoding: ASCII-8BIT
18700
      string: !binary |-
18701
        ewogICJ0b3RhbCI6IDMsCiAgInN1YnRvdGFsIjogMywKICAicGFnZSI6IDEs
18702
        CiAgInBlcl9wYWdlIjogMjAsCiAgInNlYXJjaCI6IG51bGwsCiAgInNvcnQi
18703
        OiB7CiAgICAiYnkiOiBudWxsLAogICAgIm9yZGVyIjogbnVsbAogIH0sCiAg
18704
        InJlc3VsdHMiOiBbeyJpZCI6ImZvcmVtYW4tdGFza3MiLCJuYW1lIjoiZm9y
18705
        ZW1hbi10YXNrcyIsImF1dGhvciI6Ikl2YW4gTmXEjWFzIiwiZGVzY3JpcHRp
18706
        b24iOiJUaGUgZ29hbCBvZiB0aGlzIHBsdWdpbiBpcyB0byB1bmlmeSB0aGUg
18707
        d2F5IG9mIHNob3dpbmcgdGFzayBzdGF0dXNlcyBhY3Jvc3MgdGhlIEZvcmVt
18708
        YW4gaW5zdGFuY2UuXG5JdCBkZWZpbmVzIFRhc2sgbW9kZWwgZm9yIGtlZXBp
18709
        bmcgdGhlIGluZm9ybWF0aW9uIGFib3V0IHRoZSB0YXNrcyBhbmQgTG9jayBm
18710
        b3IgYXNzaWduaW5nIHRoZSB0YXNrc1xudG8gcmVzb3VyY2VzLiBUaGUgbG9j
18711
        a2luZyBhbGxvd3MgZGVhbGluZyB3aXRoIHByZXZlbnRpbmcgbXVsdGlwbGUg
18712
        Y29sbGlkaW5nIHRhc2tzIHRvIGJlIHJ1biBvbiB0aGVcbnNhbWUgcmVzb3Vy
18713
        Y2UuIEl0IGFsc28gb3B0aW9uYWxseSBwcm92aWRlcyBEeW5mbG93IGluZnJh
18714
        c3RydWN0dXJlIGZvciB1c2luZyBpdCBmb3IgbWFuYWdpbmcgdGhlIHRhc2tz
18715
        LlxuIiwidXJsIjoiaHR0cHM6Ly9naXRodWIuY29tL3RoZWZvcmVtYW4vZm9y
18716
        ZW1hbi10YXNrcyIsInZlcnNpb24iOiIwLjguMCJ9LHsiaWQiOiJmb3JlbWFu
18717
        X2RvY2tlciIsIm5hbWUiOiJmb3JlbWFuX2RvY2tlciIsImF1dGhvciI6IkRh
18718
        bmllbCBMb2JhdG8sIEFtb3MgQmVuYXJpIiwiZGVzY3JpcHRpb24iOiJQcm92
18719
        aXNpb24gYW5kIG1hbmFnZSBEb2NrZXIgY29udGFpbmVycyBhbmQgaW1hZ2Vz
18720
        IGZyb20gRm9yZW1hbi4iLCJ1cmwiOiJodHRwOi8vZ2l0aHViLmNvbS90aGVm
18721
        b3JlbWFuL2ZvcmVtYW4tZG9ja2VyIiwidmVyc2lvbiI6IjMuMC4wIn0seyJp
18722
        ZCI6ImthdGVsbG8iLCJuYW1lIjoia2F0ZWxsbyIsImF1dGhvciI6Ik4vQSIs
18723
        ImRlc2NyaXB0aW9uIjoiQ29udGVudCBhbmQgU3Vic2NyaXB0aW9uIE1hbmFn
18724
        ZW1lbnQgcGx1Z2luIGZvciBGb3JlbWFuIiwidXJsIjoiaHR0cDovL3d3dy5r
18725
        YXRlbGxvLm9yZyIsInZlcnNpb24iOiIzLjIuMCJ9XQp9Cg==
18726
    http_version: 
18727
  recorded_at: Wed, 07 Sep 2016 12:00:48 GMT
18728
- request:
18729
    method: get
18730
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999
18786 18731
    body:
18787 18732
      encoding: US-ASCII
18788 18733
      string: ''
......
18791 18736
      - application/json;version=2
18792 18737
      Accept-Encoding:
18793 18738
      - gzip, deflate
18739
      User-Agent:
18740
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18794 18741
      Content-Type:
18795 18742
      - application/json
18743
      Host:
18744
      - katello.example.com:50191
18745
  response:
18746
    status:
18747
      code: 200
18748
      message: OK
18749
    headers:
18750
      Date:
18751
      - Wed, 07 Sep 2016 12:00:48 GMT
18752
      Server:
18753
      - Apache/2.4.6 (CentOS)
18754
      X-Frame-Options:
18755
      - SAMEORIGIN
18756
      X-Xss-Protection:
18757
      - 1; mode=block
18758
      X-Content-Type-Options:
18759
      - nosniff
18760
      Foreman-Version:
18761
      - 1.13.0-develop
18762
      Foreman-Api-Version:
18763
      - '2'
18764
      Content-Type:
18765
      - application/json; charset=utf-8
18766
      Apipie-Checksum:
18767
      - 9544abef9cf8343005f07ed8c9f1f8e7
18768
      Etag:
18769
      - W/"6f6e523169508346de19ea518f842d6f-gzip"
18770
      Cache-Control:
18771
      - max-age=0, private, must-revalidate
18772
      X-Request-Id:
18773
      - a5fcf42a-3d55-42e8-8327-f1eab81ab0a1
18774
      X-Runtime:
18775
      - '0.220220'
18776
      Via:
18777
      - 1.1 katello.example.com:50191
18778
      Vary:
18779
      - Accept-Encoding
18780
      Content-Length:
18781
      - '792'
18782
      Set-Cookie:
18783
      - _session_id=7948286cfea0282d5cd03f2cbe10203c; path=/; HttpOnly
18784
    body:
18785
      encoding: ASCII-8BIT
18786
      string: |
18787
        {
18788
          "total": 3,
18789
          "subtotal": 3,
18790
          "page": 1,
18791
          "per_page": 999999,
18792
          "search": null,
18793
          "sort": {
18794
            "by": null,
18795
            "order": null
18796
          },
18797
          "results": [{"label":"Default_Organization","created_at":"2016-09-02 14:00:59 UTC","updated_at":"2016-09-02 14:00:59 UTC","id":1,"name":"Default Organization","title":"Default Organization","description":null},{"label":"examplecorp","created_at":"2016-09-02 15:00:24 UTC","updated_at":"2016-09-02 15:00:24 UTC","id":3,"name":"Example Corporation","title":"Example Corporation","description":"The number one example company in the world!"},{"label":"testcorp","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07 01:39:03 UTC","id":9,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
18798
        }
18799
    http_version: 
18800
  recorded_at: Wed, 07 Sep 2016 12:00:49 GMT
18801
- request:
18802
    method: get
18803
    uri: https://admin:changeme@katello.example.com:50191/katello/api/organizations?per_page=999999&search=name=%22Test%20Corporation%22
18804
    body:
18805
      encoding: US-ASCII
18806
      string: ''
18807
    headers:
18808
      Accept:
18809
      - application/json;version=2
18810
      Accept-Encoding:
18811
      - gzip, deflate
18796 18812
      User-Agent:
18797
      - Ruby
18813
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18814
      Content-Type:
18815
      - application/json
18816
      Host:
18817
      - katello.example.com:50191
18798 18818
  response:
18799 18819
    status:
18800 18820
      code: 200
18801 18821
      message: OK
18802 18822
    headers:
18823
      Date:
18824
      - Wed, 07 Sep 2016 12:00:48 GMT
18825
      Server:
18826
      - Apache/2.4.6 (CentOS)
18803 18827
      X-Frame-Options:
18804 18828
      - SAMEORIGIN
18805 18829
      X-Xss-Protection:
......
18813 18837
      Content-Type:
18814 18838
      - application/json; charset=utf-8
18815 18839
      Apipie-Checksum:
18816
      - e98945ba1db6bdbb4c25ce4988912344
18840
      - 9544abef9cf8343005f07ed8c9f1f8e7
18817 18841
      Etag:
18818
      - W/"a4c7cad8c39c0a80e0091f015157f090"
18842
      - W/"471e8acb2053be2e7a823cbd174ec330-gzip"
18819 18843
      Cache-Control:
18820 18844
      - max-age=0, private, must-revalidate
18845
      X-Request-Id:
18846
      - d01088b1-c27f-46d7-baa0-d0f428b2179b
18847
      X-Runtime:
18848
      - '0.203692'
18849
      Via:
18850
      - 1.1 katello.example.com:50191
18851
      Vary:
18852
      - Accept-Encoding
18853
      Content-Length:
18854
      - '388'
18821 18855
      Set-Cookie:
18822
      - _session_id=97b20ddae4629fd52c6b2f1a1af4a3b2; path=/; HttpOnly
18856
      - _session_id=64ec458ac4f45b3bab07ef11055a818d; path=/; HttpOnly
18857
    body:
18858
      encoding: ASCII-8BIT
18859
      string: |
18860
        {
18861
          "total": 3,
18862
          "subtotal": 1,
18863
          "page": 1,
18864
          "per_page": 999999,
18865
          "search": "name=\"Test Corporation\"",
18866
          "sort": {
18867
            "by": null,
18868
            "order": null
18869
          },
18870
          "results": [{"label":"testcorp","created_at":"2016-09-07 01:39:03 UTC","updated_at":"2016-09-07 01:39:03 UTC","id":9,"name":"Test Corporation","title":"Test Corporation","description":"Testing today for a better tomorrow"}]
18871
        }
18872
    http_version: 
18873
  recorded_at: Wed, 07 Sep 2016 12:00:49 GMT
18874
- request:
18875
    method: get
18876
    uri: https://admin:changeme@katello.example.com:50191/api/organizations/9/hosts?per_page=999999
18877
    body:
18878
      encoding: US-ASCII
18879
      string: ''
18880
    headers:
18881
      Accept:
18882
      - application/json;version=2
18883
      Accept-Encoding:
18884
      - gzip, deflate
18885
      User-Agent:
18886
      - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.1.10p492
18887
      Content-Type:
18888
      - application/json
18889
      Host:
18890
      - katello.example.com:50191
18891
  response:
18892
    status:
18893
      code: 200
18894
      message: OK
18895
    headers:
18896
      Date:
18897
      - Wed, 07 Sep 2016 12:00:48 GMT
18898
      Server:
18899
      - Apache/2.4.6 (CentOS)
18900
      X-Frame-Options:
18901
      - SAMEORIGIN
18902
      X-Xss-Protection:
18903
      - 1; mode=block
18904
      X-Content-Type-Options:
18905
      - nosniff
18906
      Foreman-Version:
18907
      - 1.13.0-develop
18908
      Foreman-Api-Version:
18909
      - '2'
18910
      Content-Type:
18911
      - application/json; charset=utf-8
18912
      Apipie-Checksum:
18913
      - 9544abef9cf8343005f07ed8c9f1f8e7
18914
      Etag:
18915
      - W/"a4c7cad8c39c0a80e0091f015157f090-gzip"
18916
      Cache-Control:
18917
      - max-age=0, private, must-revalidate
18823 18918
      X-Request-Id:
18824
      - 640bd941-08ec-43ed-b327-cc01acfa39c7
18919
      - 24909260-7a77-442d-b22a-e457c90f39be
18825 18920
      X-Runtime:
18826
      - '0.249073'
18827
      Transfer-Encoding:
18828
      - chunked
18921
      - '1.229753'
18922
      Via:
18923
      - 1.1 katello.example.com:50191
18924
      Vary:
18925
      - Accept-Encoding
18926
      Content-Length:
18927
      - '155'
18928
      Set-Cookie:
18929
      - _session_id=2601f43c9d237a31e83c403b75ad4318; path=/; HttpOnly
18829 18930
    body:
18830
      encoding: UTF-8
18931
      encoding: ASCII-8BIT
18831 18932
      string: |
18832 18933
        {
18833 18934
          "total": 0,
......
18842 18943
          "results": []
18843 18944
        }
18844 18945
    http_version: 
18845
  recorded_at: Tue, 16 Aug 2016 19:37:54 GMT
18946
  recorded_at: Wed, 07 Sep 2016 12:00:50 GMT
18846 18947
recorded_with: VCR 3.0.3

Also available in: Unified diff