{"action":"created","comment":{"url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/comments/74685609","id":74685609,"diff_hunk":"@@ -8,385 +10,322 @@ function Stop-Pester($message = \"EMERGENCY: Script cannot continue.\")\n \t$PSCmdlet.ThrowTerminatingError($e);\n }\n \n-Describe -Tags \"Acl.Tests\" \"Acl.Tests\" {\n+Describe -Tags \"Acl_Ace.Tests\" \"Acl_Ace.Tests\" {\n \n-\tMock Export-ModuleMember { return $null; }\n-\t\n+\tMock Export-ModuleMember { return $null; }\t\n \t. \"$here\\$sut\"\n \t\n+\t$entityPrefix = \"TestItem-\";\n+\t$usedEntitySets = @(\"Nodes\", \"Aces\", \"Acls\");\n+\t$nodeEntityKindId = [biz.dfch.CS.Appclusive.Public.Constants+EntityKindId]::Node.value__;\n+\t$nodeParentId = (Get-ApcTenant -Current).NodeId;\n+\t\n \tContext \"#CLOUDTCL-1871-AclTests\" {\n \t\t\n \t\tBeforeEach {\n \t\t\t$moduleName = 'biz.dfch.PS.Appclusive.Client';\n \t\t\tRemove-Module $moduleName -ErrorAction:SilentlyContinue;\n \t\t\tImport-Module $moduleName;\n-\t\t\t$svc = Enter-ApcServer;\n+\t\t\t$svc = Enter-Appclusive;\n \t\t}\n \t\t\n-\t\tIt \"Acl-CreateAndDeleteAcl\" -Test {\n-\t\t\ttry {\n-\t\t\t\t# Arrange\n-\t\t\t\t$aclName = \"Test Acl\";\n-\t\t\t\t$aclDescription = \"TestAcl used in Test\";\t\t\n-\t\t\t\t$acl = CreateAcl -aclName $aclName -aclDescription $aclDescription;\t\n-\t\t\t\t\n-\t\t\t\t# Act\n-\t\t\t\t$svc.Core.AddToAcls($acl);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert\t\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$acl.Id | Should Not Be 0;\n-\t\t\t} \n-\t\t\tfinally {\n-\t\t\t\t#Cleanup\n-\t\t\t\t$svc.Core.DeleteObject($acl);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t}\n+\t\tAfterEach {\n+            $svc = Enter-Appclusive;\n+            $entityFilter = \"startswith(Name, '{0}')\" -f $entityPrefix;\n+\n+            foreach ($entitySet in $usedEntitySets)\n+            {\n+                $entities = $svc.Core.$entitySet.AddQueryOption('$filter', $entityFilter) | Select;\n+         \n+                foreach ($entity in $entities)\n+                {\n+                    Remove-ApcEntity -svc $svc -Id $entity.Id -EntitySetName $entitySet -Confirm:$false;\n+                }\n+            }\n+        }\n+\t\t\n+\t\tIt \"Acl-CreateAndDelete\" -Test {\n+\t\t\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and entityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n+\t\t\t\n+\t\t\t#ACT - delete acl\n+\t\t\tDelete-Acl -svc $svc -aclId $aclId;\n \t\t}\n \t\t\n-\t\tIt \"Acl-UpdateNameDescripton\" -Test {\n-\t\t\ttry {\n-\t\t\t\t# Create Acl\n-\t\t\t\t$aclName = \"Test Acl\";\n-\t\t\t\t$aclDescription = \"TestNode used in Test\";\t\t\n-\t\t\t\t$acl = CreateAcl -aclName $aclName -aclDescription $aclDescription;\t\n-\t\t\t\t$svc.Core.AddToAcls($acl);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$acl.Id | Should Not Be 0;\n-\t\t\t\t\n-\t\t\t\t# Arrange\n-\t\t\t\t$aclSetName\t= \"Updated\";\n-\t\t\t\t$aclSetDescription = \"Updated\";\n-\t\t\t\t$acl.Name = $aclSetName;\n-\t\t\t\t$acl.Description = $aclSetDescription;\n+\t\tIt \"Acl-UpdateNameAndDescripton\" -Test {\n+\t\t\t\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t$newAclName = $aclName + \"Updated\";\n+\t\t\t$newAclDescription = \"Updated Description\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and EntityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t$nodeEntityKindId = $newNode.EntityKindId;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n \t\t\t\t\t\t\t\t\n-\t\t\t\t# Act\n-\t\t\t\t$svc.Core.UpdateObject($acl)\n-\t\t\t\t$result = $svc.core.SaveChanges();\t\n-\t\t\t\t\n-\t\t\t\t# Assert\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t\t$aclCheck = $svc.Core.Acls.AddQueryOption('$filter', (\"Id eq {0}\" -f $acl.Id));\n-\t\t\t\t$aclCheck.Name | Should Be $aclSetName;\n-\t\t\t\t$aclCheck.Description | Should Be $aclSetDescription;\n-\t\t\t} \n-\t\t\tfinally {\n-\t\t\t\t#Cleanup\n-\t\t\t\t$svc.Core.DeleteObject($acl);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n+\t\t\t#ACT update acl\n+\t\t\t$updatedAcl = Update-Acl -svc $svc -aclId $aclId -newAclName $newAclName -newAclDescription $newAclDescription;\n \t\t\t}\n-\t\t}\n \t\t\n-\t\tIt \"Acl-DeleteWithoutAttachedAce-ThrewException\" -Test {\n-\t\t\ttry {\n-\t\t\t\t# Arrange Create Acl\n-\t\t\t\t$aclName = \"Test Acl\";\n-\t\t\t\t$aclDescription = \"TestNode used in Test\";\t\t\n-\t\t\t\t$acl = CreateAcl -aclName $aclName -aclDescription $aclDescription;\t\n-\t\t\t\t\n-\t\t\t\t# Act Create Acl\n-\t\t\t\t$svc.Core.AddToAcls($acl);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert Create Acl\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$acl.Id | Should Not Be 0;\n-\t\t\t\t\n-\t\t\t\t# Arrange Create Ace\n-\t\t\t\t$aceName = \"Test Ace\"\n-\t\t\t\t$aceDescription = \"Ace used in tests\"\n-\t\t\t\t$aceAclId = $acl.Id;\n-\t\t\t\t$aceAction = \"ALLOW\";\n-\t\t\t\t\n-\t\t\t\t$ace = CreateAce -aceName $aceName -aceDescription $aceDescription -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t\n-\t\t\t\t# Act Create Ace\n-\t\t\t\t$svc.Core.AddToAces($ace);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert Create Ace\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$ace.Id | Should Not Be 0;\n-\t\t\t\t\n-\t\t\t\t# Arrange Delete\n-\t\t\t\t$svc.Core.DeleteObject($acl);\n-\t\t\t\t\n-\t\t\t\t# Delete threw exception\n-\t\t\t\ttry {\n-\t\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t\t}\n-\t\t\t\tcatch {\n-\t\t\t\t\t$threwException = $true;\n-\t\t\t\t}\n-\t\t\t\t\n-\t\t\t\t# Assert\n-\t\t\t\t$threwException | Should Be $true;\n-\t\t\t} \n-\t\t\tfinally {\n-\t\t\t\t# Relogin and bind objects\n-\t\t\t\t$svc = Enter-ApcServer;\n-\t\t\t\t$svc.Core.AttachTo('Acls', $acl);\n-\t\t\t\t$svc.Core.AttachTo('Aces', $ace);\n-\n-\t\t\t\t#Cleanup\t\n-\t\t\t\t$svc.Core.DeleteObject($ace);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n+\t\tIt \"Acl-DeleteAclThatIsReferencedOnAce\" -Test {\n+\t\t\t\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t$aceName = $entityPrefix + \"Ace\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and EntityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t$nodeEntityKindId = $newNode.EntityKindId;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n+\t\t\t\n+\t\t\t#ACT Create Ace\n+\t\t\t$ace = Create-Ace -svc $svc -aceName $aceName -aclId $aclId | select;\n+\t\t\t\n+\t\t\t#get the Id of the ace\n+\t\t\t$aceId = $ace.Id;\n+\t\t\t\n+\t\t\ttry\n+\t\t\t{\n+\t\t\t\t#ARRANGE get the acl\n+\t\t\t\t$query = \"Id eq {0}\" -f $aclId;\n+\t\t\t\t$acl = $svc.Core.Acls.AddQueryOption('$filter', $query) | select;\n \t\t\t\t\n-\t\t\t\t#Cleanup\n+\t\t\t\t#ACT Delete acl\n \t\t\t\t$svc.Core.DeleteObject($acl);\n \t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n+\t\t\t}\n+\t\t\t\n+\t\t\tcatch \n+\t\t\t{\n+\t\t\t\t$(Format-ApcException) | Should Not Be $null;\n \t\t\t}\n \t\t}\n \t\t\n \t\tIt \"Acl-GetAcesOfAcl\" {\n-\t\t\ttry {\n-\t\t\t\t# Create Acl for Ace tests\n-\t\t\t\t$aclName = \"Test Acl for Ace tests\";\n-\t\t\t\t$aclDescription = \"TestNode used in Test\";\t\t\n-\t\t\t\t$acl = CreateAcl -aclName $aclName -aclDescription $aclDescription;\t\n-\t\t\t\t$svc.Core.AddToAcls($acl);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$acl.Id | Should Not Be 0;\n-\t\t\t\n-\t\t\t\t# Arrange Create Ace\n-\t\t\t\t$aceName1 = \"Test Ace One\"\n-\t\t\t\t$aceDescription1 = \"Ace used in tests (one)\"\n-\t\t\t\t$aceName2 = \"Test Ace Two\"\n-\t\t\t\t$aceDescription1 = \"Ace used in tests (two)\"\n-\t\t\t\t$aceAclId = $acl.Id;\n-\t\t\t\t$aceAction = \"ALLOW\";\n-\t\t\t\t\n-\t\t\t\t$ace1 = CreateAce -aceName $aceName1 -aceDescription $aceDescription1 -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t$ace2 = CreateAce -aceName $aceName2 -aceDescription $aceDescription2 -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t\n-\t\t\t\t# Act Create Ace\n-\t\t\t\t$svc.Core.AddToAces($ace1);\n-\t\t\t\t$result1 = $svc.core.SaveChanges();\n-\t\t\t\t$svc.Core.AddToAces($ace2);\n-\t\t\t\t$result2 = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert Create Ace\n-\t\t\t\t$result1.StatusCode | Should be 201;\n-\t\t\t\t$ace1.Id | Should Not Be 0;\n-\t\t\t\t$result2.StatusCode | Should be 201;\n-\t\t\t\t$ace2.Id | Should Not Be 0;\n-\t\t\t\t$ace1.Id | Should Not Be $ace2.Id;\n-\t\t\t\t\n-\t\t\t\t#Act Select Ace of Acl\n-\t\t\t\t$acesOfAcl = $svc.Core.LoadProperty($acl, 'Aces') | Select\n-\t\t\t\t$acesOfAcl.Id -contains $ace1.Id | Should be $True;\n-\t\t\t\t$acesOfAcl.Id -contains $ace2.Id | Should be $True;\n-\t\t\t} \t\t\t\n-\t\t\tFinally {\n-\t\t\t\t#Cleanup\t\n-\t\t\t\t$svc.Core.DeleteObject($ace1);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t\t\n-\t\t\t\t$svc.Core.DeleteObject($ace2);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t\t\n-\t\t\t\t$svc.Core.DeleteObject($acl);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t}\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t$aceName1 = $entityPrefix + \"Ace1\";\n+\t\t\t$aceName2 = $entityPrefix + \"Ace2\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and EntityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t$nodeEntityKindId = $newNode.EntityKindId;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n+\t\t\t\t\t\t\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n+\t\t\t\n+\t\t\t#ACT Create 2 Aces that reference the Acl\n+\t\t\t$ace1 = Create-Ace -svc $svc -aceName $aceName1 -aclId $aclId | select;\n+\t\t\t$ace2 = Create-Ace -svc $svc -aceName $aceName2 -aclId $aclId | select;\n+\t\t\t\n+\t\t\t$acesOfAcl = $svc.Core.LoadProperty($acl, 'Aces') | Select;\n+\t\t\t\n+\t\t\t#ASSERT\n+\t\t\t$acesOfAcl.Id -contains $ace1.Id | Should be $True;\n+\t\t\t$acesOfAcl.Id -contains $ace2.Id | Should be $True;\n \t\t}\n \t}\n \t\n+\t\n \tContext \"#CLOUDTCL-1872-AceTests\" {\n+\t\t\n \t\tBeforeEach {\n \t\t\t$moduleName = 'biz.dfch.PS.Appclusive.Client';\n \t\t\tRemove-Module $moduleName -ErrorAction:SilentlyContinue;\n \t\t\tImport-Module $moduleName;\n-\t\t\t$svc = Enter-ApcServer;\n-\t\t\t\n-\t\t\t# Create Acl for Ace tests\n-\t\t\t$aclName = \"Test Acl for Ace tests\";\n-\t\t\t$aclDescription = \"TestNode used in Test\";\t\t\n-\t\t\t$acl = CreateAcl -aclName $aclName -aclDescription $aclDescription;\t\n-\t\t\t$svc.Core.AddToAcls($acl);\n-\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t$acl.Id | Should Not Be 0;\n-\t\t\t\n-\t\t\t$result = $null;\n+\t\t\t$svc = Enter-Appclusive;\n \t\t}\n \t\t\n \t\tAfterEach {\n-\t\t\t# Cleanup Acl\n-\t\t\t$svc = Enter-ApcServer;\n-\t\t\t$svc.Core.AttachTo('Acls', $acl);\n-\t\t\t$svc.Core.DeleteObject($acl);\n-\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t$result.StatusCode | Should Be 204;\n-\t\t}\n+            $svc = Enter-Appclusive;\n+            $entityFilter = \"startswith(Name, '{0}')\" -f $entityPrefix;\n \n+            foreach ($entitySet in $usedEntitySets)\n+            {\n+                $entities = $svc.Core.$entitySet.AddQueryOption('$filter', $entityFilter) | Select;\n+         \n+                foreach ($entity in $entities)\n+                {\n+                    Remove-ApcEntity -svc $svc -Id $entity.Id -EntitySetName $entitySet -Confirm:$false;\n+                }\n+            }\n+        }\n+\t\t\n \t\tIt \"Ace-CreateAndDeleteAce\" -Test {\n-\t\t\ttry {\n-\t\t\t\t# Arrange\n-\t\t\t\t$aceName = \"Test Ace\"\n-\t\t\t\t$aceDescription = \"Ace used in tests\"\n-\t\t\t\t$aceAclId = $acl.Id;\n-\t\t\t\t$aceAction = \"ALLOW\";\n-\t\t\t\t\n-\t\t\t\t$ace = CreateAce -aceName $aceName -aceDescription $aceDescription -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t\n-\t\t\t\t# Act\n-\t\t\t\t$svc.Core.AddToAces($ace);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$ace.Id | Should Not Be 0;\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t$aceName = $entityPrefix + \"Ace\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and EntityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t$nodeEntityKindId = $newNode.EntityKindId;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n \t\t\t\t\n-\t\t\t} \t\t\t\n-\t\t\tFinally {\n-\t\t\t\t#Cleanup\t\n-\t\t\t\t$svc.Core.DeleteObject($ace);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t}\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n+\t\t\t\n+\t\t\t#ACT Create Ace\n+\t\t\t$ace = Create-Ace -svc $svc -aceName $aceName -aclId $aclId | select;\n+\t\t\t\n+\t\t\t#get the Id of the ace\n+\t\t\t$aceId = $ace.Id;\n+\t\t\t\n+\t\t\t#ACT Delete Ace\n+\t\t\tDelete-Ace -svc $svc -aceId $aceId;\n \t\t}\n \t\t\n \t\tIt \"Ace-UpdateNameDescription\" -Test {\n-\t\t\ttry {\n-\t\t\t\t# Arrange Create\n-\t\t\t\t$aceName = \"Test Ace\"\n-\t\t\t\t$aceDescription = \"Ace used in tests\"\n-\t\t\t\t$aceAclId = $acl.Id;\n-\t\t\t\t$aceAction = \"ALLOW\";\n-\t\t\t\t\n-\t\t\t\t$ace = CreateAce -aceName $aceName -aceDescription $aceDescription -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t\n-\t\t\t\t# Act Create\n-\t\t\t\t$svc.Core.AddToAces($ace);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert Create\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$ace.Id | Should Not Be 0;\n-\t\t\t\t\n-\t\t\t\t# Arrange Update\n-\t\t\t\t$aceSetName = \"Updated\"\n-\t\t\t\t$aceSetDescription = \"Ace used in tests (updated)\"\n-\t\t\t\t$ace.Name = $aceSetName;\n-\t\t\t\t$ace.Description = $aceSetDescription;\n-\t\t\t\t\t\t\t\t\n-\t\t\t\t# Act\n-\t\t\t\t$svc.Core.UpdateObject($ace)\n-\t\t\t\t$result = $svc.core.SaveChanges();\t\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t$aceName = $entityPrefix + \"Ace\";\n+\t\t\t$newAceName = $aclName + \"Updated\";\n+\t\t\t$newAceDescription = \"Updated Description\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and EntityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t$nodeEntityKindId = $newNode.EntityKindId;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n \t\t\t\t\n-\t\t\t\t# Assert\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t\t$aceCheck = $svc.Core.Aces.AddQueryOption('$filter', (\"Id eq {0}\" -f $ace.Id));\n-\t\t\t\t$aceCheck.Name | Should Be $aceSetName;\n-\t\t\t\t$aceCheck.Description | Should Be $aceSetDescription;\n-\t\t\t} \t\t\t\n-\t\t\tFinally {\n-\t\t\t\t#Cleanup\t\n-\t\t\t\t$svc.Core.DeleteObject($ace);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t}\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n+\t\t\t\n+\t\t\t#ACT Create Ace\n+\t\t\t$ace = Create-Ace -svc $svc -aceName $aceName -aclId $aclId | select;\n+\t\t\t\n+\t\t\t#get the Id of the ace\n+\t\t\t$aceId = $ace.Id;\n+\t\t\t\n+\t\t\t#ACT Update Name & Description of Ace\n+\t\t\t$updatedAce = Update-Ace -svc $svc -aceId $aceId -newAceName $newAceName -newAceDescription $newAceDescription;\n \t\t}\n \t\t\n-\t\tIt \"Ace-CreateAceWithoutAclReferenz-ThrewException\" -Test {\n-\t\t\t# Arrange\n-\t\t\t$aceName = \"Test Ace\"\n-\t\t\t$aceDescription = \"Ace used in tests\"\n-\t\t\t$aceAction = \"ALLOW\";\n-\t\t\t\n-\t\t\t$ace = CreateAce -aceName $aceName -aceDescription $aceDescription -aceAction $aceAction;\n-\t\t\t$svc.Core.AddToAces($ace);\n-\t\t\t\n-\t\t\ttry {\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t} catch {\n-\t\t\t\t$threwException = $true;\n-\t\t\t}\n+\t\tIt \"Ace-CreateAceWithoutAclReferenceShouldThrowException\" -Test {\n+\t\t\t#ARRANGE ace without Acl Id \n+\t\t\t$aceName = $entityPrefix + \"Ace\";\n \t\t\t\n-\t\t\t# Assert\n-\t\t\t$threwException | Should Be $true;\t\t\n+\t\t\t#ACT try to create the ace\n+\t\t\ttry \n+\t\t\t{\n+\t\t\t\t$ace = Create-Ace -svc $svc -aceName $aceName -aclId \"\" | select;\n+\t\t\t} \n+\t\t\t\n+\t\t\tcatch \n+\t\t\t{\n+\t\t\t\t$(Format-ApcException) | Should Not Be $null;\n+\t\t\t\t$_.Exception.Message | Should Not Be $null;\n+\t\t\t\t$_.FullyQualifiedErrorId | Should Not Be $null;\n+\t\t\t}\n \t\t}\n \t\t\n \t\tIt \"Ace-CreateTwoAcesToOneAcl\" {\n-\t\t\ttry {\n-\t\t\t\t# Arrange\n-\t\t\t\t$aceName1 = \"Test Ace One\"\n-\t\t\t\t$aceDescription1 = \"Ace used in tests (one)\"\n-\t\t\t\t$aceName2 = \"Test Ace Two\"\n-\t\t\t\t$aceDescription1 = \"Ace used in tests (two)\"\n-\t\t\t\t$aceAclId = $acl.Id;\n-\t\t\t\t$aceAction = \"ALLOW\";\n-\t\t\t\t\n-\t\t\t\t$ace1 = CreateAce -aceName $aceName1 -aceDescription $aceDescription1 -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t$ace2 = CreateAce -aceName $aceName2 -aceDescription $aceDescription2 -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t\n-\t\t\t\t# Act\n-\t\t\t\t$svc.Core.AddToAces($ace1);\n-\t\t\t\t$result1 = $svc.core.SaveChanges();\n-\t\t\t\t$svc.Core.AddToAces($ace2);\n-\t\t\t\t$result2 = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert\n-\t\t\t\t$result1.StatusCode | Should be 201;\n-\t\t\t\t$ace1.Id | Should Not Be 0;\n-\t\t\t\t$result2.StatusCode | Should be 201;\n-\t\t\t\t$ace2.Id | Should Not Be 0;\n-\t\t\t\t$ace1.Id | Should Not Be $ace2.Id;\n-\t\t\t\t\n-\t\t\t} \t\t\t\n-\t\t\tFinally {\n-\t\t\t\t#Cleanup\t\n-\t\t\t\t$svc.Core.DeleteObject($ace1);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t\t\n-\t\t\t\t$svc.Core.DeleteObject($ace2);\n-\t\t\t\t$result = $svc.Core.SaveChanges();\n-\t\t\t\t$result.StatusCode | Should Be 204;\n-\t\t\t}\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t$aceName1 = $entityPrefix + \"Ace1\";\n+\t\t\t$aceName2 = $entityPrefix + \"Ace2\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and EntityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t$nodeEntityKindId = $newNode.EntityKindId;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n+\t\t\t\n+\t\t\t#ACT Create 2 Aces that reference the Acl\n+\t\t\t$ace1 = Create-Ace -svc $svc -aceName $aceName1 -aclId $aclId | select;\n+\t\t\t$ace2 = Create-Ace -svc $svc -aceName $aceName2 -aclId $aclId | select;\n \t\t}\n \t\t\n \t\tIt \"Ace-GetAclOfAce\" -Test {\n-\t\t\ttry {\n-\t\t\t\t# Arrange Create Ace\n-\t\t\t\t$aceName = \"Test Ace\"\n-\t\t\t\t$aceDescription = \"Ace used in tests\"\n-\t\t\t\t$aceAclId = $acl.Id;\n-\t\t\t\t$aceAction = \"ALLOW\";\n-\t\t\t\t\n-\t\t\t\t$ace = CreateAce -aceName $aceName -aceDescription $aceDescription -aceAclId $aceAclId -aceAction $aceAction;\t\n-\t\t\t\t\n-\t\t\t\t# Act Create Ace\n-\t\t\t\t$svc.Core.AddToAces($ace);\n-\t\t\t\t$result = $svc.core.SaveChanges();\n-\t\t\t\t\n-\t\t\t\t# Assert Create Ace\n-\t\t\t\t$result.StatusCode | Should be 201;\n-\t\t\t\t$ace.Id | Should Not Be 0;\n+\t\t\t#ARRANGE\n+\t\t\t$nodeName = $entityPrefix + \"newtestnode\";\n+\t\t\t$aclName = $entityPrefix + \"Acl\";\n+\t\t\t$aceName = $entityPrefix + \"Ace\";\n+\t\t\t\n+\t\t\t#ACT create node\n+\t\t\t$newNode = New-ApcNode -Name $nodeName -ParentId $nodeParentId -EntityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id and EntityKindId of the node\n+\t\t\t$nodeId = $newNode.Id;\n+\t\t\t$nodeEntityKindId = $newNode.EntityKindId;\n+\t\t\t\n+\t\t\t#ACT create acl\n+\t\t\t$acl = Create-Acl -svc $svc -aclName $aclName -entityId $nodeId -entityKindId $nodeEntityKindId | select;\n+\t\t\t\n+\t\t\t#get Id of the acl\n+\t\t\t$aclId = $acl.Id;\n+\t\t\t\n+\t\t\t#ACT Create Ace\n+\t\t\t$ace = Create-Ace -svc $svc -aceName $aceName -aclId $aclId | select;","path":"it/Acl_Ace.Tests.ps1","position":225,"original_position":630,"commit_id":"e9d33145b343bb900585ea63376f7b70bd8488ac","original_commit_id":"e9d33145b343bb900585ea63376f7b70bd8488ac","user":{"login":"pbimpisidis","id":18218581,"avatar_url":"https://avatars.githubusercontent.com/u/18218581?v=3","gravatar_id":"","url":"https://api.github.com/users/pbimpisidis","html_url":"https://github.com/pbimpisidis","followers_url":"https://api.github.com/users/pbimpisidis/followers","following_url":"https://api.github.com/users/pbimpisidis/following{/other_user}","gists_url":"https://api.github.com/users/pbimpisidis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbimpisidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbimpisidis/subscriptions","organizations_url":"https://api.github.com/users/pbimpisidis/orgs","repos_url":"https://api.github.com/users/pbimpisidis/repos","events_url":"https://api.github.com/users/pbimpisidis/events{/privacy}","received_events_url":"https://api.github.com/users/pbimpisidis/received_events","type":"User","site_admin":false},"body":"removed","created_at":"2016-08-13T11:09:21Z","updated_at":"2016-08-13T11:09:21Z","html_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client/pull/39#discussion_r74685609","pull_request_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/comments/74685609"},"html":{"href":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client/pull/39#discussion_r74685609"},"pull_request":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39","id":80797105,"html_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client/pull/39","diff_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client/pull/39.diff","patch_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client/pull/39.patch","issue_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/39","number":39,"state":"open","locked":false,"title":"Feature/#37 update acl test","user":{"login":"pbimpisidis","id":18218581,"avatar_url":"https://avatars.githubusercontent.com/u/18218581?v=3","gravatar_id":"","url":"https://api.github.com/users/pbimpisidis","html_url":"https://github.com/pbimpisidis","followers_url":"https://api.github.com/users/pbimpisidis/followers","following_url":"https://api.github.com/users/pbimpisidis/following{/other_user}","gists_url":"https://api.github.com/users/pbimpisidis/gists{/gist_id}","starred_url":"https://api.github.com/users/pbimpisidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbimpisidis/subscriptions","organizations_url":"https://api.github.com/users/pbimpisidis/orgs","repos_url":"https://api.github.com/users/pbimpisidis/repos","events_url":"https://api.github.com/users/pbimpisidis/events{/privacy}","received_events_url":"https://api.github.com/users/pbimpisidis/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-10T13:48:42Z","updated_at":"2016-08-13T11:09:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"432987f5ab8be2295dfeb51003e8aec23f9a22f2","assignee":{"login":"rufer7","id":5937292,"avatar_url":"https://avatars.githubusercontent.com/u/5937292?v=3","gravatar_id":"","url":"https://api.github.com/users/rufer7","html_url":"https://github.com/rufer7","followers_url":"https://api.github.com/users/rufer7/followers","following_url":"https://api.github.com/users/rufer7/following{/other_user}","gists_url":"https://api.github.com/users/rufer7/gists{/gist_id}","starred_url":"https://api.github.com/users/rufer7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rufer7/subscriptions","organizations_url":"https://api.github.com/users/rufer7/orgs","repos_url":"https://api.github.com/users/rufer7/repos","events_url":"https://api.github.com/users/rufer7/events{/privacy}","received_events_url":"https://api.github.com/users/rufer7/received_events","type":"User","site_admin":false},"assignees":[{"login":"rufer7","id":5937292,"avatar_url":"https://avatars.githubusercontent.com/u/5937292?v=3","gravatar_id":"","url":"https://api.github.com/users/rufer7","html_url":"https://github.com/rufer7","followers_url":"https://api.github.com/users/rufer7/followers","following_url":"https://api.github.com/users/rufer7/following{/other_user}","gists_url":"https://api.github.com/users/rufer7/gists{/gist_id}","starred_url":"https://api.github.com/users/rufer7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rufer7/subscriptions","organizations_url":"https://api.github.com/users/rufer7/orgs","repos_url":"https://api.github.com/users/rufer7/repos","events_url":"https://api.github.com/users/rufer7/events{/privacy}","received_events_url":"https://api.github.com/users/rufer7/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39/commits","review_comments_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39/comments","review_comment_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/39/comments","statuses_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/statuses/e9d33145b343bb900585ea63376f7b70bd8488ac","head":{"label":"dfensgmbh:feature/#37-update-acl-test","ref":"feature/#37-update-acl-test","sha":"e9d33145b343bb900585ea63376f7b70bd8488ac","user":{"login":"dfensgmbh","id":8310404,"avatar_url":"https://avatars.githubusercontent.com/u/8310404?v=3","gravatar_id":"","url":"https://api.github.com/users/dfensgmbh","html_url":"https://github.com/dfensgmbh","followers_url":"https://api.github.com/users/dfensgmbh/followers","following_url":"https://api.github.com/users/dfensgmbh/following{/other_user}","gists_url":"https://api.github.com/users/dfensgmbh/gists{/gist_id}","starred_url":"https://api.github.com/users/dfensgmbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfensgmbh/subscriptions","organizations_url":"https://api.github.com/users/dfensgmbh/orgs","repos_url":"https://api.github.com/users/dfensgmbh/repos","events_url":"https://api.github.com/users/dfensgmbh/events{/privacy}","received_events_url":"https://api.github.com/users/dfensgmbh/received_events","type":"Organization","site_admin":false},"repo":{"id":44050442,"name":"biz.dfch.PS.Appclusive.Client","full_name":"dfensgmbh/biz.dfch.PS.Appclusive.Client","owner":{"login":"dfensgmbh","id":8310404,"avatar_url":"https://avatars.githubusercontent.com/u/8310404?v=3","gravatar_id":"","url":"https://api.github.com/users/dfensgmbh","html_url":"https://github.com/dfensgmbh","followers_url":"https://api.github.com/users/dfensgmbh/followers","following_url":"https://api.github.com/users/dfensgmbh/following{/other_user}","gists_url":"https://api.github.com/users/dfensgmbh/gists{/gist_id}","starred_url":"https://api.github.com/users/dfensgmbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfensgmbh/subscriptions","organizations_url":"https://api.github.com/users/dfensgmbh/orgs","repos_url":"https://api.github.com/users/dfensgmbh/repos","events_url":"https://api.github.com/users/dfensgmbh/events{/privacy}","received_events_url":"https://api.github.com/users/dfensgmbh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client","description":"PowerShell module for the Appclusive Framework and Middleware","fork":false,"url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client","forks_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/forks","keys_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/teams","hooks_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/hooks","issue_events_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/events{/number}","events_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/events","assignees_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/assignees{/user}","branches_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/branches{/branch}","tags_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/tags","blobs_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/statuses/{sha}","languages_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/languages","stargazers_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/stargazers","contributors_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/contributors","subscribers_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/subscribers","subscription_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/subscription","commits_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/contents/{+path}","compare_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/merges","archive_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/downloads","issues_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues{/number}","pulls_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls{/number}","milestones_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/milestones{/number}","notifications_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/labels{/name}","releases_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/releases{/id}","deployments_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/deployments","created_at":"2015-10-11T12:01:02Z","updated_at":"2016-07-23T18:34:59Z","pushed_at":"2016-08-12T15:54:32Z","git_url":"git://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client.git","ssh_url":"git@github.com:dfensgmbh/biz.dfch.PS.Appclusive.Client.git","clone_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client.git","svn_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client","homepage":"http://appclusive.net","size":5126,"stargazers_count":1,"watchers_count":1,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":1,"default_branch":"develop"}},"base":{"label":"dfensgmbh:develop","ref":"develop","sha":"ef1691522e010cb3013edae681ffa9d5668bd67b","user":{"login":"dfensgmbh","id":8310404,"avatar_url":"https://avatars.githubusercontent.com/u/8310404?v=3","gravatar_id":"","url":"https://api.github.com/users/dfensgmbh","html_url":"https://github.com/dfensgmbh","followers_url":"https://api.github.com/users/dfensgmbh/followers","following_url":"https://api.github.com/users/dfensgmbh/following{/other_user}","gists_url":"https://api.github.com/users/dfensgmbh/gists{/gist_id}","starred_url":"https://api.github.com/users/dfensgmbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfensgmbh/subscriptions","organizations_url":"https://api.github.com/users/dfensgmbh/orgs","repos_url":"https://api.github.com/users/dfensgmbh/repos","events_url":"https://api.github.com/users/dfensgmbh/events{/privacy}","received_events_url":"https://api.github.com/users/dfensgmbh/received_events","type":"Organization","site_admin":false},"repo":{"id":44050442,"name":"biz.dfch.PS.Appclusive.Client","full_name":"dfensgmbh/biz.dfch.PS.Appclusive.Client","owner":{"login":"dfensgmbh","id":8310404,"avatar_url":"https://avatars.githubusercontent.com/u/8310404?v=3","gravatar_id":"","url":"https://api.github.com/users/dfensgmbh","html_url":"https://github.com/dfensgmbh","followers_url":"https://api.github.com/users/dfensgmbh/followers","following_url":"https://api.github.com/users/dfensgmbh/following{/other_user}","gists_url":"https://api.github.com/users/dfensgmbh/gists{/gist_id}","starred_url":"https://api.github.com/users/dfensgmbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dfensgmbh/subscriptions","organizations_url":"https://api.github.com/users/dfensgmbh/orgs","repos_url":"https://api.github.com/users/dfensgmbh/repos","events_url":"https://api.github.com/users/dfensgmbh/events{/privacy}","received_events_url":"https://api.github.com/users/dfensgmbh/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client","description":"PowerShell module for the Appclusive Framework and Middleware","fork":false,"url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client","forks_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/forks","keys_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/teams","hooks_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/hooks","issue_events_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/events{/number}","events_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/events","assignees_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/assignees{/user}","branches_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/branches{/branch}","tags_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/tags","blobs_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/statuses/{sha}","languages_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/languages","stargazers_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/stargazers","contributors_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/contributors","subscribers_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/subscribers","subscription_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/subscription","commits_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/contents/{+path}","compare_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/merges","archive_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/downloads","issues_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues{/number}","pulls_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls{/number}","milestones_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/milestones{/number}","notifications_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/labels{/name}","releases_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/releases{/id}","deployments_url":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/deployments","created_at":"2015-10-11T12:01:02Z","updated_at":"2016-07-23T18:34:59Z","pushed_at":"2016-08-12T15:54:32Z","git_url":"git://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client.git","ssh_url":"git@github.com:dfensgmbh/biz.dfch.PS.Appclusive.Client.git","clone_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client.git","svn_url":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client","homepage":"http://appclusive.net","size":5126,"stargazers_count":1,"watchers_count":1,"language":"PowerShell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":18,"forks":0,"open_issues":18,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39"},"html":{"href":"https://github.com/dfensgmbh/biz.dfch.PS.Appclusive.Client/pull/39"},"issue":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/39"},"comments":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/dfensgmbh/biz.dfch.PS.Appclusive.Client/statuses/e9d33145b343bb900585ea63376f7b70bd8488ac"}}}}
{"actor":{"display_login":"pbimpisidis"}}