---
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: Wed, 26 Apr 2017 08:17:48 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>Alone on a Wide, Wide Sea</title>
          <description>Consequatur qui distinctio repudiandae et rerum.</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:
      - '196'
    body:
      encoding: UTF-8
      string: |
        <package name="package_with_broken_service" project="home:tom">
          <title>Alone on a Wide, Wide Sea</title>
          <description>Consequatur qui distinctio repudiandae et rerum.</description>
        </package>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 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>Alone on a Wide, Wide Sea</title>
          <description>Consequatur qui distinctio repudiandae et rerum.</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:
      - '196'
    body:
      encoding: UTF-8
      string: |
        <package name="package_with_broken_service" project="home:tom">
          <title>Alone on a Wide, Wide Sea</title>
          <description>Consequatur qui distinctio repudiandae et rerum.</description>
        </package>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 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:
      - '207'
    body:
      encoding: UTF-8
      string: |
        <revision rev="2" vrev="2">
          <srcmd5>feebe56763302f5fc5914cbee81468f3</srcmd5>
          <version>unknown</version>
          <time>1493194668</time>
          <user>unknown</user>
          <comment></comment>
          <requestid/>
        </revision>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service?nofilename=1&view=info&withchangesmd5=1
    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:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '226'
    body:
      encoding: UTF-8
      string: |
        <sourceinfo package="package_with_broken_service" rev="2" vrev="2" srcmd5="feebe56763302f5fc5914cbee81468f3">
          <error>service error:  400 remote error: document element must be 'services', was 'service'</error>
        </sourceinfo>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service
    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:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '409'
    body:
      encoding: UTF-8
      string: |
        <directory name="package_with_broken_service" rev="2" vrev="2" srcmd5="feebe56763302f5fc5914cbee81468f3">
          <serviceinfo code="failed" xsrcmd5="aa60748d63bfa76da2d712d560388f60">
            <error>service error:  400 remote error: document element must be 'services', was 'service'</error>
          </serviceinfo>
          <entry name="_service" md5="27a21c968dc9fadcab4da63af004add0" size="25" mtime="1493194667" />
        </directory>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: post
    uri: http://backend:5352/source/home:tom/package_with_broken_service?cmd=diff&linkrev=base&onlyissues=1&orev=0&view=xml
    body:
      encoding: UTF-8
      string: ''
    headers:
      Content-Type:
      - application/octet-stream
      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:
      - '335'
    body:
      encoding: UTF-8
      string: |
        <sourcediff key="007150f791b969a63446eba4d3d1c039">
          <old project="home:tom" package="package_with_broken_service" rev="0" srcmd5="d41d8cd98f00b204e9800998ecf8427e" />
          <new project="home:tom" package="package_with_broken_service" rev="2" srcmd5="feebe56763302f5fc5914cbee81468f3" />
          <files />
          <issues>
          </issues>
        </sourcediff>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service
    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:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '409'
    body:
      encoding: UTF-8
      string: |
        <directory name="package_with_broken_service" rev="2" vrev="2" srcmd5="feebe56763302f5fc5914cbee81468f3">
          <serviceinfo code="failed" xsrcmd5="aa60748d63bfa76da2d712d560388f60">
            <error>service error:  400 remote error: document element must be 'services', was 'service'</error>
          </serviceinfo>
          <entry name="_service" md5="27a21c968dc9fadcab4da63af004add0" size="25" mtime="1493194667" />
        </directory>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service?expand=1&rev=2
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Content-Type:
      - text/plain
      Accept-Encoding:
      - identity
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 400
      message: service error   400 remote error  document element must be 'services',
        was 'service'
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '136'
    body:
      encoding: UTF-8
      string: |
        <status code="400">
          <summary>service error:  400 remote error: document element must be 'services', was 'service'</summary>
        </status>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service
    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:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '409'
    body:
      encoding: UTF-8
      string: |
        <directory name="package_with_broken_service" rev="2" vrev="2" srcmd5="feebe56763302f5fc5914cbee81468f3">
          <serviceinfo code="failed" xsrcmd5="aa60748d63bfa76da2d712d560388f60">
            <error>service error:  400 remote error: document element must be 'services', was 'service'</error>
          </serviceinfo>
          <entry name="_service" md5="27a21c968dc9fadcab4da63af004add0" size="25" mtime="1493194667" />
        </directory>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service?expand=0&rev=2
    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:
      - '409'
    body:
      encoding: UTF-8
      string: |
        <directory name="package_with_broken_service" rev="2" vrev="2" srcmd5="feebe56763302f5fc5914cbee81468f3">
          <serviceinfo code="failed" xsrcmd5="aa60748d63bfa76da2d712d560388f60">
            <error>service error:  400 remote error: document element must be 'services', was 'service'</error>
          </serviceinfo>
          <entry name="_service" md5="27a21c968dc9fadcab4da63af004add0" size="25" mtime="1493194667" />
        </directory>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 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:
      - '409'
    body:
      encoding: UTF-8
      string: |
        <directory name="package_with_broken_service" rev="2" vrev="2" srcmd5="feebe56763302f5fc5914cbee81468f3">
          <serviceinfo code="failed" xsrcmd5="aa60748d63bfa76da2d712d560388f60">
            <error>service error:  400 remote error: document element must be 'services', was 'service'</error>
          </serviceinfo>
          <entry name="_service" md5="27a21c968dc9fadcab4da63af004add0" size="25" mtime="1493194667" />
        </directory>
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service/_serviceerror?rev=aa60748d63bfa76da2d712d560388f60
    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: Wed, 26 Apr 2017 08:17:48 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/package_with_broken_service/_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:
      - application/octet-stream
      Content-Length:
      - '25'
      Cache-Control:
      - no-cache
      Connection:
      - close
    body:
      encoding: UTF-8
      string: "<service>broken</service>"
    http_version: 
  recorded_at: Wed, 26 Apr 2017 08:17:48 GMT
recorded_with: VCR 3.0.3
