Project

General

Profile

« Previous | Next » 

Revision c81a105c

Added by Justin Sherrill about 10 years ago

fixing tests after moving to dynflow for repo creation/deletion

View differences:

app/lib/actions/katello/repository/create.rb
module Repository
class Create < Actions::EntryAction
# rubocop:disable MethodLength
def plan(repository, clone = false)
repository.disable_auto_reindex!
repository.save!
......
plan_self
org = repository.organization
# check the instance variable, as we do not want to go to pulp
checksum_type = repository.checksum_type if self.instance_variable_get('@checksum_type')
if repository.puppet?
path = File.join(::Katello.config.puppet_repo_root,
::Katello::KTEnvironment.construct_name(repository.environment.organization,
......
ssl_client_cert: repository.feed_cert,
ssl_client_key: repository.feed_key,
unprotected: repository.unprotected,
checksum_type: checksum_type,
checksum_type: repository.checksum_type,
path: path,
with_importer: true)

Also available in: Unified diff