---
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: Tue, 02 May 2017 11:22:22 GMT
- request:
    method: put
    uri: http://backend:5352/source/home:tom/my_package/_meta?user=tom
    body:
      encoding: UTF-8
      string: |
        <package name="my_package" project="home:tom">
          <title>Pale Kings and Princes</title>
          <description>Sed qui explicabo nesciunt doloremque.</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:
      - '166'
    body:
      encoding: UTF-8
      string: |
        <package name="my_package" project="home:tom">
          <title>Pale Kings and Princes</title>
          <description>Sed qui explicabo nesciunt doloremque.</description>
        </package>
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:22 GMT
- request:
    method: put
    uri: http://backend:5352/source/home:tom/my_package/_meta
    body:
      encoding: UTF-8
      string: |
        <package name="my_package" project="home:tom">
          <title>Pale Kings and Princes</title>
          <description>Sed qui explicabo nesciunt doloremque.</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:
      - '166'
    body:
      encoding: UTF-8
      string: |
        <package name="my_package" project="home:tom">
          <title>Pale Kings and Princes</title>
          <description>Sed qui explicabo nesciunt doloremque.</description>
        </package>
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:22 GMT
- request:
    method: put
    uri: http://backend:5352/source/home:tom/my_package/%E5%AD%A6%E4%B9%A0%E6%80%BB%E7%BB%93?user=tom
    body:
      encoding: UTF-8
      string: |+
        ubuntu12.04 root登录
        1先设定一个root的密码，sudo passwd root

        2 root 登陆，su root

        3 备份一下lightgdm
        cp -p /etc/lightdm/lightdm.conf /etc/lightdm/lightdm.conf.bak

        4 vi /etc/lightdm/lightdm.conf

        5 增加：greeter-show-manual-login=true
          修改后为：
          [SeatDefaults]
          greeter-session=unity-greeter
          user-session=ubuntu
          greeter-show-manual-login=true

          重启登陆即可。已经可以输入root了


        root登陆后还没声音，又查了查，如下方法:
        Ubuntu root登录没有声音这个问题的根本原因是使用root登录后pulseaudio没有启动。
        将root加到pulse-access组：
        sudo usermod -a -G pulse-access root
        然后修改配置文件/etc/default/pulseaudio，将PULSEAUDIO_SYSTEM_START设为1，

        =======================================================================
        安装linux版本的beyond compare
        beyond compare的注册码：
        HmB5oANygQOhaStTHNa+zOKgOeWHOkeAp6d1+QwIebz6z9kwYCm9-O0jF9F79zvzed9v5UVC4VrDkDMmTM8nB+



    headers:
      Content-Type:
      - text/plain
      Accept-Encoding:
      - identity
      Content-Length:
      - '755'
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '203'
    body:
      encoding: UTF-8
      string: |
        <revision rev="2" vrev="2">
          <srcmd5>f42733cd79e5deedd28d098916115f2e</srcmd5>
          <version>unknown</version>
          <time>1493724142</time>
          <user>tom</user>
          <comment></comment>
          <requestid/>
        </revision>
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:22 GMT
- request:
    method: put
    uri: http://backend:5352/source/home:tom/my_package/_meta?user=tom
    body:
      encoding: UTF-8
      string: |
        <package name="my_package" project="home:tom">
          <title>Pale Kings and Princes</title>
          <description>Sed qui explicabo nesciunt doloremque.</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:
      - '166'
    body:
      encoding: UTF-8
      string: |
        <package name="my_package" project="home:tom">
          <title>Pale Kings and Princes</title>
          <description>Sed qui explicabo nesciunt doloremque.</description>
        </package>
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:22 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/my_package
    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:
      - '203'
    body:
      encoding: ASCII-8BIT
      string: !binary |-
        PGRpcmVjdG9yeSBuYW1lPSJteV9wYWNrYWdlIiByZXY9IjIiIHZyZXY9IjIiIHNyY21kNT0iZjQyNzMzY2Q3OWU1ZGVlZGQyOGQwOTg5MTYxMTVmMmUiPgogIDxlbnRyeSBuYW1lPSLlrabkuaDmgLvnu5MiIG1kNT0iNmJhMTY3ZDcyZTljYzYwMTA4YTc1NjdjZGFlYzcyMGYiIHNpemU9Ijk3NyIgbXRpbWU9IjE0OTM3MjIyMTIiIC8+CjwvZGlyZWN0b3J5Pgo=
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:22 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/my_package?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:
      - '184'
    body:
      encoding: UTF-8
      string: |
        <sourceinfo package="my_package" rev="2" vrev="2" srcmd5="f42733cd79e5deedd28d098916115f2e" verifymd5="f42733cd79e5deedd28d098916115f2e">
          <revtime>1493724142</revtime>
        </sourceinfo>
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:23 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/my_package
    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:
      - '203'
    body:
      encoding: ASCII-8BIT
      string: !binary |-
        PGRpcmVjdG9yeSBuYW1lPSJteV9wYWNrYWdlIiByZXY9IjIiIHZyZXY9IjIiIHNyY21kNT0iZjQyNzMzY2Q3OWU1ZGVlZGQyOGQwOTg5MTYxMTVmMmUiPgogIDxlbnRyeSBuYW1lPSLlrabkuaDmgLvnu5MiIG1kNT0iNmJhMTY3ZDcyZTljYzYwMTA4YTc1NjdjZGFlYzcyMGYiIHNpemU9Ijk3NyIgbXRpbWU9IjE0OTM3MjIyMTIiIC8+CjwvZGlyZWN0b3J5Pgo=
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:23 GMT
- request:
    method: post
    uri: http://backend:5352/source/home:tom/my_package?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
      Content-Length:
      - '301'
      Cache-Control:
      - no-cache
      Connection:
      - close
    body:
      encoding: UTF-8
      string: |
        <sourcediff key="e419f8b0c3d0fd9c2135c5e1d533c46a">
          <old project="home:tom" package="my_package" rev="0" srcmd5="d41d8cd98f00b204e9800998ecf8427e" />
          <new project="home:tom" package="my_package" rev="1" srcmd5="f42733cd79e5deedd28d098916115f2e" />
          <files />
          <issues>
          </issues>
        </sourcediff>
    http_version: 
  recorded_at: Tue, 02 May 2017 11:22:23 GMT
- request:
    method: get
    uri: http://backend:5352/source/home:tom/my_package?view=info
    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: 404
      message: project 'home tom' does not exist
    headers:
      Content-Type:
      - text/xml
      Cache-Control:
      - no-cache
      Connection:
      - close
      Content-Length:
      - '144'
    body:
      encoding: UTF-8
      string: |
        <status code="404">
          <summary>project 'home:tom' does not exist</summary>
          <details>404 project 'home:tom' does not exist</details>
        </status>
    http_version: 
  recorded_at: Tue, 16 Jan 2018 14:58:37 GMT
recorded_with: VCR 4.0.0
