Revision 524638e4
Added by Partha Aji over 5 years ago
test/extensions/ostree_repository_test.rb | ||
---|---|---|
85 | 85 |
def test_create_with_importer_and_distributors_objects |
86 | 86 |
distributors = [Runcible::Models::OstreeDistributor.new(:id => '123')] |
87 | 87 |
importer = Runcible::Models::OstreeImporter.new |
88 |
depth = -1 |
|
89 |
importer.depth = depth |
|
88 | 90 |
response = @extension.create_with_importer_and_distributors(RepositorySupport.repo_id, importer, distributors) |
89 | 91 |
assert_equal 201, response.code |
90 | 92 |
|
91 | 93 |
response = @extension.retrieve(RepositorySupport.repo_id, :details => true) |
92 | 94 |
assert_equal RepositorySupport.repo_id, response['id'] |
93 | 95 |
assert_equal 'ostree_web_importer', response['importers'].first['importer_type_id'] |
96 |
assert_equal depth, response['importers'].first['config']['depth'] |
|
94 | 97 |
end |
95 | 98 |
end |
96 | 99 |
|
Also available in: Unified diff
Fixes #18076 - Can set OSTree repo depth
Enables one to set the importer depth value for the ostree repo.
look at http://projects.theforeman.org/issues/18076 for more info.