Revision c279e034
Added by David Davis over 5 years ago
README.md | ||
---|---|---|
114 | 114 |
|
115 | 115 |
## Testing |
116 | 116 |
|
117 |
### Dependencies |
|
118 |
|
|
119 |
In order to run and develop the ostree code in runcible locally, you will need |
|
120 |
to install the pulp ostree packages (namely pulp-python-plugins and |
|
121 |
pulp-ostree-plugins). |
|
122 |
|
|
123 |
If you don't have ostree intalled already, you'll need to setup the ostree repo |
|
124 |
as ostree is a dependency for pulp-ostree-plugins. For centos, you'll create |
|
125 |
/etc/yum.repos.d/ostree.repo with this: |
|
126 |
|
|
127 |
``` |
|
128 |
[atomic7-testing] |
|
129 |
name=atomic7-testing |
|
130 |
baseurl=http://cbs.centos.org/repos/atomic7-testing/x86_64/os/ |
|
131 |
gpgcheck=0 |
|
132 |
enabled=1 |
|
133 |
``` |
|
134 |
|
|
135 |
Now you should be able to install the two pulp plugin packages: |
|
136 |
|
|
137 |
``` |
|
138 |
sudo yum install pulp-python-plugins pulp-ostree-plugins |
|
139 |
``` |
|
140 |
|
|
141 |
Finally, update your pulp database and restart pulp: |
|
142 |
|
|
143 |
``` |
|
144 |
sudo -u apache pulp-manage-db |
|
145 |
for x in httpd pulp_resource_manager pulp_celerybeat pulp_workers; do sudo service $x restart; done |
|
146 |
``` |
|
147 |
|
|
148 |
### Running Tests |
|
149 |
|
|
117 | 150 |
To run all tests using recorded data, run: |
118 | 151 |
|
119 | 152 |
rake test mode=none |
... | ... | |
128 | 161 |
or (by filename) |
129 | 162 |
rake test mode=none test=./test/extensions/respository_test.rb |
130 | 163 |
|
164 |
Note that when you record data, it's a good idea to delete any corresponding |
|
165 |
vcr cassette files as recording data will sometimes only append to these files. |
|
166 |
|
|
131 | 167 |
To run tests against your live Pulp without recording a new cassette set record flag to false (does not apply to mode=none): |
132 | 168 |
|
133 | 169 |
record=false |
Also available in: Unified diff
Fixes #14836 - Add note about pulp-python-plugins and pulp-ostree-plugins (#173)