Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F53429457
PaaSDockerTest.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
844 B
Referenced Files
None
Subscribers
None
PaaSDockerTest.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rTESTSPRODENV Test suite for operations: prod-environment-behaves-correctly
Attached
Detach File
Event Timeline
Log In to Comment