--- old/test/sun/security/tools/policytool/i18n.html 2017-09-06 12:14:57.000000000 +0800
+++ /dev/null 2017-09-06 12:14:57.000000000 +0800
@@ -1,135 +0,0 @@
-
-
-
-
-
-This is a multi-stage test. Click on "done" when you have completed
-reading these instructions.
-
-First, policytool will be invoked. During the entire test,
-make sure that all the buttons, menu options, error messages,
-and output messages are comprehensible
-(you can read all the english text fine).
-If at any time an exception is thrown, or if any message
-is incomprehensible, then the test failed. Otherwise,
-the test passed.
-
-Preparation: Find (or create) a temporary directory that you have write
-access to (Example: 'C:\tmp' on Windows or '/tmp' on other systems) and copy
-the files "ks", "good", "bad" from the scratch sub-directory of this test's
-working directory (the -w argument of jtreg) into the temporary directory.
-If 'policy1' or 'policy2' already exists in this directory, remove it.
-
-Press "Pass" if ... press "Fail" otherwise.
-
-
-- Pull down the 'File' and 'KeyStore' menus and check values
-
- Pull down 'File' menu and select 'View Warning Log'. Confirm FileNotFound.
-
- Pull down 'File' menu and select 'New'.
-
- Pull down 'File' menu and select 'View Warning Log'. Confirm empty.
-
- Click on 'Add Policy Entry' and check pop-up window
-
- Click on 'Edit Permission' and 'Remove Permission' and check error messages
-
- Click on 'Add Permission' and check pop-up window
-
- Pull down 'Permission' menu and check values
-
- Select 'AWTPermission', pull down 'Target Name' and check values
-
- Select 'FilePermission', pull down 'Target Name' and 'Actions' and check values.
-
- Select 'NetPermission', pull down 'Target Name' and check values
-
- Select 'PropertyPermission', pull down 'Actions' and check values
-
- Select 'ReflectPermission', pull down 'Target Name' and check values
-
- Select 'RuntimePermission', pull down 'Target Name' and check values
-
- Select 'SecurityPermission', pull down 'Target Name' and check values
-
- Select 'SerializablePermission', pull down 'Target Name' and check values
-
- Select 'SocketPermission', pull down 'Actions' and check values
-
- Type "www.example.com" for SocketPermission 'TargetName',
- and "connect" for 'Actions'
-
- Click OK
-
- Check new entry
-
- Click once on new entry
-
- Click on 'Edit Permission' and confirm values
-
- Select AudioPermission. Confirm 'Target Name' and 'Actions' cleared.
-
- Select "play" from Target menu.
-
- Click OK, confirm changed permission.
-
- Type "hello" for 'CodeBase', click on 'Done', and check error message
-
- Clean up the 'CodeBase' textbox
-
- Type "hello" for 'SignedBy', click on 'Done', and check warning message
-
- Click on 'Edit Policy Entry' and 'Remove Policy Entry'
- and check error messages
-
- Select policy entry, click on 'Edit Policy Entry', check pop-up window and close it
-
- Select policy entry, click on 'Remove Policy Entry',
- and check pop-up window
-
- Do not remove the entry, click 'Cancel'.
-
- Pull down 'File' menu and select 'Exit'. Confirm Save option.
- Click 'Cancel'.
-
- Select 'File' menu value 'Save' and save into file "policy1" in the
- temporary directory. Check status message.
- - Select 'File' menu value 'New'
-
- Click 'Add Policy Entry', type in "hello" for 'SignedBy' field,
- click 'Done'. Confirm warning.
-
- Select 'File' menu value 'Open' and confirm save option
- (Click 'Cancel', do not save changes)
-
- Pull down 'File' menu, select 'View Warning Log'
- and confirm KeyStore alias warning
-
- Pull down 'KeyStore' menu and select 'Edit'
-
- Enter 'foo' as KeyStore URL, click 'OK', and check error
-
- Enter KeyStore URL "file:/tmp/ks" (Or use the temporary directory mentioned
- in the preparation if it's not '/tmp'. For example, "file:/C:/tmp/ks" on Windows)
- but leave other fields empty. Click 'OK'. Should succeed.
-
- Pull down 'KeyStore' menu and select 'Edit'
-
- Confirm URL and Type values. The Type should be "jks"
-
- Enter 'foo' as the provider, click 'OK' and check error message.
-
- Enter 'SUN' as the provider, click 'OK'. Should succeed.
-
- Pull down 'KeyStore' menu and select 'Edit'
-
- Confirm URL, Type, and Provider values.
-
- Enter 'foo' as the password URL, click 'OK' and check error message.
-
- Enter URL "file:/tmp/bad" (Or use the temporary directory mentioned in
- the preparation if it's not '/tmp'. For example, "file:/C:/tmp/bad" on Windows),
- click 'OK' and check error message.
-
- Enter URL "file:/tmp/good" (Or use the temporary directory mentioned in
- the preparation if it's not '/tmp'. For example, "file:/C:/tmp/good" on Windows)
- and click 'OK'. Should succeed.
-
- Pull down 'KeyStore' menu and select 'Edit'
-
- Confirm URL, Type, Provider, and Password URL values.
-
- Click OK
-
- Pull down 'File' menu and select 'Save As' and save into file "policy2"
- in the temporary directory. Confirm status message.
- - Pull down 'File' menu and select 'New'.
-
- Pull down 'File' menu and select 'Open' and open "policy2" in the
- temporary directory.
- - Click on 'Add Policy Entry', enter Codebase 'http://foo',
- SignedBy 'bar'. Click on 'Done' and confirm alias warning.
-
- Double-Click on just created policy entry, confirm edit window appears.
-
- Change SignedBy to an 'hello'.
-
- Click on Done and confirm it worked with no warning.
-
- Double-Click on "SignedBy hello" policy entry and
- confirm edit window appears.
-
- Click on Edit/Remove Principal, confirm errors.
-
- Click on 'Add Principal' and check new window.
-
- Click on 'OK' and confirm error message (no principal name)
-
- Enter 'hello' as principal name, click OK and
- confirm status message.
-
- Confirm new principal in Principals list.
-
- Click on 'Done' (creating policy entry).
-
- View warning log and confirm X500Principal/KeyStore alias message.
-
- Confirm principal added to policy entry in main window listing.
-
- Double click on that entry.
-
- Enter codebase "file:/foobar".
-
- Click on 'Add Principal'. Select KerberosPrincipal. enter 'foo' as name.
- Click OK.
-
- Confirm new principal in list.
-
- Double-click on new principal. Select X500Principal.
- Confirm name cleared. Type 'foo' as name. Click OK. Confirm error.
- type 'cn=foo' as name. Click OK. should succeed.
-
- Confirm changed principal in list.
-
- Click on 'Add Permission', and add a FilePermission, choose a target and
- an action. Click OK.
-
- Click on 'Done' in Policy Entry window.
-
- Confirm entries in main window listing.
-
- Select 'File' menu value 'Exit'
-
- Save Changes, confirm status message.
-
- Delete all files created during this test. If the temporary directory
- is also newly created, empty and delete it.
-
-
-
-