---
http_interactions:
- request:
    method: put
    uri: http://backend:5352/source/home:tom/_meta?user=tom
    body:
      encoding: UTF-8
      string: |
        <project name="home:tom">
          <title/>
          <description/>
          <person userid="tom" role="maintainer"/>
        </project>
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '129'
    body:
      encoding: UTF-8
      string: |
        <project name="home:tom">
          <title></title>
          <description></description>
          <person userid="tom" role="maintainer" />
        </project>
    http_version: 
  recorded_at: Thu, 06 Jul 2017 11:33:38 GMT
- request:
    method: put
    uri: http://backend:5352/source/home:tom/package_with_broken_service/_meta?user=tom
    body:
      encoding: UTF-8
      string: |
        <package name="package_with_broken_service" project="home:tom">
          <title>An Acceptable Time</title>
          <description>Quis aut officia perferendis repellendus minus vitae.</description>
        </package>
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '194'
    body:
      encoding: UTF-8
      string: |
        <package name="package_with_broken_service" project="home:tom">
          <title>An Acceptable Time</title>
          <description>Quis aut officia perferendis repellendus minus vitae.</description>
        </package>
    http_version: 
  recorded_at: Thu, 06 Jul 2017 11:33:38 GMT
- request:
    method: put
    uri: http://backend:5352/source/home:tom/package_with_broken_service/_meta
    body:
      encoding: UTF-8
      string: |
        <package name="package_with_broken_service" project="home:tom">
          <title>An Acceptable Time</title>
          <description>Quis aut officia perferendis repellendus minus vitae.</description>
        </package>
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '194'
    body:
      encoding: UTF-8
      string: |
        <package name="package_with_broken_service" project="home:tom">
          <title>An Acceptable Time</title>
          <description>Quis aut officia perferendis repellendus minus vitae.</description>
        </package>
    http_version: 
  recorded_at: Thu, 06 Jul 2017 11:33:38 GMT
- request:
    method: put
    uri: http://backend:5352/source/home:tom/package_with_broken_service/_service
    body:
      encoding: UTF-8
      string: "<service>broken</service>"
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '209'
    body:
      encoding: UTF-8
      string: |
        <revision rev="16" vrev="16">
          <srcmd5>de1f75f07a7096e47734d832a5a7dd72</srcmd5>
          <version>unknown</version>
          <time>1499340818</time>
          <user>unknown</user>
          <comment></comment>
          <requestid/>
        </revision>
    http_version: 
  recorded_at: Thu, 06 Jul 2017 11:33:38 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Content-Type:
      - text/plain
      Accept-Encoding:
      - identity
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '411'
    body:
      encoding: UTF-8
      string: |
        <directory name="package_with_broken_service" rev="16" vrev="16" srcmd5="de1f75f07a7096e47734d832a5a7dd72">
          <serviceinfo code="failed" xsrcmd5="d6a1494599a9a5cab62c57e007be4d1f">
            <error>service error:  400 remote error: document element must be 'services', was 'service'</error>
          </serviceinfo>
          <entry name="_service" md5="27a21c968dc9fadcab4da63af004add0" size="25" mtime="1499338186" />
        </directory>
    http_version: 
  recorded_at: Thu, 06 Jul 2017 11:33:38 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service/_serviceerror?rev=d6a1494599a9a5cab62c57e007be4d1f
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/octet-stream
      Content-Length:
      - '92'
      Cache-Control:
      - no-cache
      Connection:
      - close
    body:
      encoding: UTF-8
      string: |
        service daemon error:
         400 remote error: document element must be 'services', was 'service'
    http_version: 
  recorded_at: Thu, 06 Jul 2017 11:33:38 GMT
recorded_with: VCR 3.0.3
