/**
  * 
  * Tests all ps2 services for the given:
  * @var array $partnerData
  * @dataProvider provideData
  */
 public function testAllPS2Services(array $partnerData)
 {
     //TODO: finish this test!
     return;
     //Go over all SP2 services and see that we get the result (run after consulidation)
     //As all the ps2 services gets a puser_kuser as parameter.
     $ps2ActionsFolderPath = "C:/opt/kaltura/app/alpha/apps/kaltura/modules/partnerservices2/actions";
     chdir($ps2ActionsFolderPath);
     $ks = PS2Helper::getKs($partnerData["secret"], $partnerData["userId"], KalturaSessionType::ADMIN, $partnerData["partnerId"]);
     print $ks;
     return;
     foreach (glob("*.php") as $ps2FileName) {
         //now get just the PS2 service name
         $ps2ActionArray = explode(".", $ps2FileName);
         $actionName = $ps2ActionArray[0];
         $actionName = str_replace("Action", "", $actionName);
         $params = array('user_id' => 1, "partner_id" => $partnerData["partnerId"], "secret" => $partnerData["secret"]);
         var_dump($partnerData["partnerId"]);
         $ks = "ZjA3N2I1ZTUxZWM0ZDg2MTQ3M2Y1NTg4YmUzNWQ1NWFhYTFmZTM1NXwtMjstMjsxMzAwMzgyNjcyOzI7MTMwMDI5NjI3Mi43NTIxO2FkbWluQGthbHR1cmEuY29tOyo7Ow==";
         $result = PS2Helper::doHttpRequest($actionName, $params, $ks);
         print var_dump($result) . "\n";
         print $actionName . "\n";
     }
 }
 /**
  * 
  * Lists all users using PS2
  */
 public static function ps2ListUsers()
 {
     return PS2Helper::doHttpRequest('listuser', array());
 }