Revision c06f1783
Added by Thomas McKay over 6 years ago
test/csv_test_helper.rb | ||
---|---|---|
90 | 90 |
}) |
91 | 91 |
end |
92 | 92 |
|
93 |
def host_delete(hostname) |
|
94 |
stdout,stderr = capture { |
|
95 |
hammer.run(%W(host list --search #{hostname})) |
|
96 |
} |
|
97 |
lines = stdout.split("\n") |
|
98 |
if lines.length == 5 |
|
99 |
id = stdout.split("\n")[3].split(" ")[0] |
|
100 |
stdout,stderr = capture { |
|
101 |
hammer.run(%W(host delete --id #{id})) |
|
102 |
} |
|
103 |
end |
|
104 |
end |
|
105 |
|
|
93 | 106 |
require File.join(File.dirname(__FILE__), 'apipie_resource_mock') |
94 | 107 |
require File.join(File.dirname(__FILE__), 'helpers/command') |
95 | 108 |
require File.join(File.dirname(__FILE__), 'helpers/resource_disabled') |
Also available in: Unified diff
fixes #15743 - import and export of subscriptions one-per-line