Mercurial > hg
comparison tests/test-acl.out @ 11043:08681cb66231
acl: add tests for asterisk and for OS-level groups
author | Elifarley Callado Coelho Cruz <elifarley@gmail.com> |
---|---|
date | Wed, 28 Apr 2010 11:10:58 -0300 |
parents | 468876bc3885 |
children | b27a43eceda3 |
comparison
equal
deleted
inserted
replaced
11042:d82f3651cd13 | 11043:08681cb66231 |
---|---|
1161 acl: allowing changeset 911600dab2ae | 1161 acl: allowing changeset 911600dab2ae |
1162 updating the branch cache | 1162 updating the branch cache |
1163 rolling back to revision 1 (undo push) | 1163 rolling back to revision 1 (undo push) |
1164 0:6675d58eff77 | 1164 0:6675d58eff77 |
1165 | 1165 |
1166 asterisk test | |
1167 fred is always allowed | |
1168 Pushing as user fred | |
1169 hgrc = """ | |
1170 [acl] | |
1171 sources = push | |
1172 [extensions] | |
1173 [acl.allow] | |
1174 ** = fred | |
1175 """ | |
1176 pushing to ../b | |
1177 searching for changes | |
1178 common changesets up to 6675d58eff77 | |
1179 invalidating branch cache (tip differs) | |
1180 3 changesets found | |
1181 list of changesets: | |
1182 ef1ea85a6374b77d6da9dcda9541f498f2d17df7 | |
1183 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd | |
1184 911600dab2ae7a9baff75958b84fe606851ce955 | |
1185 adding changesets | |
1186 bundling changes: 0 chunks | |
1187 bundling changes: 1 chunks | |
1188 bundling changes: 2 chunks | |
1189 bundling changes: 3 chunks | |
1190 bundling changes: 4 chunks | |
1191 bundling changes: 5 chunks | |
1192 bundling changes: 6 chunks | |
1193 bundling changes: 7 chunks | |
1194 bundling changes: 8 chunks | |
1195 bundling changes: 9 chunks | |
1196 bundling manifests: 0 chunks | |
1197 bundling manifests: 1 chunks | |
1198 bundling manifests: 2 chunks | |
1199 bundling manifests: 3 chunks | |
1200 bundling manifests: 4 chunks | |
1201 bundling manifests: 5 chunks | |
1202 bundling manifests: 6 chunks | |
1203 bundling manifests: 7 chunks | |
1204 bundling manifests: 8 chunks | |
1205 bundling manifests: 9 chunks | |
1206 bundling files: foo/Bar/file.txt 0 chunks | |
1207 bundling files: foo/Bar/file.txt 1 chunks | |
1208 bundling files: foo/Bar/file.txt 2 chunks | |
1209 bundling files: foo/Bar/file.txt 3 chunks | |
1210 bundling files: foo/file.txt 4 chunks | |
1211 bundling files: foo/file.txt 5 chunks | |
1212 bundling files: foo/file.txt 6 chunks | |
1213 bundling files: foo/file.txt 7 chunks | |
1214 bundling files: quux/file.py 8 chunks | |
1215 bundling files: quux/file.py 9 chunks | |
1216 bundling files: quux/file.py 10 chunks | |
1217 bundling files: quux/file.py 11 chunks | |
1218 changesets: 1 chunks | |
1219 add changeset ef1ea85a6374 | |
1220 changesets: 2 chunks | |
1221 add changeset f9cafe1212c8 | |
1222 changesets: 3 chunks | |
1223 add changeset 911600dab2ae | |
1224 adding manifests | |
1225 manifests: 1/3 chunks (33.33%) | |
1226 manifests: 2/3 chunks (66.67%) | |
1227 manifests: 3/3 chunks (100.00%) | |
1228 adding file changes | |
1229 adding foo/Bar/file.txt revisions | |
1230 files: 1/3 chunks (33.33%) | |
1231 adding foo/file.txt revisions | |
1232 files: 2/3 chunks (66.67%) | |
1233 adding quux/file.py revisions | |
1234 files: 3/3 chunks (100.00%) | |
1235 added 3 changesets with 3 changes to 3 files | |
1236 calling hook pretxnchangegroup.acl: hgext.acl.hook | |
1237 acl: acl.allow enabled, 1 entries for user fred | |
1238 acl: acl.deny not enabled | |
1239 acl: allowing changeset ef1ea85a6374 | |
1240 acl: allowing changeset f9cafe1212c8 | |
1241 acl: allowing changeset 911600dab2ae | |
1242 updating the branch cache | |
1243 rolling back to revision 1 (undo push) | |
1244 0:6675d58eff77 | |
1245 | |
1246 no one is allowed inside foo/Bar/ | |
1247 Pushing as user fred | |
1248 hgrc = """ | |
1249 [acl] | |
1250 sources = push | |
1251 [extensions] | |
1252 [acl.allow] | |
1253 ** = fred | |
1254 [acl.deny] | |
1255 foo/Bar/** = * | |
1256 """ | |
1257 pushing to ../b | |
1258 searching for changes | |
1259 common changesets up to 6675d58eff77 | |
1260 invalidating branch cache (tip differs) | |
1261 3 changesets found | |
1262 list of changesets: | |
1263 ef1ea85a6374b77d6da9dcda9541f498f2d17df7 | |
1264 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd | |
1265 911600dab2ae7a9baff75958b84fe606851ce955 | |
1266 adding changesets | |
1267 bundling changes: 0 chunks | |
1268 bundling changes: 1 chunks | |
1269 bundling changes: 2 chunks | |
1270 bundling changes: 3 chunks | |
1271 bundling changes: 4 chunks | |
1272 bundling changes: 5 chunks | |
1273 bundling changes: 6 chunks | |
1274 bundling changes: 7 chunks | |
1275 bundling changes: 8 chunks | |
1276 bundling changes: 9 chunks | |
1277 bundling manifests: 0 chunks | |
1278 bundling manifests: 1 chunks | |
1279 bundling manifests: 2 chunks | |
1280 bundling manifests: 3 chunks | |
1281 bundling manifests: 4 chunks | |
1282 bundling manifests: 5 chunks | |
1283 bundling manifests: 6 chunks | |
1284 bundling manifests: 7 chunks | |
1285 bundling manifests: 8 chunks | |
1286 bundling manifests: 9 chunks | |
1287 bundling files: foo/Bar/file.txt 0 chunks | |
1288 bundling files: foo/Bar/file.txt 1 chunks | |
1289 bundling files: foo/Bar/file.txt 2 chunks | |
1290 bundling files: foo/Bar/file.txt 3 chunks | |
1291 bundling files: foo/file.txt 4 chunks | |
1292 bundling files: foo/file.txt 5 chunks | |
1293 bundling files: foo/file.txt 6 chunks | |
1294 bundling files: foo/file.txt 7 chunks | |
1295 bundling files: quux/file.py 8 chunks | |
1296 bundling files: quux/file.py 9 chunks | |
1297 bundling files: quux/file.py 10 chunks | |
1298 bundling files: quux/file.py 11 chunks | |
1299 changesets: 1 chunks | |
1300 add changeset ef1ea85a6374 | |
1301 changesets: 2 chunks | |
1302 add changeset f9cafe1212c8 | |
1303 changesets: 3 chunks | |
1304 add changeset 911600dab2ae | |
1305 adding manifests | |
1306 manifests: 1/3 chunks (33.33%) | |
1307 manifests: 2/3 chunks (66.67%) | |
1308 manifests: 3/3 chunks (100.00%) | |
1309 adding file changes | |
1310 adding foo/Bar/file.txt revisions | |
1311 files: 1/3 chunks (33.33%) | |
1312 adding foo/file.txt revisions | |
1313 files: 2/3 chunks (66.67%) | |
1314 adding quux/file.py revisions | |
1315 files: 3/3 chunks (100.00%) | |
1316 added 3 changesets with 3 changes to 3 files | |
1317 calling hook pretxnchangegroup.acl: hgext.acl.hook | |
1318 acl: acl.allow enabled, 1 entries for user fred | |
1319 acl: acl.deny enabled, 1 entries for user fred | |
1320 acl: allowing changeset ef1ea85a6374 | |
1321 acl: user fred denied on foo/Bar/file.txt | |
1322 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 | |
1323 transaction abort! | |
1324 rollback completed | |
1325 abort: acl: access denied for changeset f9cafe1212c8 | |
1326 no rollback information available | |
1327 0:6675d58eff77 | |
1328 | |
1329 OS-level groups | |
1330 @group1 is always allowed | |
1331 Pushing as user fred | |
1332 hgrc = """ | |
1333 [acl] | |
1334 sources = push | |
1335 [extensions] | |
1336 [acl.allow] | |
1337 ** = @group1 | |
1338 """ | |
1339 pushing to ../b | |
1340 searching for changes | |
1341 common changesets up to 6675d58eff77 | |
1342 3 changesets found | |
1343 list of changesets: | |
1344 ef1ea85a6374b77d6da9dcda9541f498f2d17df7 | |
1345 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd | |
1346 911600dab2ae7a9baff75958b84fe606851ce955 | |
1347 adding changesets | |
1348 bundling changes: 0 chunks | |
1349 bundling changes: 1 chunks | |
1350 bundling changes: 2 chunks | |
1351 bundling changes: 3 chunks | |
1352 bundling changes: 4 chunks | |
1353 bundling changes: 5 chunks | |
1354 bundling changes: 6 chunks | |
1355 bundling changes: 7 chunks | |
1356 bundling changes: 8 chunks | |
1357 bundling changes: 9 chunks | |
1358 bundling manifests: 0 chunks | |
1359 bundling manifests: 1 chunks | |
1360 bundling manifests: 2 chunks | |
1361 bundling manifests: 3 chunks | |
1362 bundling manifests: 4 chunks | |
1363 bundling manifests: 5 chunks | |
1364 bundling manifests: 6 chunks | |
1365 bundling manifests: 7 chunks | |
1366 bundling manifests: 8 chunks | |
1367 bundling manifests: 9 chunks | |
1368 bundling files: foo/Bar/file.txt 0 chunks | |
1369 bundling files: foo/Bar/file.txt 1 chunks | |
1370 bundling files: foo/Bar/file.txt 2 chunks | |
1371 bundling files: foo/Bar/file.txt 3 chunks | |
1372 bundling files: foo/file.txt 4 chunks | |
1373 bundling files: foo/file.txt 5 chunks | |
1374 bundling files: foo/file.txt 6 chunks | |
1375 bundling files: foo/file.txt 7 chunks | |
1376 bundling files: quux/file.py 8 chunks | |
1377 bundling files: quux/file.py 9 chunks | |
1378 bundling files: quux/file.py 10 chunks | |
1379 bundling files: quux/file.py 11 chunks | |
1380 changesets: 1 chunks | |
1381 add changeset ef1ea85a6374 | |
1382 changesets: 2 chunks | |
1383 add changeset f9cafe1212c8 | |
1384 changesets: 3 chunks | |
1385 add changeset 911600dab2ae | |
1386 adding manifests | |
1387 manifests: 1/3 chunks (33.33%) | |
1388 manifests: 2/3 chunks (66.67%) | |
1389 manifests: 3/3 chunks (100.00%) | |
1390 adding file changes | |
1391 adding foo/Bar/file.txt revisions | |
1392 files: 1/3 chunks (33.33%) | |
1393 adding foo/file.txt revisions | |
1394 files: 2/3 chunks (66.67%) | |
1395 adding quux/file.py revisions | |
1396 files: 3/3 chunks (100.00%) | |
1397 added 3 changesets with 3 changes to 3 files | |
1398 calling hook pretxnchangegroup.acl: hgext.acl.hook | |
1399 acl: acl.allow enabled, 1 entries for user fred | |
1400 acl: acl.deny not enabled | |
1401 acl: allowing changeset ef1ea85a6374 | |
1402 acl: allowing changeset f9cafe1212c8 | |
1403 acl: allowing changeset 911600dab2ae | |
1404 updating the branch cache | |
1405 rolling back to revision 1 (undo push) | |
1406 0:6675d58eff77 | |
1407 | |
1408 @group is allowed inside anything but foo/Bar/ | |
1409 Pushing as user fred | |
1410 hgrc = """ | |
1411 [acl] | |
1412 sources = push | |
1413 [extensions] | |
1414 [acl.allow] | |
1415 ** = @group1 | |
1416 [acl.deny] | |
1417 foo/Bar/** = @group1 | |
1418 """ | |
1419 pushing to ../b | |
1420 searching for changes | |
1421 common changesets up to 6675d58eff77 | |
1422 invalidating branch cache (tip differs) | |
1423 3 changesets found | |
1424 list of changesets: | |
1425 ef1ea85a6374b77d6da9dcda9541f498f2d17df7 | |
1426 f9cafe1212c8c6fa1120d14a556e18cc44ff8bdd | |
1427 911600dab2ae7a9baff75958b84fe606851ce955 | |
1428 adding changesets | |
1429 bundling changes: 0 chunks | |
1430 bundling changes: 1 chunks | |
1431 bundling changes: 2 chunks | |
1432 bundling changes: 3 chunks | |
1433 bundling changes: 4 chunks | |
1434 bundling changes: 5 chunks | |
1435 bundling changes: 6 chunks | |
1436 bundling changes: 7 chunks | |
1437 bundling changes: 8 chunks | |
1438 bundling changes: 9 chunks | |
1439 bundling manifests: 0 chunks | |
1440 bundling manifests: 1 chunks | |
1441 bundling manifests: 2 chunks | |
1442 bundling manifests: 3 chunks | |
1443 bundling manifests: 4 chunks | |
1444 bundling manifests: 5 chunks | |
1445 bundling manifests: 6 chunks | |
1446 bundling manifests: 7 chunks | |
1447 bundling manifests: 8 chunks | |
1448 bundling manifests: 9 chunks | |
1449 bundling files: foo/Bar/file.txt 0 chunks | |
1450 bundling files: foo/Bar/file.txt 1 chunks | |
1451 bundling files: foo/Bar/file.txt 2 chunks | |
1452 bundling files: foo/Bar/file.txt 3 chunks | |
1453 bundling files: foo/file.txt 4 chunks | |
1454 bundling files: foo/file.txt 5 chunks | |
1455 bundling files: foo/file.txt 6 chunks | |
1456 bundling files: foo/file.txt 7 chunks | |
1457 bundling files: quux/file.py 8 chunks | |
1458 bundling files: quux/file.py 9 chunks | |
1459 bundling files: quux/file.py 10 chunks | |
1460 bundling files: quux/file.py 11 chunks | |
1461 changesets: 1 chunks | |
1462 add changeset ef1ea85a6374 | |
1463 changesets: 2 chunks | |
1464 add changeset f9cafe1212c8 | |
1465 changesets: 3 chunks | |
1466 add changeset 911600dab2ae | |
1467 adding manifests | |
1468 manifests: 1/3 chunks (33.33%) | |
1469 manifests: 2/3 chunks (66.67%) | |
1470 manifests: 3/3 chunks (100.00%) | |
1471 adding file changes | |
1472 adding foo/Bar/file.txt revisions | |
1473 files: 1/3 chunks (33.33%) | |
1474 adding foo/file.txt revisions | |
1475 files: 2/3 chunks (66.67%) | |
1476 adding quux/file.py revisions | |
1477 files: 3/3 chunks (100.00%) | |
1478 added 3 changesets with 3 changes to 3 files | |
1479 calling hook pretxnchangegroup.acl: hgext.acl.hook | |
1480 acl: acl.allow enabled, 1 entries for user fred | |
1481 acl: acl.deny enabled, 1 entries for user fred | |
1482 acl: allowing changeset ef1ea85a6374 | |
1483 acl: user fred denied on foo/Bar/file.txt | |
1484 error: pretxnchangegroup.acl hook failed: acl: access denied for changeset f9cafe1212c8 | |
1485 transaction abort! | |
1486 rollback completed | |
1487 abort: acl: access denied for changeset f9cafe1212c8 | |
1488 no rollback information available | |
1489 0:6675d58eff77 | |
1490 |