admin@glassfish.java.net

Re: Admin DevTests goodie

From: Bobby Bissett <bobby.bissett_at_oracle.com>
Date: Fri, 15 Apr 2011 12:31:05 -0400

Thanks -- that's great. I had one test that I realized later was only passing because of output in the echoed params. This will make the fix a bit simpler.

Cheers,
Bobby

On Apr 14, 2011, at 3:27 PM, Byron Nevins wrote:

> Run any asadmin command with "--echo", look at output. Repeat without "--echo"
>
> unecho will take the former output and convert to the latter output.
>
> p.s. the Admin Devtests have "--echo" hard-coded in for every asadmin call.
>
> I stole the idea from Tom Mueller. It's simple. The echo'd command is always closed with a linefeed -- so that's what I chop off -- everything before the linefeed.
>
>
> On 4/14/2011 10:59 AM, Bobby Bissett wrote:
>>
>>> String neatCleanOutput = admin.TestUtils.unecho(String hugeAsadminReturnString)
>> I'm not set up to run right the dev tests right now, but I don't want to forget this (the admin dev tests are the upgrade schmuck's best friend). Do you have an example of what unecho() does to hugeAsadminReturnString?
>>
>> Thanks,
>> Bobby
>>
>>
>
> --
> <oracle_sig_logo.gif>
> Byron Nevins | Principal MTS
> Phone: +1 6503958992
>
> <green-for-email-sig_0.gif> Oracle is committed to developing practices and products that help protect the environment