Skip to content

Commit c626b66

Browse files
authored
Merge branch 'master' into master
2 parents c38eddd + 80801c9 commit c626b66

File tree

84 files changed

+419
-1590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+419
-1590
lines changed

.kokoro/deploy_gae.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/php74"
7+
}
8+
9+
# Run the deployment tests
10+
env_vars: {
11+
key: "RUN_DEPLOYMENT_TESTS"
12+
value: "true"
13+
}
14+
15+
# Only run deployment tests for App Engine Standard
16+
env_vars: {
17+
key: "TEST_DIRECTORIES"
18+
value: "appengine/standard"
19+
}

.kokoro/deploy_gcf.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/php74"
7+
}
8+
9+
# Run the deployment tests
10+
env_vars: {
11+
key: "RUN_DEPLOYMENT_TESTS"
12+
value: "true"
13+
}
14+
15+
# Only run deployment tests for Cloud Functions
16+
env_vars: {
17+
key: "TEST_DIRECTORIES"
18+
value: "functions"
19+
}

.kokoro/deploy_misc.cfg

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Configure the docker image for kokoro-trampoline.
4+
env_vars: {
5+
key: "TRAMPOLINE_IMAGE"
6+
value: "gcr.io/cloud-devrel-kokoro-resources/php74"
7+
}
8+
9+
# Run the deployment tests
10+
env_vars: {
11+
key: "RUN_DEPLOYMENT_TESTS"
12+
value: "true"
13+
}
14+
15+
# Run deployment tests for Cloud Run, EventArc Endpoints
16+
env_vars: {
17+
key: "TEST_DIRECTORIES"
18+
value: "endpoints eventarc run"
19+
}

.kokoro/secrets.sh.enc

163 Bytes
Binary file not shown.

appengine/standard/errorreporting/test/DeployTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class DeployTest extends TestCase
3333

3434
public function setUp(): void
3535
{
36-
$this->projectId = getenv('GOOGLE_PROJECT_ID');
36+
self::$projectId = getenv('GOOGLE_PROJECT_ID');
3737
}
3838

3939
public function testIndex()
@@ -98,7 +98,7 @@ public function testFatalErrors()
9898
private function verifyReportedError($message, $retryCount = 5)
9999
{
100100
$errorStats = new ErrorStatsServiceClient();
101-
$projectName = $errorStats->projectName($this->projectId);
101+
$projectName = $errorStats->projectName(self::$projectId);
102102

103103
$timeRange = (new QueryTimeRange())
104104
->setPeriod(QueryTimeRange_Period::PERIOD_1_HOUR);
@@ -111,7 +111,10 @@ private function verifyReportedError($message, $retryCount = 5)
111111
$message
112112
) {
113113
$messages = [];
114-
$response = $errorStats->listGroupStats($projectName, $timeRange);
114+
$response = $errorStats->listGroupStats(
115+
$projectName,
116+
['timeRange' => $timeRange]
117+
);
115118
foreach ($response->iterateAllElements() as $groupStat) {
116119
$response = $errorStats->listEvents($projectName, $groupStat->getGroup()->getGroupId(), [
117120
'timeRange' => $timeRange,

appengine/standard/getting-started/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"slim/slim": "^4.0",
55
"slim/psr7": "^1.0",
66
"slim/twig-view": "^3.0",
7-
"php-di/slim-bridge": "^3.1"
7+
"php-di/slim-bridge": "^3.1",
8+
"symfony/yaml": "^5.2"
89
},
910
"autoload": {
1011
"psr-4": {

appengine/standard/laravel-framework/app-dbsessions.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Use the PHP 7.3 runtime (BETA) by replacing "php72" below with "php73"
2-
runtime: php72
1+
runtime: php74
32

43
env_variables:
54
## Put production environment variables here.
@@ -17,4 +16,4 @@ env_variables:
1716
## To use Stackdriver logging in your Laravel application, copy
1817
## "app/Logging/CreateStackdriverLogger.php" and "config/logging.php"
1918
## into your Laravel application. Then uncomment the following line:
20-
# LOG_CHANNEL: stackdriver
19+
# LOG_CHANNEL: stackdriver

appengine/standard/laravel-framework/bootstrap/app.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
App\Exceptions\Handler::class
4242
);
4343

44+
$app->singleton(
45+
Illuminate\Foundation\Exceptions\Handler::class,
46+
App\Exceptions\Handler::class
47+
);
48+
4449
# [START] Set the storage path to the environment variable APP_STORAGE
4550
/*
4651
|--------------------------------------------------------------------------

appengine/standard/laravel-framework/phpunit.xml.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
<phpunit bootstrap="../../../testing/bootstrap.php">
1818
<testsuites>
1919
<testsuite name="AppEngine for PHP 7.2 Laravel Framework test">
20-
<directory>test</directory>
20+
<!-- This sample is BROKEN! See issue link below. -->
21+
<!-- https://github.com/GoogleCloudPlatform/php-docs-samples/issues/1349 -->
22+
<!-- <directory>test</directory> -->
2123
</testsuite>
2224
</testsuites>
2325
<filter>

appengine/standard/laravel-framework/test/DeployDatabaseTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ public static function beforeDeploy()
6767

6868
public function testHomepage()
6969
{
70+
$this->markTestSkipped(
71+
'This sample is BROKEN. See https://github.com/GoogleCloudPlatform/php-docs-samples/issues/1349'
72+
);
73+
7074
// Access the blog top page
7175
$resp = $this->client->get('/');
7276
$this->assertEquals(

0 commit comments

Comments
 (0)