jdk/test/sun/security/tools/policytool/i18n.html
changeset 18169 deb6268716ef
parent 17427 5e7f51b62b1d
equal deleted inserted replaced
18168:f47169155ea0 18169:deb6268716ef
    13 (you can read all the english text fine).
    13 (you can read all the english text fine).
    14 If at any time an exception is thrown, or if any message
    14 If at any time an exception is thrown, or if any message
    15 is incomprehensible, then the test failed.  Otherwise,
    15 is incomprehensible, then the test failed.  Otherwise,
    16 the test passed.
    16 the test passed.
    17 <p>
    17 <p>
       
    18 <b>Preparation</b>: Find (or create) a temporary directory that you have write
       
    19 access to (Example: 'C:\tmp' on Windows or '/tmp' on other systems) and copy
       
    20 the files "ks", "good", "bad" from the scratch sub-directory of this test's
       
    21 working directory (the -w argument of jtreg) into the temporary directory.
       
    22 If 'policy1' or 'policy2' already exists in this directory, remove it.
       
    23 <p>
    18 Press "Pass" if ... press "Fail" otherwise.
    24 Press "Pass" if ... press "Fail" otherwise.
    19 <p>
    25 <p>
    20 <ol start="0">
    26 <ol>
    21 <li> If testing on Windows, create a temporary directory. (Example: C:\foo\tmp)
       
    22 <li> Pull down the 'File' and 'KeyStore' menus and check values
    27 <li> Pull down the 'File' and 'KeyStore' menus and check values
    23 <li> Pull down 'File' menu and select 'View Warning Log'.  Confirm FileNotFound.
    28 <li> Pull down 'File' menu and select 'View Warning Log'.  Confirm FileNotFound.
    24 <li> Pull down 'File' menu and select 'New'.
    29 <li> Pull down 'File' menu and select 'New'.
    25 <li> Pull down 'File' menu and select 'View Warning Log'.  Confirm empty.
    30 <li> Pull down 'File' menu and select 'View Warning Log'.  Confirm empty.
    26 <li> Click on 'Add Policy Entry' and check pop-up window
    31 <li> Click on 'Add Policy Entry' and check pop-up window
    44 <li> Click on 'Edit Permission' and confirm values
    49 <li> Click on 'Edit Permission' and confirm values
    45 <li> Select AudioPermission.  Confirm 'Target Name' and 'Actions' cleared.
    50 <li> Select AudioPermission.  Confirm 'Target Name' and 'Actions' cleared.
    46 <li> Select "play" from Target menu.
    51 <li> Select "play" from Target menu.
    47 <li> Click OK, confirm changed permission.
    52 <li> Click OK, confirm changed permission.
    48 <li> Type "hello" for 'CodeBase', click on 'Done', and check error message
    53 <li> Type "hello" for 'CodeBase', click on 'Done', and check error message
       
    54 <li> Clean up the 'CodeBase' textbox
    49 <li> Type "hello" for 'SignedBy', click on 'Done', and check warning message
    55 <li> Type "hello" for 'SignedBy', click on 'Done', and check warning message
    50 <li> Click, on 'Edit Policy Entry' and 'Remove Policy Entry'
    56 <li> Click on 'Edit Policy Entry' and 'Remove Policy Entry'
    51 	and check error messages
    57 	and check error messages
    52 <li> Select policy entry, click on 'Edit Policy Entry', and check pop-up window
    58 <li> Select policy entry, click on 'Edit Policy Entry', check pop-up window and close it
    53 <li> Select policy entry, click on 'Remove Policy Entry',
    59 <li> Select policy entry, click on 'Remove Policy Entry',
    54 	and check pop-up window
    60 	and check pop-up window
    55 <li> Do not remove the entry, click 'Cancel'.
    61 <li> Do not remove the entry, click 'Cancel'.
    56 <li> Pull down 'File' menu and select 'Exit'.  Confirm Save option.
    62 <li> Pull down 'File' menu and select 'Exit'.  Confirm Save option.
    57 	Click 'Cancel'.
    63 	Click 'Cancel'.
    58 <li> Select 'File' menu value 'Save' and enter "/tmp/policy1" as the filename.<br>
    64 <li> Select 'File' menu value 'Save' and save into file "policy1" in the
    59      If testing on Windows, use the temporary directory created in Step 0.
    65     temporary directory. Check status message.<br>
    60         (Example: Save as "C:\foo\tmp\policy1")<br>
       
    61      Check status message.
       
    62 <li> Select 'File' menu value 'New'
    66 <li> Select 'File' menu value 'New'
    63 <li> Click 'Add Policy Entry', type in "hello" for 'SignedBy' field,
    67 <li> Click 'Add Policy Entry', type in "hello" for 'SignedBy' field,
    64 	click 'Done'.  Confirm warning.
    68 	click 'Done'.  Confirm warning.
    65 <li> Select 'File' menu value 'Open' and confirm save option
    69 <li> Select 'File' menu value 'Open' and confirm save option
    66 	(do not save changes)
    70 	(Click 'Cancel', do not save changes)
    67 <li> Type "/tmp/policy1" (if Windows, "C:\foo\tmp\policy1") for the filename
       
    68         and confirm warning message<br>
       
    69 <li> Pull down 'File' menu, select 'View Warning Log'
    71 <li> Pull down 'File' menu, select 'View Warning Log'
    70 	and confirm KeyStore alias warning
    72 	and confirm KeyStore alias warning
    71 <li> Pull down 'KeyStore' menu and select 'Edit'
    73 <li> Pull down 'KeyStore' menu and select 'Edit'
    72 <li> Enter 'foo' as KeyStore URL and check error
    74 <li> Enter 'foo' as KeyStore URL, click 'OK', and check error
    73 <li> Using keytool create JKS keystore
    75 <li> Enter KeyStore URL "file:/tmp/ks" (Or use the temporary directory mentioned
    74 <li> Enter KeyStore URL but leave other fields empty.  Should succeed.
    76     in the preparation if it's not '/tmp'. For example, "file:/C:/tmp/ks" on Windows)
       
    77     but leave other fields empty. Click 'OK'. Should succeed.
    75 <li> Pull down 'KeyStore' menu and select 'Edit'
    78 <li> Pull down 'KeyStore' menu and select 'Edit'
    76 <li> Confirm URL and Type values.
    79 <li> Confirm URL and Type values. The Type should be "jks"
    77 <li> Enter 'foo' as the provider and check error message.
    80 <li> Enter 'foo' as the provider, click 'OK' and check error message.
    78 <li> Enter 'SUN' as the provider.  Should succeed.
    81 <li> Enter 'SUN' as the provider, click 'OK'.  Should succeed.
    79 <li> Pull down 'KeyStore' menu and select 'Edit'
    82 <li> Pull down 'KeyStore' menu and select 'Edit'
    80 <li> Confirm URL, Type, and Provider values.
    83 <li> Confirm URL, Type, and Provider values.
    81 <li> Enter 'foo' as the password URL and check error message.
    84 <li> Enter 'foo' as the password URL, click 'OK' and check error message.
    82 <li> Enter URL with bad password and check error message.
    85 <li> Enter URL "file:/tmp/bad" (Or use the temporary directory mentioned in
    83 <li> Enter URL with good password.  Should succeed.
    86     the preparation if it's not '/tmp'. For example, "file:/C:/tmp/bad" on Windows),
       
    87     click 'OK' and check error message.
       
    88 <li> Enter URL "file:/tmp/good" (Or use the temporary directory mentioned in
       
    89     the preparation if it's not '/tmp'. For example, "file:/C:/tmp/good" on Windows)
       
    90     and click 'OK'.  Should succeed.
    84 <li> Pull down 'KeyStore' menu and select 'Edit'
    91 <li> Pull down 'KeyStore' menu and select 'Edit'
    85 <li> Confirm URL, Type, Provider, and Password URL values.
    92 <li> Confirm URL, Type, Provider, and Password URL values.
    86 <li> Click OK
    93 <li> Click OK
    87 <li> Pull down 'File' menu and select 'Save As'.  Enter "/tmp/policy2"
    94 <li> Pull down 'File' menu and select 'Save As' and save into file "policy2"
    88         (if Windows, "C:\foo\tmp\policy2").
    95     in the temporary directory. Confirm status message.<br>
    89 	Confirm status message.<br>
       
    90 <li> Pull down 'File' menu and select 'New'.
    96 <li> Pull down 'File' menu and select 'New'.
    91 <li> Pull down 'File' menu and select 'Open'.  Enter "/tmp/policy2"
    97 <li> Pull down 'File' menu and select 'Open' and open "policy2" in the
    92         (if Windows, "C:\foo\tmp\policy2").
    98     temporary directory.<br>
    93 	Confirm warning message.<br>
       
    94 <li> Click on 'Add Policy Entry', enter Codebase 'http://foo',
    99 <li> Click on 'Add Policy Entry', enter Codebase 'http://foo',
    95 	SignedBy 'bar'.  Click on 'Done' and confirm alias warning.
   100 	SignedBy 'bar'.  Click on 'Done' and confirm alias warning.
    96 <li> Double-Click on just created policy entry, confirm edit window appears.
   101 <li> Double-Click on just created policy entry, confirm edit window appears.
    97 <li> Change SignedBy to an alias in previously created keystore.
   102 <li> Change SignedBy to an 'hello'.
    98 <li> Click on Done and confirm it worked with no warning.
   103 <li> Click on Done and confirm it worked with no warning.
    99 <li> Double-Click on "SignedBy hello" policy entry and
   104 <li> Double-Click on "SignedBy hello" policy entry and
   100 	confirm edit window appears.
   105 	confirm edit window appears.
   101 <li> Click on Edit/Remove Principal, confirm errors.
   106 <li> Click on Edit/Remove Principal, confirm errors.
   102 <li> Click on 'Add Principal' and check new window.
   107 <li> Click on 'Add Principal' and check new window.
   103 <li> Click on 'OK' and confirm error message (no principal name)
   108 <li> Click on 'OK' and confirm error message (no principal name)
   104 <li> Enter valid KeyStore alias as principal name, click OK and
   109 <li> Enter 'hello' as principal name, click OK and
   105 	confirm status message.
   110 	confirm status message.
   106 <li> Confirm new principal in Principals list.
   111 <li> Confirm new principal in Principals list.
   107 <li> Click on 'Done' (creating policy entry), confirm alias warning.
   112 <li> Click on 'Done' (creating policy entry).
   108 <li> View warning log and confirm X500Principal/KeyStore alias message.
   113 <li> View warning log and confirm X500Principal/KeyStore alias message.
   109 <li> Confirm principal added to policy entry in main window listing.
   114 <li> Confirm principal added to policy entry in main window listing.
   110 <li> Double click on that entry.
   115 <li> Double click on that entry.
   111 <li> Enter codebase "file:/foobar".
   116 <li> Enter codebase "file:/foobar".
   112 <li> Click on 'Add Principal'.  Select KerberosPrincipal.  enter 'foo' as name.
   117 <li> Click on 'Add Principal'.  Select KerberosPrincipal.  enter 'foo' as name.
   114 <li> Confirm new principal in list.
   119 <li> Confirm new principal in list.
   115 <li> Double-click on new principal.  Select X500Principal.
   120 <li> Double-click on new principal.  Select X500Principal.
   116 	Confirm name cleared.  Type 'foo' as name.  Click OK.  Confirm error.
   121 	Confirm name cleared.  Type 'foo' as name.  Click OK.  Confirm error.
   117 	type 'cn=foo' as name.  Click OK.  should succeed.
   122 	type 'cn=foo' as name.  Click OK.  should succeed.
   118 <li> Confirm changed principal in list.
   123 <li> Confirm changed principal in list.
   119 <li> Click on 'Add Permission', and add any FilePermission.
   124 <li> Click on 'Add Permission', and add a FilePermission, choose a target and
   120 <li> Click on 'Done' in Policy Entry window.  Confirm alias warning.
   125     an action. Click OK.
       
   126 <li> Click on 'Done' in Policy Entry window.
   121 <li> Confirm entries in main window listing.
   127 <li> Confirm entries in main window listing.
   122 <li> Select 'File' menu value 'Exit'
   128 <li> Select 'File' menu value 'Exit'
   123 <li> Save Changes, confirm status message.
   129 <li> Save Changes, confirm status message.
   124 <li> If testing on Windows, delete the temporary directory and its contents
   130 <li> Delete all files created during this test. If the temporary directory
   125         created during this test.
   131  is also newly created, empty and delete it.</ol>
   126 </ol>
       
   127 <p>
   132 <p>
   128 
   133 
   129 </body>
   134 </body>
   130 </html>
   135 </html>