---
http_interactions:
- request:
    method: put
    uri: http://backend:5352/source/target_project/_meta?user=user_1
    body:
      encoding: UTF-8
      string: |
        <project name="target_project">
          <title>An Acceptable Time</title>
          <description/>
        </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:
      - '109'
    body:
      encoding: UTF-8
      string: |
        <project name="target_project">
          <title>An Acceptable Time</title>
          <description></description>
        </project>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/target_project/target_package/_meta?user=user_2
    body:
      encoding: UTF-8
      string: |
        <package name="target_package" project="target_project">
          <title>Where Angels Fear to Tread</title>
          <description>Suscipit dolorum et quasi.</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:
      - '168'
    body:
      encoding: UTF-8
      string: |
        <package name="target_package" project="target_project">
          <title>Where Angels Fear to Tread</title>
          <description>Suscipit dolorum et quasi.</description>
        </package>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/target_project/target_package/_config
    body:
      encoding: UTF-8
      string: Ex dolorum tempore. Suscipit molestiae temporibus. Dolores voluptates
        ut.
    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="1" vrev="1">
          <srcmd5>f8c1e09a99ff76baa26c37eabdf6f536</srcmd5>
          <version>unknown</version>
          <time>1677507608</time>
          <user>unknown</user>
          <comment></comment>
          <requestid/>
        </revision>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/target_project/target_package/somefile.txt
    body:
      encoding: UTF-8
      string: "# This will be replaced"
    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>ebc86f6255a922722f8196cb2d18f527</srcmd5>
          <version>unknown</version>
          <time>1677507608</time>
          <user>unknown</user>
          <comment></comment>
          <requestid/>
        </revision>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/source_project/_meta?user=user_3
    body:
      encoding: UTF-8
      string: |
        <project name="source_project">
          <title>The Sun Also Rises</title>
          <description/>
        </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:
      - '109'
    body:
      encoding: UTF-8
      string: |
        <project name="source_project">
          <title>The Sun Also Rises</title>
          <description></description>
        </project>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/source_project/_project/_attribute?meta=1&user=user_3
    body:
      encoding: UTF-8
      string: |
        <attributes>
          <attribute name="ApprovedRequestSource" namespace="OBS"/>
        </attributes>
    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:
      - '169'
    body:
      encoding: UTF-8
      string: |
        <revision rev="49">
          <srcmd5>7fe7ac9f5de53ba7111f6fb2f8ec3682</srcmd5>
          <time>1677507608</time>
          <user>user_3</user>
          <comment></comment>
          <requestid/>
        </revision>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/source_project/source_package/_meta?user=user_4
    body:
      encoding: UTF-8
      string: |
        <package name="source_package" project="source_project">
          <title>The Far-Distant Oxus</title>
          <description>Sit voluptas et vel.</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:
      - '156'
    body:
      encoding: UTF-8
      string: |
        <package name="source_package" project="source_project">
          <title>The Far-Distant Oxus</title>
          <description>Sit voluptas et vel.</description>
        </package>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/source_project/source_package/_config
    body:
      encoding: UTF-8
      string: Magnam et reprehenderit. Odio sunt eos. Nobis qui minus.
    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="1" vrev="1">
          <srcmd5>177cccb784b479ae308db6da9394f327</srcmd5>
          <version>unknown</version>
          <time>1677507608</time>
          <user>unknown</user>
          <comment></comment>
          <requestid/>
        </revision>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: put
    uri: http://backend:5352/source/source_project/source_package/somefile.txt
    body:
      encoding: UTF-8
      string: "# This is the new text"
    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>19425b4672e907e5d7436b3d3a7a76e9</srcmd5>
          <version>unknown</version>
          <time>1677507608</time>
          <user>unknown</user>
          <comment></comment>
          <requestid/>
        </revision>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: get
    uri: http://backend:5352/source/source_project/source_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:
      - '299'
    body:
      encoding: UTF-8
      string: |
        <directory name="source_package" rev="2" vrev="2" srcmd5="19425b4672e907e5d7436b3d3a7a76e9">
          <entry name="_config" md5="10ab7efe9d336c98366e85ddbf7aa929" size="56" mtime="1677507608"/>
          <entry name="somefile.txt" md5="8bc8b279be5b9899070591b779e593e4" size="22" mtime="1677507608"/>
        </directory>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: post
    uri: http://backend:5352/source/source_project/source_package?cmd=diff&expand=1&filelimit=10000&opackage=target_package&oproject=target_project&tarlimit=10000&view=xml&withissues=1
    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:
      - '1110'
    body:
      encoding: UTF-8
      string: |
        <sourcediff key="bb5e45f62e406b841ae2d399b1c3e3a1">
          <old project="target_project" package="target_package" rev="2" srcmd5="ebc86f6255a922722f8196cb2d18f527"/>
          <new project="source_project" package="source_package" rev="2" srcmd5="19425b4672e907e5d7436b3d3a7a76e9"/>
          <files>
            <file state="changed">
              <old name="_config" md5="1d40e41758e1c1d395dbd948bf00f61b" size="73"/>
              <new name="_config" md5="10ab7efe9d336c98366e85ddbf7aa929" size="56"/>
              <diff lines="5">@@ -1,1 +1,1 @@
        -Ex dolorum tempore. Suscipit molestiae temporibus. Dolores voluptates ut.
        \ No newline at end of file
        +Magnam et reprehenderit. Odio sunt eos. Nobis qui minus.
        \ No newline at end of file
        </diff>
            </file>
            <file state="changed">
              <old name="somefile.txt" md5="11a31b90d280a13710401556a3256e44" size="23"/>
              <new name="somefile.txt" md5="8bc8b279be5b9899070591b779e593e4" size="22"/>
              <diff lines="5">@@ -1,1 +1,1 @@
        -# This will be replaced
        \ No newline at end of file
        +# This is the new text
        \ No newline at end of file
        </diff>
            </file>
          </files>
          <issues>
          </issues>
        </sourcediff>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: get
    uri: http://backend:5352/source/source_project/source_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:
      - '299'
    body:
      encoding: UTF-8
      string: |
        <directory name="source_package" rev="2" vrev="2" srcmd5="19425b4672e907e5d7436b3d3a7a76e9">
          <entry name="_config" md5="10ab7efe9d336c98366e85ddbf7aa929" size="56" mtime="1677507608"/>
          <entry name="somefile.txt" md5="8bc8b279be5b9899070591b779e593e4" size="22" mtime="1677507608"/>
        </directory>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: post
    uri: http://backend:5352/source/source_project/source_package?cacheonly=1&cmd=diff&expand=1&filelimit=10000&opackage=target_package&oproject=target_project&tarlimit=10000&view=xml&withissues=1
    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:
      - '1110'
      Cache-Control:
      - no-cache
      Connection:
      - close
    body:
      encoding: UTF-8
      string: |
        <sourcediff key="bb5e45f62e406b841ae2d399b1c3e3a1">
          <old project="target_project" package="target_package" rev="2" srcmd5="ebc86f6255a922722f8196cb2d18f527"/>
          <new project="source_project" package="source_package" rev="2" srcmd5="19425b4672e907e5d7436b3d3a7a76e9"/>
          <files>
            <file state="changed">
              <old name="_config" md5="1d40e41758e1c1d395dbd948bf00f61b" size="73"/>
              <new name="_config" md5="10ab7efe9d336c98366e85ddbf7aa929" size="56"/>
              <diff lines="5">@@ -1,1 +1,1 @@
        -Ex dolorum tempore. Suscipit molestiae temporibus. Dolores voluptates ut.
        \ No newline at end of file
        +Magnam et reprehenderit. Odio sunt eos. Nobis qui minus.
        \ No newline at end of file
        </diff>
            </file>
            <file state="changed">
              <old name="somefile.txt" md5="11a31b90d280a13710401556a3256e44" size="23"/>
              <new name="somefile.txt" md5="8bc8b279be5b9899070591b779e593e4" size="22"/>
              <diff lines="5">@@ -1,1 +1,1 @@
        -# This will be replaced
        \ No newline at end of file
        +# This is the new text
        \ No newline at end of file
        </diff>
            </file>
          </files>
          <issues>
          </issues>
        </sourcediff>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
- request:
    method: get
    uri: http://backend:5352/source/target_project/target_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:
      - '299'
    body:
      encoding: UTF-8
      string: |
        <directory name="target_package" rev="2" vrev="2" srcmd5="ebc86f6255a922722f8196cb2d18f527">
          <entry name="_config" md5="1d40e41758e1c1d395dbd948bf00f61b" size="73" mtime="1677507608"/>
          <entry name="somefile.txt" md5="11a31b90d280a13710401556a3256e44" size="23" mtime="1677507608"/>
        </directory>
  recorded_at: Mon, 27 Feb 2023 14:20:08 GMT
recorded_with: VCR 6.1.0
