author | weijun |
Thu, 13 Jun 2013 10:00:00 +0800 | |
changeset 18169 | deb6268716ef |
parent 17427 | 5e7f51b62b1d |
permissions | -rw-r--r-- |
2 | 1 |
<html> |
2 |
<body> |
|
3 |
||
4 |
<applet width=100 height=100 code=ChangeUI.class> |
|
5 |
</applet> |
|
6 |
||
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
2
diff
changeset
|
7 |
<b>ATTENTION:</b> policytool now contains no platform-specific codes anymore and |
2 | 8 |
should behaves exactly the same across all platforms. This also means: |
9 |
<ol> |
|
10 |
<li>You may only need to test it on one platform</li> |
|
11 |
<li>You can create policy files for a platform which is different than |
|
12 |
the platform you are running policytool on</li> |
|
13 |
</ol> |
|
14 |
||
15 |
This is a multi-stage test. Click on "done" when you have completed |
|
16 |
reading these instructions.<br><br> |
|
17 |
||
18 |
First, policytool will be invoked.<br><br> |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
2
diff
changeset
|
19 |
<ol start="0"> |
18169
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
20 |
<li>Find (or create) a temporary directory that you have write access to. |
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
21 |
(Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems) |
2 | 22 |
<li>Add new policy entry |
23 |
<li>Add permission: |
|
24 |
<pre> |
|
25 |
Type Target name Actions |
|
26 |
FilePermission c:\\foo\\bar read |
|
27 |
</pre> |
|
28 |
<ol> |
|
29 |
<li>Press OK</li> |
|
30 |
<li>Confirm the file name warning dialog appears</li> |
|
31 |
<li>Choose Retain, confirm the permission edit dialog is closed</li> |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
2
diff
changeset
|
32 |
<li>Double click the newly created FilePermission entry to edit it</li> |
2 | 33 |
<li>Press OK</li> |
34 |
<li>Confirm the file name warning dialog appears</li> |
|
35 |
<li>Choose Edit, confirm the permission edit dialog is still opened</li> |
|
36 |
<li>change Target name to c:\foo\bar</li> |
|
37 |
<li>Press OK, no warning dialog is shown</li> |
|
38 |
</ol> |
|
39 |
<li>Add permission: |
|
40 |
<pre> |
|
41 |
Type Target name |
|
42 |
DelegationPermission "me@SOMEWHERE" "you@SOMEWHERE" |
|
43 |
</pre> |
|
44 |
<ol> |
|
45 |
<li>Press OK</li> |
|
46 |
<li>Double click the newly craeted DelegationPermission entry to edit it</li> |
|
47 |
<li>Confirm the target name is still "me@SOMEWHERE" "you@SOMEWHERE"</li> |
|
48 |
<li>Press OK</li> |
|
49 |
</ol> |
|
50 |
<li>Confirm there are 2 entries in the permission list |
|
51 |
<li>Press Done |
|
52 |
<li>Double click the new policy entry to edit it |
|
53 |
<li>Add permission: |
|
54 |
<pre> |
|
55 |
Type |
|
56 |
AllPermission |
|
57 |
</pre> |
|
58 |
<li>Add a new Principal, say, KerberosPrincipal with Principal Name as aaa |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
2
diff
changeset
|
59 |
<li>Confirm there is 1 entry in the Principals list |
2 | 60 |
<li>Confirm there are 3 entries in the permission list |
61 |
<li>Press cancel |
|
62 |
<li>Double click the policy entry to edit it |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
2
diff
changeset
|
63 |
<li>Confirm there are ZERO entries in the Principals list |
2 | 64 |
<li>Confirm there are 2 entries in the permission list |
65 |
<li>Press cancel |
|
17427
5e7f51b62b1d
8005922: TEST_BUG: There is no /tmp directory for windows system.
juh
parents:
2
diff
changeset
|
66 |
<li>Save as "/tmp/p"<br> |
18169
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
67 |
(Or use the temporary directory mentioned in Step 0 if it's not '/tmp'. |
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
68 |
For example, "C:\foo\tmp\p" on Windows) |
deb6268716ef
8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
weijun
parents:
17427
diff
changeset
|
69 |
<li>Confirm that the file created in the previous step looks like |
2 | 70 |
<pre> |
71 |
/* AUTOMATICALLY GENERATED ON Tue Jul 19 16:27:30 CST 2005*/ |
|
72 |
/* DO NOT EDIT */ |
|
73 |
||
74 |
grant { |
|
75 |
permission java.io.FilePermission "c:\\foo\\bar", "read"; |
|
76 |
permission javax.security.auth.kerberos.DelegationPermission "\"me@SOMEWHERE\" \"you@SOMEWHERE\""; |
|
77 |
}; |
|
78 |
</pre> |
|
79 |
</ol> |
|
80 |
<br><br> |
|
81 |
||
82 |
Press "Pass" if ... press "Fail" otherwise.<br><br> |
|
83 |
||
84 |
</body> |
|
85 |
</html> |