This repository has been archived by the owner on Aug 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding bulk cert with bundled CA splitting
- Loading branch information
Tim Clifford
committed
May 12, 2020
1 parent
245303c
commit 8e97317
Showing
6 changed files
with
160 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
FASTLY_API_KEY="2arxxxxxxxxxxxxxxxxxxxxxxxxRIL" | ||
FASTLY_SERVICE_ID="5CLxxxxxxxxxxxxxxxxxxOoLP" | ||
FASTLY_CONFIG_ID="UZxxxxxxxxxxxxxxxxxxTA" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
namespace Fastly\Tests; | ||
|
||
use Dotenv\Dotenv; | ||
use Fastly\Fastly; | ||
|
||
class FastlyTLSBulkCertificateTest extends \PHPUnit\Framework\TestCase | ||
{ | ||
|
||
private $fastly; | ||
private $fastly_service_id; | ||
|
||
protected function setUp(): void | ||
{ | ||
$dotenv = Dotenv::createImmutable('./'); | ||
$dotenv->load(); | ||
|
||
$fastly_api_token = getenv('FASTLY_API_KEY'); | ||
$this->fastly_service_id = getenv('FASTLY_SERVICE_ID'); | ||
|
||
$this->fastly = new Fastly($fastly_api_token, $this->fastly_service_id); | ||
|
||
$this->private_key = file_get_contents('tests/Fastly/Fixtures/key.pem'); | ||
$this->public_chained_cert = file_get_contents('tests/Fastly/Fixtures/public_and_chained_certificate.pem'); | ||
$this->configurations_id = getenv('FASTLY_CONFIG_ID'); | ||
} | ||
|
||
//public function testGetCertificates() | ||
//{ | ||
// $certificatesObject = $this->fastly->certificates; | ||
// $certificates = $certificatesObject->get_tls_certificates(); | ||
// | ||
// // Get whole response from API. | ||
// $this->assertArrayHasKey('data', $certificates); | ||
// $this->assertArrayHasKey('links', $certificates); | ||
// $this->assertArrayHasKey('meta', $certificates); | ||
//} | ||
|
||
//public function testGetCertificateByID() | ||
//{ | ||
// $certificatesObject = $this->fastly->certificates; | ||
// $certificate = $certificatesObject->get_tls_certificate("1JP0gerEJXIxImRnRLckug"); | ||
// | ||
// $this->assertArrayHasKey('id', $certificate); | ||
//} | ||
|
||
//public function testSendBulkCertificates() | ||
//{ | ||
// $certificatesObject = $this->fastly->certificates; | ||
// | ||
// $response = $certificatesObject->send_bulk_chained_tls_certificates( | ||
// $this->public_chained_cert, | ||
// $this->configurations_id | ||
// ); | ||
// | ||
// $this->assertObjectHasAttribute('data', $response); | ||
//} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters