Bug 1023606 - Passing ocft unit test cases for resource-agents package
Passing ocft unit test cases for resource-agents package
Status: CLOSED NEXTRELEASE
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents (Show other bugs)
6.6
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: David Vossel
Cluster QE
: TestOnly
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-25 18:31 EDT by David Vossel
Modified: 2014-06-13 15:00 EDT (History)
4 users (show)

See Also:
Fixed In Version: resource-agents-3.9.5-4.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-06-13 15:00:15 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
update ocft test cases (15.47 KB, patch)
2013-10-25 18:36 EDT, David Vossel
no flags Details | Diff

  None (edit)
Description David Vossel 2013-10-25 18:31:56 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.

How reproducible:
100%

Steps to Reproduce:
run the oct test suite.

1. ocft make
2. ocft test

Actual results:
tests fail

Expected results:
tests pass

Additional info:

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.
Comment 2 David Vossel 2013-10-25 18:36:19 EDT
Created attachment 816297 [details]
update ocft test cases

This adds passing unit tests for the following agents

apache
Filesystem
IPaddr2
IPaddr2v4
IPaddr2v6
IPsrcaddr
IPv6addr
LVM
MailTo
mysql
named
nfsserver
pgsql
postfix
SendArp
tomcat
Xinetd
Comment 3 David Vossel 2014-06-13 15:00:15 EDT
This was a TestOnly bug, the tests have been updated. I'm closing this.

Note You need to log in before you can comment on or make changes to this bug.