pairwise_update_question.yml 10.5 KB
--- 
recorded_with: VCR 2.8.0
http_interactions: 
- request: 
    method: post
    uri: http://abner.oliveira%40serpro.gov.br:serpro@localhost:3030/questions.xml
    body: 
      string: |
        <?xml version="1.0" encoding="UTF-8"?>
        <question>
          <name>Question 1</name>
          <local-identifier>1</local-identifier>
          <visitor-identifier>1</visitor-identifier>
          <ideas>Choice 1
        Choice 2</ideas>
        </question>

    headers: 
      Accept: 
      - "*/*"
      Content-Type: 
      - application/xml
  response: 
    status: 
      code: 200
      message: "OK "
    headers: 
      Server: 
      - WEBrick/1.3.1 (Ruby/1.8.7/2013-06-27)
      Content-Length: 
      - "921"
      Set-Cookie: 
      - _rebirth_session_key=BAh7BjoPc2Vzc2lvbl9pZCIlNDU1ZTU4YjczNTAwZThkNzE1ODdkZTU2N2FlODg2OWE%3D--dccbf4094db2e7726c7a7bd6d723687c0f94c550; path=/; HttpOnly
      Content-Type: 
      - application/xml; charset=utf-8
      Cache-Control: 
      - private, max-age=0, must-revalidate
      Connection: 
      - Keep-Alive
      X-Runtime: 
      - "142"
      Etag: 
      - "\"e10a4ecad2ee796de647436a5d754335\""
      Date: 
      - Tue, 18 Mar 2014 13:53:32 GMT
    body: 
      string: |
        <?xml version="1.0" encoding="UTF-8"?>
        <question>
          <active type="boolean">false</active>
          <choices-count type="integer">0</choices-count>
          <created-at type="datetime">2014-03-18T13:53:31Z</created-at>
          <creator-id type="integer">4</creator-id>
          <id type="integer">4</id>
          <inactive-choices-count type="integer">0</inactive-choices-count>
          <information nil="true"></information>
          <it-should-autoactivate-ideas type="boolean">false</it-should-autoactivate-ideas>
          <local-identifier>1</local-identifier>
          <name>Question 1</name>
          <prompts-count type="integer">0</prompts-count>
          <show-results type="boolean">true</show-results>
          <site-id type="integer">1</site-id>
          <tracking nil="true"></tracking>
          <updated-at type="datetime">2014-03-18T13:53:31Z</updated-at>
          <uses-catchup type="boolean">true</uses-catchup>
          <version type="integer">1</version>
          <votes-count type="integer">0</votes-count>
        </question>

    http_version: 
  recorded_at: Tue, 18 Mar 2014 13:53:32 GMT
- request: 
    method: put
    uri: http://abner.oliveira%40serpro.gov.br:serpro@localhost:3030/questions/4.xml
    body: 
      string: |
        <?xml version="1.0" encoding="UTF-8"?>
        <question>
          <prompts-count type="integer">0</prompts-count>
          <updated-at type="datetime">2014-03-18T13:53:31Z</updated-at>
          <active type="boolean">true</active>
          <votes-count type="integer">0</votes-count>
          <version type="integer">1</version>
          <it-should-autoactivate-ideas type="boolean">true</it-should-autoactivate-ideas>
          <information nil="true"></information>
          <id type="integer">4</id>
          <uses-catchup type="boolean">true</uses-catchup>
          <creator-id type="integer">4</creator-id>
          <tracking nil="true"></tracking>
          <choices-count type="integer">0</choices-count>
          <site-id type="integer">1</site-id>
          <name>Question 1</name>
          <show-results type="boolean">true</show-results>
          <inactive-choices-count type="integer">0</inactive-choices-count>
          <local-identifier>1</local-identifier>
          <visitor-identifier>1</visitor-identifier>
          <created-at type="datetime">2014-03-18T13:53:31Z</created-at>
          <ideas>Choice 1
        Choice 2</ideas>
        </question>

    headers: 
      Accept: 
      - "*/*"
      Content-Type: 
      - application/xml
  response: 
    status: 
      code: 200
      message: "OK "
    headers: 
      Server: 
      - WEBrick/1.3.1 (Ruby/1.8.7/2013-06-27)
      Content-Length: 
      - "1"
      Set-Cookie: 
      - _rebirth_session_key=BAh7BjoPc2Vzc2lvbl9pZCIlMDQ0YmY1ZGZlMmY1OWUxYTZlM2RkNTM2OTI1MTUwOGM%3D--1038ef2e280bcada953209be557c671d4ac8f9bc; path=/; HttpOnly
      Content-Type: 
      - application/xml; charset=utf-8
      Cache-Control: 
      - no-cache
      Connection: 
      - Keep-Alive
      X-Runtime: 
      - "53"
      Date: 
      - Tue, 18 Mar 2014 13:53:32 GMT
    body: 
      string: " "
    http_version: 
  recorded_at: Tue, 18 Mar 2014 13:53:32 GMT
- request: 
    method: get
    uri: http://abner.oliveira%40serpro.gov.br:serpro@localhost:3030/questions/4.xml
    body: 
      string: ""
    headers: 
      Accept: 
      - application/xml
  response: 
    status: 
      code: 200
      message: "OK "
    headers: 
      Server: 
      - WEBrick/1.3.1 (Ruby/1.8.7/2013-06-27)
      Content-Length: 
      - "963"
      Set-Cookie: 
      - _rebirth_session_key=BAh7BzoOcmV0dXJuX3RvIhUvcXVlc3Rpb25zLzQueG1sOg9zZXNzaW9uX2lkIiVmMTE3MzE0MjZkZWIzMTA0ZDc2OWUyMmUwY2I1ZmJkMw%3D%3D--931b245e8287eeedaf868537dd26d15dac62d12a; path=/; HttpOnly
      Content-Type: 
      - application/xml; charset=utf-8
      Cache-Control: 
      - private, max-age=0, must-revalidate
      Connection: 
      - Keep-Alive
      X-Runtime: 
      - "99"
      Etag: 
      - "\"47502300372faf4e6c7b5e523025c7a6\""
      Date: 
      - Tue, 18 Mar 2014 13:53:32 GMT
    body: 
      string: |
        <?xml version="1.0" encoding="UTF-8"?>
        <question>
          <active type="boolean">true</active>
          <choices-count type="integer">2</choices-count>
          <created-at type="datetime">2014-03-18T13:53:31Z</created-at>
          <creator-id type="integer">4</creator-id>
          <id type="integer">4</id>
          <inactive-choices-count type="integer">0</inactive-choices-count>
          <information nil="true"></information>
          <it-should-autoactivate-ideas type="boolean">true</it-should-autoactivate-ideas>
          <local-identifier>1</local-identifier>
          <name>Question 1</name>
          <prompts-count type="integer">0</prompts-count>
          <show-results type="boolean">true</show-results>
          <site-id type="integer">1</site-id>
          <tracking nil="true"></tracking>
          <updated-at type="datetime">2014-03-18T13:53:32Z</updated-at>
          <uses-catchup type="boolean">true</uses-catchup>
          <version type="integer">2</version>
          <votes-count type="integer">0</votes-count>
          <item-count type="integer">2</item-count>
        </question>

    http_version: 
  recorded_at: Tue, 18 Mar 2014 13:53:32 GMT
- request: 
    method: put
    uri: http://abner.oliveira%40serpro.gov.br:serpro@localhost:3030/questions/4.xml
    body: 
      string: |
        <?xml version="1.0" encoding="UTF-8"?>
        <question>
          <prompts-count type="integer">0</prompts-count>
          <updated-at type="datetime">2014-03-18T13:53:32Z</updated-at>
          <active type="boolean">true</active>
          <votes-count type="integer">0</votes-count>
          <version type="integer">2</version>
          <it-should-autoactivate-ideas type="boolean">true</it-should-autoactivate-ideas>
          <id type="integer">4</id>
          <information nil="true"></information>
          <uses-catchup type="boolean">true</uses-catchup>
          <creator-id type="integer">4</creator-id>
          <item-count type="integer">2</item-count>
          <tracking nil="true"></tracking>
          <name>New name</name>
          <choices-count type="integer">2</choices-count>
          <site-id type="integer">1</site-id>
          <show-results type="boolean">true</show-results>
          <local-identifier>1</local-identifier>
          <inactive-choices-count type="integer">0</inactive-choices-count>
          <created-at type="datetime">2014-03-18T13:53:31Z</created-at>
        </question>

    headers: 
      Accept: 
      - "*/*"
      Content-Type: 
      - application/xml
  response: 
    status: 
      code: 200
      message: "OK "
    headers: 
      Server: 
      - WEBrick/1.3.1 (Ruby/1.8.7/2013-06-27)
      Content-Length: 
      - "1"
      Set-Cookie: 
      - _rebirth_session_key=BAh7BjoPc2Vzc2lvbl9pZCIlOWQ0MmMyMDU2ZTg2ZmMxNWJiMWJjOGFmZjU0YzEzMGQ%3D--65e0d4ebabdef5ab35424b49d7d3ba053043bec4; path=/; HttpOnly
      Content-Type: 
      - application/xml; charset=utf-8
      Cache-Control: 
      - no-cache
      Connection: 
      - Keep-Alive
      X-Runtime: 
      - "45"
      Date: 
      - Tue, 18 Mar 2014 13:53:32 GMT
    body: 
      string: " "
    http_version: 
  recorded_at: Tue, 18 Mar 2014 13:53:32 GMT
- request: 
    method: get
    uri: http://abner.oliveira%40serpro.gov.br:serpro@localhost:3030/questions/4.xml
    body: 
      string: ""
    headers: 
      Accept: 
      - application/xml
  response: 
    status: 
      code: 200
      message: "OK "
    headers: 
      Server: 
      - WEBrick/1.3.1 (Ruby/1.8.7/2013-06-27)
      Content-Length: 
      - "961"
      Set-Cookie: 
      - _rebirth_session_key=BAh7BzoOcmV0dXJuX3RvIhUvcXVlc3Rpb25zLzQueG1sOg9zZXNzaW9uX2lkIiVmY2M2YmRkYzIyN2Y4NjdjODlkMzIyMGZjZDEwZWFiZA%3D%3D--69aae7ad54982192c7c145ab10d9d31f2f76e85a; path=/; HttpOnly
      Content-Type: 
      - application/xml; charset=utf-8
      Cache-Control: 
      - private, max-age=0, must-revalidate
      Connection: 
      - Keep-Alive
      X-Runtime: 
      - "36"
      Etag: 
      - "\"0fee6a1f73a2c0d5bceb2e041fcb913d\""
      Date: 
      - Tue, 18 Mar 2014 13:53:32 GMT
    body: 
      string: |
        <?xml version="1.0" encoding="UTF-8"?>
        <question>
          <active type="boolean">true</active>
          <choices-count type="integer">2</choices-count>
          <created-at type="datetime">2014-03-18T13:53:31Z</created-at>
          <creator-id type="integer">4</creator-id>
          <id type="integer">4</id>
          <inactive-choices-count type="integer">0</inactive-choices-count>
          <information nil="true"></information>
          <it-should-autoactivate-ideas type="boolean">true</it-should-autoactivate-ideas>
          <local-identifier>1</local-identifier>
          <name>New name</name>
          <prompts-count type="integer">0</prompts-count>
          <show-results type="boolean">true</show-results>
          <site-id type="integer">1</site-id>
          <tracking nil="true"></tracking>
          <updated-at type="datetime">2014-03-18T13:53:32Z</updated-at>
          <uses-catchup type="boolean">true</uses-catchup>
          <version type="integer">3</version>
          <votes-count type="integer">0</votes-count>
          <item-count type="integer">2</item-count>
        </question>

    http_version: 
  recorded_at: Tue, 18 Mar 2014 13:53:32 GMT