Red Hat Bugzilla – Bug 1023606
Passing ocft unit test cases for resource-agents package
Last modified: 2014-06-13 15:00:15 EDT
Description of problem:
The resource-agents package contains a test suite for testing the ocf:heartbeat provider agents. That test suite consists of a unit test executable 'ocft' and a set of case files that can be built and executed by the 'ocft' command. This test suite is limited in its ability, but offers a great way of sanity checking the basic functionality of our resource-agents.
As of now however hardly any of the ocft test cases pass in a rhel environment. This is largely to do with fact that the test cases are written in a distro specific way.
We need to alter the test cases we ship so they pass in rhel.
Steps to Reproduce:
run the oct test suite.
1. ocft make
2. ocft test
Moving forward, it is very important that we introduce this test suite and start adding additional cases to it as we see fit. This is another tool that will help us avoid regressions.
Note that the tests currently failing do not reflect the functionality of the agents we are shipping. I have already updated the ocft test cases to work in rhel, during that process I found no regressions.
Created attachment 816297 [details]
update ocft test cases
This adds passing unit tests for the following agents
This was a TestOnly bug, the tests have been updated. I'm closing this.