ari-ban / test2

0 stars 0 forks source link

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

Closed arinban closed 6 years ago

arinban commented 18 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
arinban commented 6 years ago

@arinban Commented

arinban commented 6 years ago

@arinban Commented @arinban Commented

arinban commented 18 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented Reported by @sivakumart

arinban commented 18 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented @sivakumart said: Need to modify tests to use passwordfile

arinban commented 13 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented @sivakumart said: Transferring to Satish

arinban commented 18 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented Was assigned to liang.x.zhao

arinban commented 7 years ago

@arinban Commented @arinban Commented @glassfishrobot Commented This issue was imported from java.net JIRA GENERICJMSRA-18

arinban commented 6 years ago

Closing this as this issue is migrated to https://github.com/ari-ban/test1/issues/18