Пример #1
0
 /**
  * @AfterScenario @deletePod
  */
 public function deletePod()
 {
     if (null !== $this->pod) {
         $repository = $this->getRepository();
         $repository->delete($this->pod);
         do {
             $exists = $repository->exists($this->pod->getMetadata()->getName());
         } while ($this->clientContext->isIntegration() && $exists && sleep(1) == 0);
     }
 }
Пример #2
0
 /**
  * Get pod's logs.
  *
  * @param Pod $pod
  *
  * @return string
  */
 private function getLogs(Pod $pod)
 {
     $name = $pod->getMetadata()->getName();
     return $this->connector->get($this->namespaceClient->prefixPath(sprintf('/pods/%s/log', $name)));
 }