arindam-bandyopadhyay / issue-test

0 stars 0 forks source link

Add support for passwordfile in the common asadmin tasks in the tests #25

Open arinban opened 6 years ago

arinban commented 6 years ago

GlassFish now mandates the passing of a password file instead of "password" for asadmin CLI commands. Need to modify the test framework [common asadmin tasks] to make this change

Suggested fix Index: config/common.xml

RCS file: /cvs/genericjmsra/config/common.xml,v retrieving revision 1.2 diff -u -w -r1.2 common.xml — config/common.xml 28 Dec 2005 11:32:51 -0000 1.2 +++ config/common.xml 15 Mar 2006 08:57:44 -0000 @@ -407,7 +407,7 @@ <exec executable="$

{ASADMIN}" failonerror="false">

  • @@ -421,7 +421,7 @@ <exec executable="${ASADMIN}

" failonerror="false">

<arg line="--user $

{admin.user}" />

  • @@ -651,11 +651,11 @@ ear file ${assemble.dir}/${appname}App.ear " level="verbose"/>

-<echo message="asadmin deploy --user ${admin.user}

--password $

{admin.password} --host ${admin.host} --port ${admin.port} --target ${appserver.instance.name} --type ${apptype} --retrieve ${assemble.dir} ${deployed.app}"/> +

- + @@ -675,7 +675,7 @@ - + @@ -697,7 +697,7 @@ - + @@ -716,7 +716,7 @@ - + @@ -732,7 +732,7 @@ - + @@ -752,7 +752,7 @@ - + @@ -769,7 +769,7 @@ * + @@ -785,7 +785,7 @@ - + @@ -800,7 +800,7 @@ - + Index: config/config.properties =================================================================== RCS file: /cvs/genericjmsra/config/config.properties,v retrieving revision 1.3 diff -u -w -r1.3 config.properties — config/config.properties 28 Dec 2005 11:32:52 -0000 1.3 +++ config/config.properties 15 Mar 2006 08:57:44 -0000 @@ -29,6 +29,8 @@ admin.host=localhost #SJSAS admin user password admin.password=adminadmin + +admin.password.file=${env.RA_HOME}/admin.password appserver.instance.name=server appclient.cpath=${env.RA_HOME}/build/dist/genericra.jar:/wksp/stcjms.jar rarfile=${env.RA_HOME}/build/dist/genericra.rar Index: config/properties.xml =================================================================== RCS file: /cvs/genericjmsra/config/properties.xml,v retrieving revision 1.2 diff -u -w -r1.2 properties.xml — config/properties.xml 28 Apr 2005 11:40:52 -0000 1.2 +++ config/properties.xml 15 Mar 2006 08:57:44 -0000 @@ -23,7 +23,9 @@ - + AS_ADMIN_PASSWORD=${admin.password} +AS_ADMIN_ADMINPASSWORD=${admin.password} +AS_ADMIN_MASTERPASSWORD=${master.password} + value="--user ${admin.user} --passwordfile ${admin.password.file} --host ${admin.host} --port ${admin.port} "/> #### Environment Operating System: All Platform: All #### Affected Versions [v1.5]
arinban commented 6 years ago

Original Issue:https://github.com/javaee/glassfish-genericjmsra/issues/18 Raised By:@glassfishrobot Created at:Wed Mar 15 06:28:19 IST 2006 Assigned To:@glassfishrobot

arinban commented 6 years ago

@glassfishrobot Commented on Wed Mar 15 06:28:19 IST 2006 Reported by @sivakumart

arinban commented 6 years ago

@glassfishrobot Commented on Wed Mar 15 06:28:48 IST 2006 @sivakumart said: Need to modify tests to use passwordfile

arinban commented 6 years ago

@glassfishrobot Commented on Mon Dec 13 06:28:54 IST 2010 @sivakumart said: Transferring to Satish

arinban commented 6 years ago

@glassfishrobot Commented on Wed Mar 15 06:28:19 IST 2006 Was assigned to liang.x.zhao

arinban commented 6 years ago

@glassfishrobot Commented on Mon Apr 24 13:01:45 IST 2017 This issue was imported from java.net JIRA GENERICJMSRA-18