Project

General

Profile

« Previous | Next » 

Revision 085c9956

Added by Eric Helms about 11 years ago

Pulp2.1 - Updates to how consumer group content tests are handled
to test them properly.

View differences:

test/extensions/rpm_test.rb
end
end
class TestExtensionsRpmCopy < UnitCopyBase
def self.extension_class
Runcible::Extensions::Rpm
end
......
end
class TestExtensionsRpmUnassociate < UnitUnassociateBase
def self.extension_class
Runcible::Extensions::Rpm
end
def setup
task = Runcible::Extensions::Repository.unit_copy(self.class.clone_name, RepositorySupport.repo_id)
RepositorySupport.wait_on_task(task)
end
def test_unassociate_ids_from_repo
ids = content_ids(RepositorySupport.repo_id)
refute_empty ids
......
assert_equal (ids.length - 1), unit_ids(self.class.clone_name).length
end
def test_unassociate_from_repo
ids = unit_ids(self.class.clone_name)
refute_empty ids
......
assert_equal (ids.length - 1), unit_ids(self.class.clone_name).length
end
end

Also available in: Unified diff