Bug 150321 - Fix ConfigUploadAction, Add test
Summary: Fix ConfigUploadAction, Add test
Alias: None
Product: Red Hat Network
Classification: Red Hat
Component: RHN/R&D
Version: RHN Devel
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Ken Ganong
QA Contact: Red Hat Satellite QA List
Depends On:
Blocks: rhnMilestone1
TreeView+ depends on / blocked
Reported: 2005-03-04 16:45 UTC by Ken Ganong
Modified: 2007-04-18 17:20 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-03-08 13:52:34 UTC

Attachments (Terms of Use)

Description Ken Ganong 2005-03-04 16:45:12 UTC
ConfigUploadAction has two ActionChildren, ConfigDateDetails and
ConfigDateFileAction.  Both use actionId as a primary key.  This
should work for ConfigDateDetails (test will indicate that problem),
but it will not work for ConfigDateFileAction because
ConfigUploadAction contains a set of them, meaning multiple
ConfigDateFileActions with the same primary key.

There needs to be a test for creating, committing, and looking up a

Comment 1 Ken Ganong 2005-03-04 20:15:22 UTC
Correct, three ActionChildren,  ConfigChannelAssociation.  This third
one also has no mapping file.

Comment 2 Ken Ganong 2005-03-08 13:52:34 UTC
Tested whether ConfigUploadActions could be created, committed, and
looked up.  Added a composite key to ConfigDateFileAction.  Found that
the equals method of ConfigChannelAssociation wouldn't allow the
lookup of more than one ConfigChannelAssociation and fixed that. 
ConfigChannelAssociations mapping is achieved through a composite key
in Action.hbm.xml.

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