mirror of
https://github.com/google/nomulus.git
synced 2025-05-29 17:00:11 +02:00
Make metrics export run on backend module
This fixes a previous issue where metrics generated on the tools/backend modules weren't being successfully exported to BigQuery. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=119047757
This commit is contained in:
parent
17c4ad83c8
commit
e6d3f42e60
7 changed files with 34 additions and 15 deletions
|
@ -27,10 +27,10 @@ import org.junit.Before;
|
|||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
import org.mockito.runners.MockitoJUnitRunner;
|
||||
|
||||
/** Unit tests for {@link Metrics}. */
|
||||
@RunWith(JUnit4.class)
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class MetricsTest {
|
||||
|
||||
@Rule
|
||||
|
@ -39,6 +39,7 @@ public class MetricsTest {
|
|||
@Rule
|
||||
public final AppEngineRule appEngine = AppEngineRule.builder()
|
||||
.withDatastore()
|
||||
.withLocalModules()
|
||||
.withTaskQueue()
|
||||
.build();
|
||||
|
||||
|
@ -60,6 +61,7 @@ public class MetricsTest {
|
|||
assertTasksEnqueued("bigquery-streaming-metrics",
|
||||
new TaskMatcher()
|
||||
.url("/_dr/task/metrics")
|
||||
.header("Host", "1.backend.test.localhost")
|
||||
.param("tableId", "test")
|
||||
.param("startTime", "472176000.000000")
|
||||
.param("endTime", "472176000.001000")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue