Revision bef5bd62
Added by Ewoud Kohl van Wijngaarden over 2 years ago
- added
- modified
- copied
- renamed
- deleted
- spec
- fixtures
- cleanup-foreman-user-groups
- foreman-answers-after.yaml
- foreman-answers-before.yaml
- katello-answers-after.yaml
- katello-answers-before.yaml
- foreman-proxy-content-remove-tuning-fact
- foreman-proxy-content-after.yaml
- foreman-proxy-content-before.yaml
- cleanup-foreman-user-groups
- migration_spec.rb (diff)
- fixtures
Rewrite migration spec
This refactors the migration spec to be more focused on the actual
testing by removing a lot of duplication.
In places where there is very little in the actual fixture, the test is
rewritten to test it inline or provide the answers inline. This makes it
easier to follow what's going on.
Care has been taken to get decent naming in the output:
This makes it possible to find out where it failed. Errors look like
expected: ["a"]this:
got: []
Technically the migration has a different name on Foreman and Katello,
but that's somewhat easy to figure out and painful to solve so it has to
be taken for granted now.