Example #1
0
      function testBusy ()
      {
	$PollMessage = new PollTransferResponse(REGISTRY_RESPONSE_STATUS::SUCCESS);
	$PollMessage->HostName = 'buerex.ch';
	$PollMessage->TransferStatus = TRANSFER_STATUS::APPROVED;
	$this->registry->DispatchPollTransfer($PollMessage);
      	
      	
      	return;
      	
      	// Fucked up domain.
      	
      	$Domain = $this->registry->NewDomainInstance();
      	$Domain->Name = 'rest-rosengarten';
      	$Domain->AuthCode = '%mQGtyNk6';
      	$Domain->SetNameserverList(array(
      		new Nameserver('ns1.setup.ch'),
      		new Nameserver('ns2.setup.ch'),
      		new Nameserver('ns3.setup.ch')
      	));
      	
      	$Contact = $this->registry->NewContactInstance(CONTACT_TYPE::REGISTRANT);
      	$Contact->CLID = 'N74158532';
      	$Domain->SetContact($Contact, CONTACT_TYPE::REGISTRANT);
      	
      	$Contact = $this->registry->NewContactInstance(CONTACT_TYPE::REGISTRANT);
      	$Contact->CLID = 'L22589790';
      	$Domain->SetContact($Contact, CONTACT_TYPE::TECH);
      	
     	
      	$Module = $this->registry->GetModule();
      	
      	$Resp = $Module->CreateDomain($Domain, 1);
      	print_r($Resp);
      	return;
      	
      	
      	/*
      	$Module->Request('domain-update-contact', array(
      		'name' => 'wellnessbad.ch',
      		'add' => '<domain:add><domain:contact type="tech">L22589790</domain:contact></domain:add>',
      		'rem' => '<domain:rem><domain:contact type="tech">11934643</domain:contact></domain:rem>',
      		'change' => ''
      	));
      	*/
      	
      	//$Contact = $this->registry->NewContactInstance(CONTACT_TYPE::REGISTRANT);
      	//$Contact->CLID = 'L22589790';
      	//$this->registry->GetRemoteContact($Contact);
      	//$DbContact->Save($Contact);
      }
Example #2
0
 function testIngoingTransferEU ()
 {
 	$module = new RRPPRoxyRegistryModuleMockup();
 	$registry = new Registry($module);
 	
 	$poll_resp = new PollTransferResponse(REGISTRY_RESPONSE_STATUS::SUCCESS);
 	$poll_resp->HostName = "temptationloft.eu";
 	$poll_resp->TransferStatus  = TRANSFER_STATUS::APPROVED;
 	
 	$registry->DispatchPollTransfer($poll_resp);
 }