Skip to content

Commit

Permalink
Merge 828e30a into 0cee24d
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddavis committed Oct 4, 2016
2 parents 0cee24d + 828e30a commit a93235f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,39 @@ Alternatively, using distributor and importer objects:

## Testing

### Dependencies

In order to run and develop the ostree code in runcible locally, you will need
to install the pulp ostree packages (namely pulp-python-plugins and
pulp-ostree-plugins).

If you don't have ostree intalled already, you'll need to setup the ostree repo
as ostree is a dependency for pulp-ostree-plugins. For centos, you'll create
/etc/yum.repos.d/ostree.repo with this:

```
[atomic7-testing]
name=atomic7-testing
baseurl=http://cbs.centos.org/repos/atomic7-testing/x86_64/os/
gpgcheck=0
enabled=1
```

Now you should be able to install the two pulp plugin packages:

```
sudo yum install pulp-python-plugins pulp-ostree-plugins
```

Finally, update your pulp database and restart pulp:

```
sudo -u apache pulp-manage-db
for x in httpd pulp_resource_manager pulp_celerybeat pulp_workers; do sudo service $x restart; done
```

### Running Tests

To run all tests using recorded data, run:

rake test mode=none
Expand All @@ -128,6 +161,9 @@ To run a single test using recorded data, run:
or (by filename)
rake test mode=none test=./test/extensions/respository_test.rb

Note that when you record data, it's a good idea to delete any corresponding
vcr cassette files as recording data will sometimes only append to these files.

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

record=false
Expand Down

0 comments on commit a93235f

Please sign in to comment.