File tree 6 files changed +8
-8
lines changed
hello-gcs/src/test/java/functions
hello-http/src/test/java/functions
hello-pubsub/src/test/java/functions
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 43
43
import org .junit .BeforeClass ;
44
44
import org .junit .Test ;
45
45
46
- public class ExampleIntegrationTest {
46
+ public class ExampleIT {
47
47
// Root URL pointing to the locally hosted function
48
48
// The Functions Framework Maven plugin lets us run a function locally
49
49
private static final String BASE_URL = "http://localhost:8080" ;
Original file line number Diff line number Diff line change 41
41
import org .junit .BeforeClass ;
42
42
import org .junit .Test ;
43
43
44
- public class ExampleSystemTest {
44
+ public class ExampleSystemIT {
45
45
46
46
// TODO<developer>: set these values (as environment variables)
47
47
private static final String PROJECT_ID = System .getenv ("GCP_PROJECT" );
@@ -104,7 +104,7 @@ public void helloGcs_shouldRunOnGcf() {
104
104
.build ());
105
105
Retry retry = registry .retry (filename );
106
106
String logEntry = Retry
107
- .decorateFunction (retry , ExampleSystemTest ::getLogEntriesAsString )
107
+ .decorateFunction (retry , ExampleSystemIT ::getLogEntriesAsString )
108
108
.apply (startTimestamp );
109
109
110
110
// Perform final assertion (to make sure we fail on timeout)
Original file line number Diff line number Diff line change 38
38
import org .junit .runners .JUnit4 ;
39
39
40
40
@ RunWith (JUnit4 .class )
41
- public class ExampleIntegrationTest {
41
+ public class ExampleIT {
42
42
// Root URL pointing to the locally hosted function
43
43
// The Functions Framework Maven plugin lets us run a function locally
44
44
private static final String BASE_URL = "http://localhost:8080" ;
Original file line number Diff line number Diff line change 29
29
import org .junit .runners .JUnit4 ;
30
30
31
31
@ RunWith (JUnit4 .class )
32
- public class ExampleSystemTest {
32
+ public class ExampleSystemIT {
33
33
// Root URL pointing to your Cloud Functions deployment
34
34
// TODO<developer>: set this value, as an environment variable or within your test code
35
35
private static final String BASE_URL = System .getenv ("FUNCTIONS_BASE_URL" );
Original file line number Diff line number Diff line change 44
44
import org .junit .BeforeClass ;
45
45
import org .junit .Test ;
46
46
47
- public class ExampleIntegrationTest {
47
+ public class ExampleIT {
48
48
// Root URL pointing to the locally hosted function
49
49
// The Functions Framework Maven plugin lets us run a function locally
50
50
private static final String BASE_URL = "http://localhost:8080" ;
Original file line number Diff line number Diff line change 42
42
import org .junit .BeforeClass ;
43
43
import org .junit .Test ;
44
44
45
- public class ExampleSystemTest {
45
+ public class ExampleSystemIT {
46
46
47
47
// TODO<developer>: set these values (as environment variables)
48
48
private static final String PROJECT_ID = System .getenv ("GCP_PROJECT" );
@@ -108,7 +108,7 @@ public void helloPubSub_shouldRunOnGcf() throws Exception {
108
108
.build ());
109
109
Retry retry = registry .retry (name );
110
110
String logEntry = Retry
111
- .decorateFunction (retry , ExampleSystemTest ::getLogEntriesAsString )
111
+ .decorateFunction (retry , ExampleSystemIT ::getLogEntriesAsString )
112
112
.apply (startTimestamp );
113
113
114
114
// Perform final assertion (to make sure we fail on timeout)
You can’t perform that action at this time.
0 commit comments