Skip to content

Commit f6d6b45

Browse files
authored
chore(tests): add deploy group (GoogleCloudPlatform#1320)
1 parent 6e1e07f commit f6d6b45

File tree

45 files changed

+100
-21
lines changed

Some content is hidden

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

45 files changed

+100
-21
lines changed

appengine/standard/auth/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Google\Cloud\TestUtils\AppEngineDeploymentTrait;
2020
use PHPUnit\Framework\TestCase;
2121

22+
/**
23+
* @group deploy
24+
*/
2225
class DeployTest extends TestCase
2326
{
2427
use AppEngineDeploymentTrait;

appengine/standard/errorreporting/test/DeployTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
use Google\Cloud\ErrorReporting\V1beta1\ErrorStatsServiceClient;
2222
use Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange;
2323
use Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange_Period;
24-
2524
use PHPUnit\Framework\TestCase;
2625

26+
/**
27+
* @group deploy
28+
*/
2729
class DeployTest extends TestCase
2830
{
2931
use AppEngineDeploymentTrait;

appengine/standard/front-controller/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020

2121
use PHPUnit\Framework\TestCase;
2222

23+
/**
24+
* @group deploy
25+
*/
2326
class DeployTest extends TestCase
2427
{
2528
use AppEngineDeploymentTrait;

appengine/standard/getting-started/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
/**
2626
* Class DeployTest
27+
* @group deploy
2728
*/
2829
class DeployTest extends TestCase
2930
{

appengine/standard/grpc/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
use Google\Cloud\TestUtils\FileUtil;
2121
use PHPUnit\Framework\TestCase;
2222

23+
/**
24+
* @group deploy
25+
*/
2326
class DeployTest extends TestCase
2427
{
2528
use AppEngineDeploymentTrait;

appengine/standard/helloworld/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Google\Cloud\TestUtils\AppEngineDeploymentTrait;
2020
use PHPUnit\Framework\TestCase;
2121

22+
/**
23+
* @group deploy
24+
*/
2225
class DeployTest extends TestCase
2326
{
2427
use AppEngineDeploymentTrait;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
require_once __DIR__ . '/DeployLaravelTrait.php';
2525

26+
/**
27+
* @group deploy
28+
*/
2629
class DeployDatabaseTest extends TestCase
2730
{
2831
use TestTrait;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
require_once __DIR__ . '/DeployLaravelTrait.php';
2626

27+
/**
28+
* @group deploy
29+
*/
2730
class DeployStackdriverTest extends TestCase
2831
{
2932
use DeployLaravelTrait;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
require_once __DIR__ . '/DeployLaravelTrait.php';
2424

25+
/**
26+
* @group deploy
27+
*/
2528
class DeployTest extends TestCase
2629
{
2730
use DeployLaravelTrait;

appengine/standard/logging/test/DeployTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
use Google\Cloud\TestUtils\AppEngineDeploymentTrait;
2121
use Google\Cloud\TestUtils\EventuallyConsistentTestTrait;
2222
use Google\Cloud\Logging\LoggingClient;
23-
2423
use PHPUnit\Framework\TestCase;
2524

25+
/**
26+
* @group deploy
27+
*/
2628
class DeployTest extends TestCase
2729
{
2830
use TestTrait;

appengine/standard/memorystore/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class DeployTest extends TestCase
2727
use TestTrait;
2828
use AppEngineDeploymentTrait;
2929

30+
/**
31+
* @group deploy
32+
*/
3033
public function testIndex()
3134
{
3235
$resp = $this->client->request('GET', '/');

appengine/standard/metadata/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Google\Cloud\TestUtils\AppEngineDeploymentTrait;
2020
use PHPUnit\Framework\TestCase;
2121

22+
/**
23+
* @group deploy
24+
*/
2225
class DeployTest extends TestCase
2326
{
2427
use AppEngineDeploymentTrait;

appengine/standard/slim-framework/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
use Google\Cloud\TestUtils\AppEngineDeploymentTrait;
2020
use PHPUnit\Framework\TestCase;
2121

22+
/**
23+
* @group deploy
24+
*/
2225
class DeployTest extends TestCase
2326
{
2427
use AppEngineDeploymentTrait;

appengine/standard/storage/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
use Symfony\Component\Yaml\Yaml;
2424
use GuzzleHttp\Client;
2525

26+
/**
27+
* @group deploy
28+
*/
2629
class DeployTest extends TestCase
2730
{
2831
use AppEngineDeploymentTrait;

appengine/standard/symfony-framework/test/DeployDoctrineTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
require_once __DIR__ . '/DeploySymfonyTrait.php';
2323

24+
/**
25+
* @group deploy
26+
*/
2427
class DeployDoctrineTest extends TestCase
2528
{
2629
use DeploySymfonyTrait;

appengine/standard/symfony-framework/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323

2424
require_once __DIR__ . '/DeploySymfonyTrait.php';
2525

26+
/**
27+
* @group deploy
28+
*/
2629
class DeployTest extends TestCase
2730
{
2831
use DeploySymfonyTrait;

appengine/standard/tasks/apps/handler/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222

2323
use PHPUnit\Framework\TestCase;
2424

25+
/**
26+
* @group deploy
27+
*/
2528
class DeployTest extends TestCase
2629
{
2730
use TestTrait;

appengine/standard/trace/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
use GuzzleHttp\HandlerStack;
2424
use PHPUnit\Framework\TestCase;
2525

26+
/**
27+
* @group deploy
28+
*/
2629
class DeployTest extends TestCase
2730
{
2831
use AppEngineDeploymentTrait;

appengine/standard/wordpress/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
use Google\Cloud\TestUtils\ExecuteCommandTrait;
2222
use PHPUnit\Framework\TestCase;
2323

24+
/**
25+
* @group deploy
26+
*/
2427
class DeployTest extends TestCase
2528
{
2629
use ExecuteCommandTrait;

endpoints/getting-started/test/DeployTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
use Google\Cloud\TestUtils\FileUtil;
2121
use PHPUnit\Framework\TestCase;
2222

23+
/**
24+
* @group deploy
25+
*/
2326
class DeployTest extends TestCase
2427
{
2528
use AppEngineDeploymentTrait;

eventarc/generic/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
/**
2929
* Class DeployTest.
30+
* @group deploy
3031
*/
3132
class DeployTest extends TestCase
3233
{

functions/concepts_filesystem/test/DeployTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{
@@ -40,8 +41,8 @@ class DeployTest extends TestCase
4041
private static $entryPoint = 'listFiles';
4142

4243
/**
43-
* @dataProvider cases
44-
*/
44+
* @dataProvider cases
45+
*/
4546
public function testFunction($file): void
4647
{
4748
// Send a request to the function.

functions/concepts_requests/test/DeployTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{
@@ -51,8 +52,8 @@ private static function doDeploy()
5152
}
5253

5354
/**
54-
* @dataProvider cases
55-
*/
55+
* @dataProvider cases
56+
*/
5657
public function testFunction($statusCode): void
5758
{
5859
// Send a request to the function.

functions/env_vars/test/DeployTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{
@@ -53,8 +54,8 @@ private static function doDeploy()
5354
}
5455

5556
/**
56-
* @dataProvider cases
57-
*/
57+
* @dataProvider cases
58+
*/
5859
public function testFunction(
5960
$statusCode,
6061
$varName,

functions/firebase_firestore/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{

functions/firebase_firestore_reactive/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
*
3333
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3434
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
35+
* @group deploy
3536
*/
3637
class DeployTest extends TestCase
3738
{

functions/firebase_remote_config/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
*
3333
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3434
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
35+
* @group deploy
3536
*/
3637
class DeployTest extends TestCase
3738
{

functions/firebase_rtdb/test/DeployTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
*
3333
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3434
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
35+
* @group deploy
3536
*/
3637
class DeployTest extends TestCase
3738
{
@@ -40,7 +41,7 @@ class DeployTest extends TestCase
4041

4142
/** @var string */
4243
private static $entryPoint = 'firebaseRTDB';
43-
44+
4445
/** @var string */
4546
private static $functionSignatureType = 'cloudevent';
4647

functions/helloworld_get/test/DeployTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{
@@ -40,8 +41,8 @@ class DeployTest extends TestCase
4041
private static $entryPoint = 'helloGet';
4142

4243
/**
43-
* @dataProvider cases
44-
*/
44+
* @dataProvider cases
45+
*/
4546
public function testFunction($statusCode, $expected): void
4647
{
4748
// Send a request to the function.

functions/helloworld_http/test/DeployTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{
@@ -40,8 +41,8 @@ class DeployTest extends TestCase
4041
private static $entryPoint = 'helloHttp';
4142

4243
/**
43-
* @dataProvider cases
44-
*/
44+
* @dataProvider cases
45+
*/
4546
public function testFunction(
4647
$label,
4748
$query,

functions/helloworld_log/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{

functions/helloworld_pubsub/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{

functions/helloworld_storage/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{

functions/http_content_type/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*
3030
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3131
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
32+
* @group deploy
3233
*/
3334
class DeployTest extends TestCase
3435
{

functions/http_cors/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{

functions/http_form_data/test/DeployTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* To skip deployment of a new function, run with "GOOGLE_SKIP_DEPLOYMENT=true".
3333
* To skip deletion of the tested function, run with "GOOGLE_KEEP_DEPLOYMENT=true".
34+
* @group deploy
3435
*/
3536
class DeployTest extends TestCase
3637
{

0 commit comments

Comments
 (0)