public override void RegisterRealTasks(PhysicalServer site)
        {
            var path = PathConverter.Convert(site, _path);

            var task = new ClearAclsTask(path, _groupsToPreserve, _groupsToRemove);
            site.AddTask(task);
        }
Exemplo n.º 2
0
 public override void Context()
 {
     base.Context();
     if (Directory.Exists(path)) Directory.Delete(path);
     Directory.CreateDirectory(path);
     var createUser = new GrantReadWriteTask(path, WellKnownSecurityRoles.CurrentUser, new DotNetPath());
     result = createUser.Execute();
     Assert.AreEqual(false, result.ContainsError());
     var groupsToPreserve = new System.Collections.Generic.List<string>
     {
         WellKnownSecurityRoles.CurrentUser
     };
     task = new ClearAclsTask(path, groupsToPreserve, null);
 }
Exemplo n.º 3
0
 public override void Context()
 {
     base.Context();
     if (Directory.Exists(path)) Directory.Delete(path);
     Directory.CreateDirectory(path);
     var createUser = new GrantReadWriteTask(path, WellKnownSecurityRoles.CurrentUser, new DotNetPath());
     result = createUser.Execute();
     Assert.AreEqual(false, result.ContainsError());
     task = new ClearAclsTask(path, null, null);
 }