Scalr\Tests\Functional\Ui\Controller\SshkeysTest::testEnvironment PHP Method

testEnvironment() public method

public testEnvironment ( )
    public function testEnvironment()
    {
        $env = $this->getEnvironment();
        if (!$env->isPlatformEnabled(\SERVER_PLATFORMS::EC2)) {
            $this->markTestSkipped(sprintf("EC2 platform is not enabled."));
        }
        $ccProps = $env->keychain(SERVER_PLATFORMS::EC2)->properties;
        $this->assertNotNull($ccProps[Entity\CloudCredentialsProperty::AWS_ACCESS_KEY]);
        $this->assertNotNull($ccProps[Entity\CloudCredentialsProperty::AWS_SECRET_KEY]);
        $this->assertNotNull($ccProps[Entity\CloudCredentialsProperty::AWS_PRIVATE_KEY]);
        $this->assertNotNull($ccProps[Entity\CloudCredentialsProperty::AWS_CERTIFICATE]);
        //         echo $env->awsAccountNumber . "\n\n";
        //         echo $env->awsAccessKeyId . "\n\n";
        //         echo $env->awsSecretAccessKey . "\n\n";
        //         echo $env->awsCertificate . "\n\n";
        //         echo $env->awsPrivateKey . "\n\n";
        $aws = $env->aws('us-east-1');
        //        $ret = $aws->validateCertificateAndPrivateKey();
        //        $this->assertTrue($ret);
        $this->assertEquals('Query', $aws->ec2->getApiClientType());
        $this->assertInstanceOf('Scalr\\Service\\Aws\\Client\\QueryClient', $aws->ec2->getApiHandler()->getClient());
    }