/** * @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()); }
/** * 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()])])); }