Page MenuHomeDevCentral

PaaSDockerTest.php
No OneTemporary

PaaSDockerTest.php

<?php
namespace Nasqueron\Infrastructure\ProductionTests;
use PHPUnit\Framework\TestCase;
use Nasqueron\Infrastructure\OperationsConfiguration;
class PaaSDockerTest extends TestCase {
use WithAssertHttp;
/**
* @dataProvider provideDockerDomains
*
* @param string $domain A domain declared in the PaaS Docker configuration
* as an HTTP upstream block for a Docker container
*/
public function test502Pages (string $domain) : void {
$url = "https://$domain/502.html";
$this->assertHttpResponseCode(200, $url, "A 502 page is missing for $domain");
}
public function provideDockerDomains () : iterable {
$domains = OperationsConfiguration::getDockerDomains();
foreach ($domains as $domain) {
yield [$domain];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Oct 11, 21:24 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4171166
Default Alt Text
PaaSDockerTest.php (844 B)

Event Timeline