candlepin/candlepin — pull request #232 by jmrodri (2013-04-19 19:28:38+00:00)
Title: web and api url transposed.

Added unit test to catch this in the future, as well as very the
other items on consumer.json

TEST
--------
* register a candlepin consumer, then get ```href``` from following command
```./cpc register mymachine candlepin "" '{"key" => "fact"}' admin admin```

* then export said consumer
```curl -k -u admin:admin https://localhost:8443/candlepin/consumers/UUID/export > export.zip```

* verify the consumer.json contains the correct values for urlApi and urlWeb.
* mkdir verify
* cd verify
* unzip ../export.zip
* unzip consumer_export.zip
* vi export/consumer.json