Project

General

Profile

« Previous | Next » 

Revision c06a94b6

Added by Partha Aji about 9 years ago

Fixes #10036 - CRUD bindings for rpm ostree repositories

View differences:

README.md
Exposing Pulp's juiciest parts. http://www.pulpproject.org/
Latest Live Tested Version: **pulp-server-2.6.0-0.5.beta.el6.noarch**
Latest Live Tested Version: **pulp-server-2.7.0-0.2.alpha.git.112.d2a2776.el7.noarch**
Current stable Runcible: https://github.com/Katello/runcible/tree/0.3
lib/runcible/models/docker_distributor.rb
module Runcible
module Models
class DockerDistributor < Distributor
#optional
#optional attributes
attr_accessor 'docker_publish_directory', 'protected',
'redirect_url', 'repo_registry_id'
lib/runcible/models/export_distributor.rb
module Runcible
module Models
class ExportDistributor < Distributor
#required
#required attributes
attr_accessor 'http', 'https'
# Instantiates a export distributor
lib/runcible/models/iso_distributor.rb
module Runcible
module Models
class IsoDistributor < Distributor
#required
#required attributes
attr_accessor 'serve_http', 'serve_https'
# Instantiates an iso distributor
lib/runcible/models/ostree_distributor.rb
# Copyright (c) 2014 Red Hat Inc.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
require 'active_support/json'
require 'securerandom'
module Runcible
module Models
class OstreeDistributor < Distributor
attr_accessor 'ostree_publish_directory', 'relative_path'
def initialize(params = {})
super(params)
end
def self.type_id
'ostree_web_distributor'
end
def config
to_ret = as_json
to_ret.delete('auto_publish')
to_ret.delete('id')
to_ret
end
end
end
end
lib/runcible/models/ostree_importer.rb
# Copyright (c) 2014 Red Hat Inc.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
module Runcible
module Models
class OstreeImporter < Importer
ID = 'ostree_web_importer'
REPO_TYPE = 'OSTREE'
attr_accessor 'feed', 'branches'
def id
OstreeImporter::ID
end
def repo_type
OstreeImporter::REPO_TYPE
end
def config
as_json
end
end
end
end
lib/runcible/models/yum_distributor.rb
module Runcible
module Models
class YumDistributor < Distributor
#required
#required attributes
attr_accessor 'relative_url', 'http', 'https'
#optional
#optional attributes
attr_accessor 'protected', 'auth_cert', 'auth_ca',
'https_ca', 'gpgkey', 'generate_metadata',
'checksum_type', 'skip', 'https_publish_dir', 'http_publish_dir'
test/extensions/ostree_repository_test.rb
# Copyright 2014 Red Hat, Inc.
#
# MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
require 'rubygems'
require 'minitest/autorun'
require './test/support/repository_support'
require './lib/runcible'
module Extensions
module TestOstreeRepositoryBase
def setup
@support = RepositorySupport.new('ostree')
@extension = TestRuncible.server.extensions.repository
end
end
class TestOstreeRepositoryCreate < MiniTest::Unit::TestCase
include TestOstreeRepositoryBase
def teardown
@support.destroy_repo
super
end
def test_create_with_importer
response = @extension.create_with_importer(RepositorySupport.repo_id, :id => 'ostree_web_importer')
assert_equal 201, response.code
response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
assert_equal RepositorySupport.repo_id, response['id']
assert_equal 'ostree_web_importer', response['importers'].first['importer_type_id']
end
def test_create_with_importer_object
url = "http://cdn.qa.redhat.com/content/htb/rhel/server/7/x86_64/extras/ostree/"
branches = ["redhat-atomic-host/el7.0/x86_64/base", "redhat-atomic-host/el7.0/x86_64/medium"]
mock_importer = Runcible::Models::OstreeImporter.new(:feed => url,
:branches => branches)
response = @extension.create_with_importer(RepositorySupport.repo_id, mock_importer)
assert_equal 201, response.code
response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
assert_equal RepositorySupport.repo_id, response['id']
assert_equal 'ostree_web_importer', response['importers'].first['importer_type_id']
@extension.expects(:create).with(RepositorySupport.repo_id, has_entry(:notes, anything)).returns(true)
@extension.create_with_importer(RepositorySupport.repo_id, Runcible::Models::OstreeImporter.new)
end
def test_create_with_distributors
distributors = [{'type_id' => 'ostree_web_distributor', 'id' => '123', 'auto_publish' => true,
'config' => {'ostree_publish_directory' => '/path'}}]
response = @extension.create_with_distributors(RepositorySupport.repo_id, distributors)
assert_equal 201, response.code
assert_equal RepositorySupport.repo_id, response['id']
end
def test_create_with_distributor_object
repo_id = "#{RepositorySupport.repo_id}_distro"
ostree_publish_directory = "/path"
relative_path = "/relative_path"
mock_distro = Runcible::Models::OstreeDistributor.new(:ostree_publish_directory => ostree_publish_directory,
:id => '123',
:relative_path => relative_path)
response = @extension.create_with_distributors(repo_id, [mock_distro])
assert_equal 201, response.code
response = @extension.retrieve(repo_id, :details => true)
assert_equal repo_id, response['id']
assert_equal 'ostree_web_distributor', response['distributors'].first['distributor_type_id']
assert_equal relative_path, response['distributors'].first['config']["relative_path"]
assert_equal ostree_publish_directory, response['distributors'].first['config']["ostree_publish_directory"]
ensure
@support.destroy_repo(repo_id)
end
def test_create_with_importer_and_distributors
distributors = [{'type_id' => 'ostree_web_distributor', 'id' => '123', 'auto_publish' => true,
'config' => {}}]
response = @extension.create_with_importer_and_distributors(RepositorySupport.repo_id,
{:id => 'ostree_web_importer'}, distributors)
assert_equal 201, response.code
response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
assert_equal RepositorySupport.repo_id, response['id']
assert_equal 'ostree_web_distributor', response['distributors'].first['distributor_type_id']
end
def test_create_with_importer_and_distributors_objects
distributors = [Runcible::Models::OstreeDistributor.new(:id => '123')]
importer = Runcible::Models::OstreeImporter.new
response = @extension.create_with_importer_and_distributors(RepositorySupport.repo_id, importer, distributors)
assert_equal 201, response.code
response = @extension.retrieve(RepositorySupport.repo_id, :details => true)
assert_equal RepositorySupport.repo_id, response['id']
assert_equal 'ostree_web_importer', response['importers'].first['importer_type_id']
end
end
end
test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_distributor_object.yml
---
http_interactions:
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/4e4a6f9b-6e22-4617-bf4d-43c2bdda3f8d/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:16:09 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1709'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/4e4a6f9b-6e22-4617-bf4d-43c2bdda3f8d/", "task_id":
"4e4a6f9b-6e22-4617-bf4d-43c2bdda3f8d", "tags": ["pulp:repository:integration_test_id_distro",
"pulp:action:delete"], "finish_time": "2015-04-24T03:16:09Z", "_ns": "task_status",
"start_time": "2015-04-24T03:16:09Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b579ae874ef86bf80f2c"},
"id": "5539b579ae874ef86bf80f2c"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:16:09 GMT
- request:
method: post
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/
body:
encoding: UTF-8
string: '{"id":"integration_test_id_distro","distributors":[{"distributor_type_id":"ostree_web_distributor","distributor_config":{"ostree_publish_directory":"/path","relative_path":"/relative_path"},"auto_publish":false,"distributor_id":"123"}]}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '236'
User-Agent:
- Ruby
response:
status:
code: 201
message: CREATED
headers:
Date:
- Fri, 24 Apr 2015 03:32:47 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '340'
Location:
- https://katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id_distro/
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
{}, "_ns": "repos", "_id": {"$oid": "5539b95fd01ec01aafe6d8d4"}, "id": "integration_test_id_distro",
"_href": "/pulp/api/v2/repositories/integration_test_id_distro/"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:47 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id_distro/?details=true
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:47 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '709'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"scratchpad": {}, "display_name": "integration_test_id_distro", "description":
null, "distributors": [{"repo_id": "integration_test_id_distro", "_ns": "repo_distributors",
"last_publish": null, "auto_publish": false, "scheduled_publishes": [], "distributor_type_id":
"ostree_web_distributor", "_id": {"$oid": "5539b95fd01ec01aafe6d8d5"}, "config":
{"ostree_publish_directory": "/path", "relative_path": "/relative_path"},
"id": "123"}], "last_unit_added": null, "notes": {}, "last_unit_removed":
null, "content_unit_counts": {}, "_ns": "repos", "importers": [], "_id": {"$oid":
"5539b95fd01ec01aafe6d8d4"}, "id": "integration_test_id_distro", "_href":
"/pulp/api/v2/repositories/integration_test_id_distro/"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:47 GMT
- request:
method: delete
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id_distro/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 202
message: ACCEPTED
headers:
Date:
- Fri, 24 Apr 2015 03:32:47 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
- utf-8
Content-Length:
- '172'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/6d081cbd-bf21-4923-95a5-d291a29c30df/",
"task_id": "6d081cbd-bf21-4923-95a5-d291a29c30df"}], "result": null, "error":
null}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:47 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/6d081cbd-bf21-4923-95a5-d291a29c30df/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:48 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1709'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/6d081cbd-bf21-4923-95a5-d291a29c30df/", "task_id":
"6d081cbd-bf21-4923-95a5-d291a29c30df", "tags": ["pulp:repository:integration_test_id_distro",
"pulp:action:delete"], "finish_time": "2015-04-24T03:32:47Z", "_ns": "task_status",
"start_time": "2015-04-24T03:32:47Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b95fae874ef86bf80f58"},
"id": "5539b95fae874ef86bf80f58"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:48 GMT
- request:
method: delete
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 404
message: NOT FOUND
headers:
Date:
- Fri, 24 Apr 2015 03:32:48 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
- utf-8
Content-Length:
- '442'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"http_request_method": "DELETE", "exception": null, "error_message":
"Missing resource(s): repo_id=integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/",
"http_status": 404, "error": {"code": "PLP0009", "data": {"resources": {"repo_id":
"integration_test_id"}}, "description": "Missing resource(s): repo_id=integration_test_id",
"sub_errors": []}, "traceback": null, "resources": {"repo_id": "integration_test_id"}}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:48 GMT
recorded_with: VCR 2.9.3
test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_distributors.yml
---
http_interactions:
- request:
method: post
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/
body:
encoding: UTF-8
string: '{"id":"integration_test_id","distributors":[{"distributor_type_id":"ostree_distributor_web","distributor_config":{"ostree_publish_directory":"/path"},"auto_publish":true,"distributor_id":"123"}]}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '195'
User-Agent:
- Ruby
response:
status:
code: 400
message: BAD REQUEST
headers:
Date:
- Fri, 24 Apr 2015 03:28:22 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
- utf-8
Content-Length:
- '439'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"http_request_method": "POST", "exception": null, "error_message":
"Invalid properties: [''distributor_type_id'']", "property_names": ["distributor_type_id"],
"_href": "/pulp/api/v2/repositories/", "http_status": 400, "error": {"code":
"PLP0015", "data": {"property_names": ["distributor_type_id"], "properties":
"[''distributor_type_id'']"}, "description": "Invalid properties: [''distributor_type_id'']",
"sub_errors": []}, "traceback": null}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:28:23 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/35248ca5-7ed9-483d-9386-74b2dafc60a3/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:31:22 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1702'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/35248ca5-7ed9-483d-9386-74b2dafc60a3/", "task_id":
"35248ca5-7ed9-483d-9386-74b2dafc60a3", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:31:22Z", "_ns": "task_status",
"start_time": "2015-04-24T03:31:22Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b90aae874ef86bf80f38"},
"id": "5539b90aae874ef86bf80f38"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:31:22 GMT
- request:
method: post
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/
body:
encoding: UTF-8
string: '{"id":"integration_test_id","distributors":[{"distributor_type_id":"ostree_web_distributor","distributor_config":{"ostree_publish_directory":"/path"},"auto_publish":true,"distributor_id":"123"}]}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '195'
User-Agent:
- Ruby
response:
status:
code: 201
message: CREATED
headers:
Date:
- Fri, 24 Apr 2015 03:32:46 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '319'
Location:
- https://katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
{}, "_ns": "repos", "_id": {"$oid": "5539b95ed01ec01aafe6d8ca"}, "id": "integration_test_id",
"_href": "/pulp/api/v2/repositories/integration_test_id/"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:46 GMT
- request:
method: delete
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 202
message: ACCEPTED
headers:
Date:
- Fri, 24 Apr 2015 03:32:46 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
- utf-8
Content-Length:
- '172'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/8eb89d5c-de21-4e46-9956-0a2e712ce09e/",
"task_id": "8eb89d5c-de21-4e46-9956-0a2e712ce09e"}], "result": null, "error":
null}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:46 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/8eb89d5c-de21-4e46-9956-0a2e712ce09e/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:46 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1702'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/8eb89d5c-de21-4e46-9956-0a2e712ce09e/", "task_id":
"8eb89d5c-de21-4e46-9956-0a2e712ce09e", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:32:46Z", "_ns": "task_status",
"start_time": "2015-04-24T03:32:46Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b95eae874ef86bf80f50"},
"id": "5539b95eae874ef86bf80f50"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:46 GMT
recorded_with: VCR 2.9.3
test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_importer.yml
---
http_interactions:
- request:
method: post
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/
body:
encoding: UTF-8
string: '{"id":"integration_test_id","importer_type_id":"ostree_importer","importer_config":{}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '86'
User-Agent:
- Ruby
response:
status:
code: 400
message: BAD REQUEST
headers:
Date:
- Fri, 24 Apr 2015 02:54:30 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
- utf-8
Content-Length:
- '373'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"http_request_method": "POST", "exception": null, "error_message":
"The importer type ostree_importer does not exist", "_href": "/pulp/api/v2/repositories/",
"http_status": 400, "error": {"code": "PLP1008", "data": {"importer_type_id":
"ostree_importer"}, "description": "The importer type ostree_importer does
not exist", "sub_errors": []}, "args": [], "traceback": null}'
http_version:
recorded_at: Fri, 24 Apr 2015 02:54:30 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/8d3981ba-6e96-4992-a386-22396c34937e/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 02:55:32 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '696'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/8d3981ba-6e96-4992-a386-22396c34937e/", "task_id":
"8d3981ba-6e96-4992-a386-22396c34937e", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T02:55:31Z", "_ns": "task_status",
"start_time": "2015-04-24T02:55:31Z", "traceback": null, "spawned_tasks":
[], "progress_report": {}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq",
"state": "finished", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": null, "_id": {"$oid": "5539b0a3ae874ef86bf80f1e"},
"id": "5539b0a3ae874ef86bf80f1e"}'
http_version:
recorded_at: Fri, 24 Apr 2015 02:55:32 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/379577c9-ea50-4b61-ac78-1023de521c42/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:16:11 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '696'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/379577c9-ea50-4b61-ac78-1023de521c42/", "task_id":
"379577c9-ea50-4b61-ac78-1023de521c42", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:16:10Z", "_ns": "task_status",
"start_time": "2015-04-24T03:16:10Z", "traceback": null, "spawned_tasks":
[], "progress_report": {}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq",
"state": "finished", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": null, "_id": {"$oid": "5539b57aae874ef86bf80f34"},
"id": "5539b57aae874ef86bf80f34"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:16:11 GMT
- request:
method: post
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/
body:
encoding: UTF-8
string: '{"id":"integration_test_id","importer_type_id":"ostree_web_importer","importer_config":{}}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '90'
User-Agent:
- Ruby
response:
status:
code: 201
message: CREATED
headers:
Date:
- Fri, 24 Apr 2015 03:32:45 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '319'
Location:
- https://katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
{}, "_ns": "repos", "_id": {"$oid": "5539b95dd01ec01aafe6d8c5"}, "id": "integration_test_id",
"_href": "/pulp/api/v2/repositories/integration_test_id/"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:45 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:45 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '588'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
null, "distributors": [], "last_unit_added": null, "notes": {}, "last_unit_removed":
null, "content_unit_counts": {}, "_ns": "repos", "importers": [{"repo_id":
"integration_test_id", "_ns": "repo_importers", "importer_type_id": "ostree_web_importer",
"last_sync": null, "scheduled_syncs": [], "_id": {"$oid": "5539b95dd01ec01aafe6d8c6"},
"config": {}, "id": "ostree_web_importer"}], "_id": {"$oid": "5539b95dd01ec01aafe6d8c5"},
"id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:45 GMT
- request:
method: delete
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 202
message: ACCEPTED
headers:
Date:
- Fri, 24 Apr 2015 03:32:45 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
- utf-8
Content-Length:
- '172'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/18abe9fe-32c9-47d8-ba59-e03c50726d14/",
"task_id": "18abe9fe-32c9-47d8-ba59-e03c50726d14"}], "result": null, "error":
null}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:45 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/18abe9fe-32c9-47d8-ba59-e03c50726d14/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:46 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '696'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/18abe9fe-32c9-47d8-ba59-e03c50726d14/", "task_id":
"18abe9fe-32c9-47d8-ba59-e03c50726d14", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:32:45Z", "_ns": "task_status",
"start_time": "2015-04-24T03:32:45Z", "traceback": null, "spawned_tasks":
[], "progress_report": {}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq",
"state": "finished", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": null, "_id": {"$oid": "5539b95dae874ef86bf80f4c"},
"id": "5539b95dae874ef86bf80f4c"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:46 GMT
recorded_with: VCR 2.9.3
test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_importer_and_distributors.yml
---
http_interactions:
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/d1240962-9c0a-419b-9400-cfceb2408353/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:16:08 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1702'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/d1240962-9c0a-419b-9400-cfceb2408353/", "task_id":
"d1240962-9c0a-419b-9400-cfceb2408353", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:16:08Z", "_ns": "task_status",
"start_time": "2015-04-24T03:16:08Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b578ae874ef86bf80f28"},
"id": "5539b578ae874ef86bf80f28"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:16:08 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/97f8594e-c340-4eae-8931-773c7e6a99f3/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:31 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1702'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/97f8594e-c340-4eae-8931-773c7e6a99f3/", "task_id":
"97f8594e-c340-4eae-8931-773c7e6a99f3", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:32:30Z", "_ns": "task_status",
"start_time": "2015-04-24T03:32:30Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b94eae874ef86bf80f3c"},
"id": "5539b94eae874ef86bf80f3c"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:31 GMT
- request:
method: post
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/
body:
encoding: UTF-8
string: '{"id":"integration_test_id","importer_type_id":"ostree_web_importer","importer_config":{},"distributors":[{"distributor_type_id":"ostree_web_distributor","distributor_config":{},"auto_publish":true,"distributor_id":"123"}]}'
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
Content-Length:
- '223'
User-Agent:
- Ruby
response:
status:
code: 201
message: CREATED
headers:
Date:
- Fri, 24 Apr 2015 03:32:44 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '319'
Location:
- https://katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
null, "last_unit_added": null, "notes": {}, "last_unit_removed": null, "content_unit_counts":
{}, "_ns": "repos", "_id": {"$oid": "5539b95cd01ec01aafe6d8bf"}, "id": "integration_test_id",
"_href": "/pulp/api/v2/repositories/integration_test_id/"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:44 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/?details=true
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:44 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '842'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"scratchpad": {}, "display_name": "integration_test_id", "description":
null, "distributors": [{"repo_id": "integration_test_id", "_ns": "repo_distributors",
"last_publish": null, "auto_publish": true, "scheduled_publishes": [], "distributor_type_id":
"ostree_web_distributor", "_id": {"$oid": "5539b95cd01ec01aafe6d8c1"}, "config":
{}, "id": "123"}], "last_unit_added": null, "notes": {}, "last_unit_removed":
null, "content_unit_counts": {}, "_ns": "repos", "importers": [{"repo_id":
"integration_test_id", "_ns": "repo_importers", "importer_type_id": "ostree_web_importer",
"last_sync": null, "scheduled_syncs": [], "_id": {"$oid": "5539b95cd01ec01aafe6d8c0"},
"config": {}, "id": "ostree_web_importer"}], "_id": {"$oid": "5539b95cd01ec01aafe6d8bf"},
"id": "integration_test_id", "_href": "/pulp/api/v2/repositories/integration_test_id/"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:44 GMT
- request:
method: delete
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/repositories/integration_test_id/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 202
message: ACCEPTED
headers:
Date:
- Fri, 24 Apr 2015 03:32:44 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Encoding:
- utf-8
Content-Length:
- '172'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"spawned_tasks": [{"_href": "/pulp/api/v2/tasks/df4fbcd5-dfd2-42ac-a6ec-bc6831bdbdb7/",
"task_id": "df4fbcd5-dfd2-42ac-a6ec-bc6831bdbdb7"}], "result": null, "error":
null}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:44 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/df4fbcd5-dfd2-42ac-a6ec-bc6831bdbdb7/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:32:45 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1702'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/df4fbcd5-dfd2-42ac-a6ec-bc6831bdbdb7/", "task_id":
"df4fbcd5-dfd2-42ac-a6ec-bc6831bdbdb7", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:32:44Z", "_ns": "task_status",
"start_time": "2015-04-24T03:32:44Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b95cae874ef86bf80f48"},
"id": "5539b95cae874ef86bf80f48"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:32:45 GMT
recorded_with: VCR 2.9.3
test/fixtures/vcr_cassettes/extensions/ostree_repository_create/create_with_importer_and_distributors_objects.yml
---
http_interactions:
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/da992f36-c820-4714-b71b-3f64dd9a697a/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
- application/json
User-Agent:
- Ruby
response:
status:
code: 200
message: OK
headers:
Date:
- Fri, 24 Apr 2015 03:16:10 GMT
Server:
- Apache/2.4.6 (CentOS)
Content-Length:
- '1702'
Connection:
- close
Content-Type:
- application/json
body:
encoding: UTF-8
string: '{"exception": null, "task_type": "pulp.server.tasks.repository.delete",
"_href": "/pulp/api/v2/tasks/da992f36-c820-4714-b71b-3f64dd9a697a/", "task_id":
"da992f36-c820-4714-b71b-3f64dd9a697a", "tags": ["pulp:repository:integration_test_id",
"pulp:action:delete"], "finish_time": "2015-04-24T03:16:10Z", "_ns": "task_status",
"start_time": "2015-04-24T03:16:09Z", "traceback": "Traceback (most recent
call last):\n File \"/usr/lib/python2.7/site-packages/celery/app/trace.py\",
line 240, in trace_task\n R = retval = fun(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/async/tasks.py\",
line 394, in __call__\n return super(Task, self).__call__(*args, **kwargs)\n File
\"/usr/lib/python2.7/site-packages/celery/app/trace.py\", line 437, in __protected_call__\n return
self.run(*args, **kwargs)\n File \"/usr/lib/python2.7/site-packages/pulp/server/tasks/repository.py\",
line 41, in delete\n manager.delete_repo(repo_id)\n File \"/usr/lib/python2.7/site-packages/pulp/server/managers/repo/cud.py\",
line 261, in delete_repo\n raise pe\nPulpExecutionException: Pulp exception
occurred: PulpExecutionException\n", "spawned_tasks": [], "progress_report":
{}, "queue": "reserved_resource_worker-1@katello-wisdom.example.com.dq", "state":
"error", "worker_name": "reserved_resource_worker-1@katello-wisdom.example.com",
"result": null, "error": {"code": "PLP0000", "data": {}, "description": "Pulp
exception occurred: PulpExecutionException", "sub_errors": [{"code": "PLP0000",
"data": {}, "description": "coercing to Unicode: need string or buffer, NoneType
found", "sub_errors": []}]}, "_id": {"$oid": "5539b579ae874ef86bf80f30"},
"id": "5539b579ae874ef86bf80f30"}'
http_version:
recorded_at: Fri, 24 Apr 2015 03:16:10 GMT
- request:
method: get
uri: https://admin:yjJbppdnk9o53M7DUpabXnse9o6NZveD@katello-wisdom.example.com/pulp/api/v2/tasks/6fe07dd5-01dd-42c7-aea6-346f6cce5815/
body:
encoding: US-ASCII
string: ''
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Content-Type:
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff