Project

General

Profile

Download (23 KB) Statistics
| Branch: | Tag: | Revision:

hammer-cli-csv / README.md @ b50ceaa2

1
# hammer-cli-csv [![Build Status](https://travis-ci.org/Katello/hammer-cli-csv.svg?branch=master)](https://travis-ci.org/Katello/hammer-cli-csv) [![Coverage Status](https://coveralls.io/repos/github/Katello/hammer-cli-csv/badge.svg?branch=master)](https://coveralls.io/github/Katello/hammer-cli-csv?branch=master)
2

    
3
## Introduction
4

    
5
[Hammer](https://github.com/theforeman/hammer-cli/blob/master/README.md) is a command line interface (CLI) framework which provides a core to which modules may be added. This module, hammer-cli-csv, adds commands to interact with the following products: [Foreman](https://theforeman.org) standalone, [Katello](http://www.katello.org/), Red Hat's Satellite-6, and Red Hat's Subscription Asset Manager (SAM).
6

    
7
The purpose of this module's commands are to allow a convenient mechanism to both export to and import from CSV files (comma separated values). Each of the server's supported resource types, such as organizations and users, is handled.
8

    
9
Some possible uses include
10

    
11
* Import demo or development data easily and consistently
12
* Export another server's data and then import into elsewhere for testing and debug
13
* Export for backup and auditing
14

    
15
The following sections will cover installation, usage, and examples. All of the resource types are follow in the order which generally is required for dependency resolution (eg. roles must exist to assign to users so the role section comes first).
16

    
17
## Installation
18

    
19
```bash
20
gem install hammer_cli_csv
21
gem install hammer_cli_katello
22

    
23
mkdir -p ~/.hammer/cli.modules.d/
24

    
25
cat <<EOQ > ~/.hammer/cli.modules.d/csv.yml
26
:csv:
27
  :enable_module: true
28
EOQ
29

    
30
# to confirm things work, this should return useful output
31
hammer csv --help
32

    
33
```
34

    
35
## General Usage
36

    
37
Supported commands and options are available by using the --help option. Additional subcommands and options may be listed here but are considered "tech preview" to indicate the lack of testing and official support.
38

    
39
| Option | Description |
40
| ---------------:| :--------------|
41
| --export | If not specified will run import. |
42
| --file FILE_NAME | File to import from or export to. If not specified reads or writes to/from stdin and stdout. Note: On ruby-1.8.7 this option is required. |
43
| --prefix PREFIX | Convenience method to add a prefix to all Count substituted values. See examples below. |
44
| --server SERVER | The server to run against. Overrides any config file value. |
45
| --username USERNAME | Username for server. Overrides any config file value. |
46
| --password PASSWORD | Password for user. Overrides any config file value. |
47
| --verbose | Display verbose progress information during import. |
48

    
49
## Count Substitution
50

    
51
Some columns of input data have a special syntax available termed "Count substitution" below.
52

    
53
This hammer module started out as a way to generate large amounts of test data. As such, it was convenient to be able to add a single row to an input CSV file and have it generate multiple records.
54

    
55
Take this Organization CSV as an example:
56

    
57
```
58
Name, Count, Label, Description
59
# Start a row with a # to indicate a comment, a row to be skipped
60
Organization %d, 4, testorg%d, A test organization
61
```
62

    
63
The single row, with a Count value of four, would generate four organizations ("Organization 0", "Organization 1", "Organization 2", and "Organization 3"). Notice that the Label column, which must be unique, also has the Count column substition.
64

    
65
During export, the Count column will always be one (1).
66

    
67
## Examples
68

    
69
## Organizations
70

    
71
**Overview**
72
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=organizations&state=open)
73
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/organizations_test.rb)
74
* Sample data
75
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/organizations.csv)
76

    
77
**CSV Columns**
78

    
79
*Note: % column indicates Count substituion*
80

    
81
| Column Title | Column Description | % |
82
| :----------- | :----------------- | :-: |
83
| Name         | Name of the organization to update or create | x |
84
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
85
| Label | Unique organization label | x |   |
86
| Description | Organization description |   |
87

    
88
**Examples**
89

    
90
Here is an example of a CSV file to create an organization
91

    
92
```
93
Name, Count, Label, Description
94
# Start a row with a # to indicate a comment, a row to be skipped
95
Mega Corporation, 1, megacorp, The number one mega company in the world!
96
```
97

    
98
If above is saved to a file such as **megacorp/organizations.csv** the following command will run import to create or update the organization.
99

    
100
```
101
$ hammer csv organizations --version --csv-file megacorp/organizations.csv
102
Updating organization 'Mega Corporation'... done
103

    
104
$ hammer csv organizations --csv-export
105
"Name","Count","Label","Description"
106
"Mega Corporation","1","megacorp","The number one mega company in the world!"
107

    
108
# Import but prefix all substitution columns with a string
109
$ hammer csv organizations --verbose --csv-file test/data/organizations.csv --prefix xyz
110
Creating organization 'xyzMega Corporation'... done
111

    
112
# Export and pipe to import with a new prefix
113
$ hammer csv organizations --csv-export | hammer csv organizations --verbose --csv-file test/data/organizations.csv --prefix abc
114
Creating organization 'abcMega Corporation'... done
115
```
116

    
117
## Locations
118

    
119
**Overview**
120
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=locations&state=open)
121
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/locations_test.rb)
122
* Sample data
123
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/locations.csv)
124

    
125
**CSV Columns**
126

    
127
*Note: % column indicates Count substituion*
128

    
129
| Column Title | Column Description | % |
130
| :----------- | :----------------- | :-: |
131
| Name         | Name of the location to update or create | x |
132
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
133
| Parent Location | Parent location |   |
134

    
135
## Puppet Environments
136

    
137
**Overview**
138
* Due to the implications of removing a puppet environment from an organization or location, this column only adds to what is present already.
139
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=puppet-environments&state=open)
140
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/puppet_environments_test.rb)
141
* Sample data
142
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/puppet-environments.csv)
143

    
144
**CSV Columns**
145

    
146
*Note: % column indicates Count substituion*
147

    
148
| Column Title | Column Description | % |
149
| :----------- | :----------------- | :-: |
150
| Name         | Name of the puppet environments to update or create | x |
151
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
152
| Organizations | Comma separated list of organizations |   |
153

    
154
## Operating Systems
155

    
156
**Overview**
157
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=operating-systems&state=open)
158
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/operating_systems_test.rb)
159
* Sample data
160
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/operating-systems.csv)
161

    
162
**CSV Columns**
163

    
164
*Note: % column indicates Count substituion*
165

    
166
| Column Title | Column Description | % |
167
| :----------- | :----------------- | :-: |
168
| Name         | Name of the operating systems to update or create | x |
169
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
170
| Family | Operating system family |   |
171
| Description | Operating system description |   |
172
| Password Hash | MD5, SHA256, SHA512, or Base64 |   |
173
| Partition Tables | List of partition table names |   |
174
| Architectures | List of architectures names |   |
175
| Media | List of media names |   |
176
| Provisioning Templates | List of provisioning template names |   |
177
| Parameters | List of parameters |   |
178

    
179
## Domains
180

    
181
**Overview**
182
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=domains&state=open)
183
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/domains_test.rb)
184
* Sample data
185
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/domains.csv)
186

    
187
**CSV Columns**
188

    
189
*Note: % column indicates Count substituion*
190

    
191
| Column Title | Column Description | % |
192
| :----------- | :----------------- | :-: |
193
| Name         | Name of the domains to update or create | x |
194
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
195
| Full Name | Full name of the domain |   |
196
| Organizations | Comma separated list of organizations |   |
197

    
198
## Architectures
199

    
200
**Overview**
201
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=architectures&state=open)
202
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/architectures_test.rb)
203
* Sample data
204
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/architectures.csv)
205

    
206
**CSV Columns**
207

    
208
*Note: % column indicates Count substituion*
209

    
210
| Column Title | Column Description | % |
211
| :----------- | :----------------- | :-: |
212
| Name         | Name of the architectures to update or create | x |
213
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
214
| Operating Systems | Comma separated list of operating system names |   |
215

    
216
## Partition Tables
217

    
218
**Overview**
219
* Import and export of the Organizations and Locations columns does not apply to all versions and will be silently ignored when unsupported.
220
* Importing Operating Systems column does not apply to all versions and will be silently ignored when unsupported.
221
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=partition-tables&state=open)
222
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/partition_tables_test.rb)
223
* Sample data
224
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/partition-tables.csv)
225

    
226
**CSV Columns**
227

    
228
*Note: % column indicates Count substituion*
229

    
230
| Column Title | Column Description | % |
231
| :----------- | :----------------- | :-: |
232
| Name         | Name of the partition tables to update or create | x |
233
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
234
| OS Family | Operating system family |   |
235
| Operating Systems | Comma separated list of operating system names |   |
236
| Layout | Disk layout |   |
237

    
238
## Lifecycle Environments
239

    
240
**Overview**
241
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=lifecycle-environments&state=open)
242
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/lifecycle_environments_test.rb)
243
* Sample data
244
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/lifecycle-environments.csv)
245

    
246
**CSV Columns**
247

    
248
*Note: % column indicates Count substituion*
249

    
250
| Column Title | Column Description | % |
251
| :----------- | :----------------- | :-: |
252
| Name         | Name of the lifecycle environments to update or create | x |
253
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
254
| Organization | Organization name |   |
255
| Prior Environment | Previous organization name in path |   |
256
| Description | Lifecycle environment description |   |
257

    
258
## Host Collections
259

    
260
| Additional arguments | Description |
261
| ---------------:| :--------------|
262
| --organization | Only process organization matching this name |
263

    
264
**Overview**
265
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=host-collections&state=open)
266
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/host_collections_test.rb)
267
* Sample data
268
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/host-collections.csv)
269

    
270
**CSV Columns**
271

    
272
*Note: % column indicates Count substituion*
273

    
274
| Column Title | Column Description | % |
275
| :----------- | :----------------- | :-: |
276
| Name         | Name of the host collections to update or create | x |
277
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
278
| Organization | Organization name |   |
279
| Limit | Usage limit |   |
280
| Description | Host collection description |   |
281

    
282
## Products
283

    
284
| Additional arguments | Description |
285
| ---------------:| :--------------|
286
| --organization | Only process organization matching this name |
287
| --[no-]sync | Sync product repositories (default true) |
288

    
289
**Overview**
290
* Due to the length of time that syncing repositories can take, the --no-sync option may be used to skip this step. To always disable syncing, ':products_sync: false' may be specified in configuration file.
291
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=products&state=open)
292
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/products_test.rb)
293
* Sample data
294
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/products.csv)
295

    
296
**CSV Columns**
297

    
298
*Note: % column indicates Count substituion*
299

    
300
| Column Title | Column Description | % |
301
| :----------- | :----------------- | :-: |
302
| Name         | Name of the host collections to update or create | x |
303
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
304
| Label | Unique label  |   |
305
| Organization | Organization name |   |
306
| Repository | Repository name |   |
307
| Repository Url | Repository Url |   |
308
| Description | Repository description |   |
309

    
310
## Provisioning Templates
311

    
312
| Additional arguments | Description |
313
| ---------------:| :--------------|
314
| --organization | Only process organization matching this name |
315

    
316
**Overview**
317
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=provisioning-templates&state=open)
318
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/provisioning_templates_test.rb)
319
* Sample data
320
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/provisioning_templates.csv)
321

    
322
**CSV Columns**
323

    
324
*Note: % column indicates Count substituion*
325

    
326
| Column Title | Column Description | % |
327
| :----------- | :----------------- | :-: |
328
| Name         | Name of the provisioning templates to update or create | x |
329
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
330
| Organizations  | Comma separated list of organizations |   |
331
| Locations  | Comma separated list of locations |   |
332
| Operating Systems  | Comma separated list of associated operating systems |   |
333
| Host Group / Puppet Environment Combinations  | Comma separated list of host group and puppet environment associations |   |
334
| Kind  | Kind of template (eg. snippet) |   |
335
| Template  | Full text of template |   |
336

    
337
## Subscriptions
338

    
339
**Overview**
340
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=subscriptions&state=open)
341
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/subscriptions_test.rb)
342
* Sample data
343
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/subscriptions.csv)
344

    
345
**CSV Columns**
346

    
347
*Note: % column indicates Count substituion*
348

    
349
| Column Title | Column Description | % |
350
| :----------- | :----------------- | :-: |
351
| Name         | Name of the subscriptions to update or create | x |
352
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
353
| Organization | Organization name |   |
354
| Manifest File | Path to manifest file |   |
355
| Content Set | Repository content set to enable |   |
356
| Arch | Architecture |   |
357
| Release | Release version |   |
358

    
359
## Activation Keys
360

    
361
**Overview**
362
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=activation-keys&state=open)
363
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/activation_keys_test.rb)
364
* Sample data
365
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/activation-keys.csv)
366

    
367
**CSV Columns**
368

    
369
*Note: % column indicates Count substituion*
370

    
371
| Column Title | Column Description | % |
372
| :----------- | :----------------- | :-: |
373
| Name         | Name of the activation keys to update or create | x |
374
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
375
| Organization | Parent organization name |   |
376
| Description | Activation key description |   |
377
| Limit | Usage limit |   |
378
| Environment | Lifecycle environment name |   |
379
| Content View | Content view name |   |
380
| Host Collections | Comma separated list of host collections |   |
381
| Subscriptions | Comma separated list of subscriptions |   |
382

    
383
## Hosts
384

    
385
**Overview**
386
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=hosts&state=open)
387
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/hosts_test.rb)
388
* Sample data
389
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/hosts.csv)
390

    
391
**CSV Columns**
392

    
393
*Note: % column indicates Count substituion*
394

    
395
| Column Title | Column Description | % |
396
| :----------- | :----------------- | :-: |
397
| Name         | Name of the hosts to update or create | x |
398
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
399
| Organization | Organization name |   |
400
| Environment | Puppet environment name |   |
401
| Operating System | Operating system name |   |
402
| Architecture | Architecture name |   |
403
| MAC Address | Unique MAC address | x |
404
| Domain | Domain name |   |
405
| Partition Table | Partition table name |   |
406

    
407
## Content Hosts
408

    
409
| Additional arguments | Description |
410
| ---------------:| :--------------|
411
| --organization | Only process organization matching this name |
412

    
413
**Overview**
414
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=content-hosts&state=open)
415
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/content_hosts_test.rb)
416
* Sample data
417
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/content-hosts.csv)
418

    
419
**CSV Columns**
420

    
421
*Note: % column indicates Count substituion*
422

    
423
| Column Title | Column Description | % |
424
| :----------- | :----------------- | :-: |
425
| Name         | Name of the content hosts to update or create | x |
426
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
427
| Organization | Organization name |   |
428
| Environment | Puppet environment name |   |
429
| Content View | Content view name |   |
430
| Host Collections | Comma separate list of host collectoins |   |
431
| Virtual | Virtual (Yes or No) |   |
432
| Host | Virtual content host name |   |
433
| OS | Operating system name |   |
434
| Arch | Architecture name |   |
435
| Sockets | Number of sockets |   |
436
| RAM | Amount of RAM with units |   |
437
| Cores | Number of cores |   |
438
| SLA | Service Level Agreement |   |
439
| Products | Comma separated list of subscriptions |   |
440
| Subscriptions | Comma separated list of subscriptions |   |
441

    
442
## Reports
443

    
444
**Overview**
445
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=reports&state=open)
446
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/reports_test.rb)
447
* Sample data
448
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/reports.csv)
449

    
450
**CSV Columns**
451

    
452
*Note: % column indicates Count substituion*
453

    
454
| Column Title | Column Description | % |
455
| :----------- | :----------------- | :-: |
456
| Name         | Name of the reports to update or create | x |
457
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
458
| Time | Time of report |   |
459
| Applied |  |   |
460
| Restarted |  |   |
461
| Failed |  |   |
462
| Failed Restarts |  |   |
463
| Skipped |  |   |
464
| Pending |  |   |
465
| Metrics |  |   |
466

    
467
## Roles
468

    
469
**Overview**
470
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=roles&state=open)
471
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/roles_test.rb)
472
* Sample data
473
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/roles.csv)
474

    
475
**CSV Columns**
476

    
477
*Note: % column indicates Count substituion*
478

    
479
| Column Title | Column Description | % |
480
| :----------- | :----------------- | :-: |
481
| Name         | Name of the roles to update or create | x |
482
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
483
| Resource | Resource to apply role to |   |
484
| Search | Search string |   |
485
| Permissions | Role permission |   |
486
| Organizations | Comma separated list of organizations |   |
487
| Locations | Comma separated list of locations |   |
488

    
489
## Users
490

    
491
**Overview**
492
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=users&state=open)
493
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/users_test.rb)
494
* Sample data
495
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/users.csv)
496

    
497
**CSV Columns**
498

    
499
*Note: % column indicates Count substituion*
500

    
501
| Column Title | Column Description | % |
502
| :----------- | :----------------- | :-: |
503
| Name         | Name of the users to update or create | x |
504
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
505
| First Name | First name of user |   |
506
| Last Name | Last name of user |   |
507
| email | Email address |   |
508
| Organizations | Comma separated list of organizations |   |
509
| Locations | Comma separated list of locations |   |
510
| Roles | Comma separated list of role names for user |   |
511

    
512
## Settings
513

    
514
**Overview**
515
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=settings&state=open)
516
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/settings_test.rb)
517
* Sample data
518
  * [Mega Corporation](https://github.com/Katello/hammer-cli-csv/blob/master/test/data/settings.csv)
519

    
520
**CSV Columns**
521

    
522
*Note: % column indicates Count substituion*
523

    
524
| Column Title | Column Description | % |
525
| :----------- | :----------------- | :-: |
526
| Name         | Setting name to update or create | x |
527
| Count | Number of times to iterate this CSV row, incrementing value for substitution |   |
528
| Value | Setting value |   |
529

    
530
**Examples**
531
```
532
Name,Value
533
administrator,admin@megacorp.com
534
idle_timeout,60000
535
```
536

    
537
## Import
538

    
539
**Overview**
540
* [Open Issues](https://github.com/Katello/hammer-cli-csv/issues?labels=users&state=open)
541
* [Tests](https://github.com/Katello/hammer-cli-csv/blob/master/test/users_test.rb)
542

    
543
**Examples**
544

    
545
```
546
% hammer csv import -v --dir test/data --settings
547
Importing settings from 'test/data/settings.csv'
548
Updating setting 'idle_timeout'...done
549
```
550

    
551
# Development
552

    
553
## Code style
554

    
555
    rubocop -R <file>
556

    
557
## Tests
558

    
559
To run all tests using recorded data, run:
560

    
561
    rake test mode=none
562

    
563
To run all tests to record data:
564

    
565
    rake test mode=all
566

    
567
To run a single test using recorded data, run:
568

    
569
    rake test mode=none test=resources/settings
570

    
571
or
572

    
573
    rake test mode=none test=./test/resources/settings_test.rb
574

    
575
To run tests against your live Katello without recording a new cassette set record flag to false (does not apply to mode=none):
576

    
577
    record=false
578

    
579
To see RestClient logs while testing:
580

    
581
    logging=true
582

    
583
Test server configuration is taken from 'test/config.yml'. If that file does not exist then https://localhost with admin / changeme is the default.
584

    
585
    % cat test/config.yml
586

    
587
    :csv:
588
      :enable_module: true
589

    
590
    :foreman:
591
      :enable_module: true
592
      :host:          'http://katello:3000'
593
      :username:      'admin'
594
      :password:      'changeme'
595

    
596
    :katello:
597
      :enable_module: true