RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1023606 - Passing ocft unit test cases for resource-agents package
Summary: Passing ocft unit test cases for resource-agents package
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: resource-agents
Version: 6.6
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: David Vossel
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-25 22:31 UTC by David Vossel
Modified: 2014-06-13 19:00 UTC (History)
4 users (show)

Fixed In Version: resource-agents-3.9.5-4.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 19:00:15 UTC
Target Upstream Version:
Embargoed:


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

Description David Vossel 2013-10-25 22:31:56 UTC
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 22:36:19 UTC
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 19:00:15 UTC
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.