Exemplo n.º 1
0
 /**
  * @param Model $Model
  *
  * @depends testGetList
  */
 public function testLogs(Model $Model)
 {
     $this->mockResponse(200, '{
         "type": "log",
         "log": "Log line from the service",
         "streamType": "stdout",
         "timestamp": 1433779324
     }');
     $API = new API();
     $API->logs($Model->getUuid());
 }
Exemplo n.º 2
0
 /**
  * Only update linked_to_service field so the DockerCloud API won't prompt need to redeploy
  *
  * @param Model $Model
  *
  * @return Model
  * @throws \DockerCloud\Exception
  */
 public function updateLinkedToService(Model $Model)
 {
     return new Model($this->getClient()->request('PATCH', $this->getAPINameSpace() . $Model->getUuid() . '/', ['body' => Json::encode(['linked_to_service' => $Model->getLinkedToService()])]));
 }