public class ChannelTestUtils
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static int | TOOLS_INDEX | 
| static int | VIRT_INDEX | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | addDistMapToChannel(Channel c)Add a test DistChannelMap to the specified channel. | 
| static void | addDistMapToChannel(Channel c,
                   java.lang.String os,
                   java.lang.String release)Add a dist channel map for the given channel. | 
| static Channel | createBaseChannel(User creator)Create test base channel | 
| static Channel | createChildChannel(User user,
                  Channel baseChannel)Create a child channel of the passed in base channel | 
| static Channel | createTestChannel(User user)Create test channel | 
| static Channel[] | setupBaseChannelForVirtualization(User user,
                                 Channel baseChannel)Setup a Base Channel with 2 child channels (rhn-tools and rhel-virt) to be
 able to do virt stuff. | 
public static final int VIRT_INDEX
public static final int TOOLS_INDEX
public static Channel createBaseChannel(User creator) throws java.lang.Exception
creator - of channeljava.lang.Exception - if errorpublic static Channel createTestChannel(User user) throws java.lang.Exception
user - who createsjava.lang.Exception - foopublic static Channel createChildChannel(User user, Channel baseChannel) throws java.lang.Exception
user - who's org owns channelbaseChannel - to use as parentjava.lang.Exception - while creatingpublic static Channel[] setupBaseChannelForVirtualization(User user, Channel baseChannel) throws java.lang.Exception
user - ubaseChannel - bcjava.lang.Exception - thrown if errorpublic static void addDistMapToChannel(Channel c, java.lang.String os, java.lang.String release)
c - Channelos - Poorly named in the db, actually a product name.release - Poorly named, actually a RHEL version.public static void addDistMapToChannel(Channel c)
c - Channel to add a DistChannelMap to.