Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#1861 from justinsb/monitoring_…
Browse files Browse the repository at this point in the history
…dashboard_tests

tests: simplify monitoringdashboard test case, add to tests-e2e-direct
  • Loading branch information
google-oss-prow[bot] authored Jun 7, 2024
2 parents a8c8d40 + 066aac1 commit 87b178d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
filter: metric.type="agent.googleapis.com/nginx/connections/accepted_count"
resourceNames: []
title: Widget 4
displayName: monitoringdashboard-${uniqueId}
displayName: monitoringdashboard updated
projectRef:
name: otherproject
resourceID: monitoringdashboard-${uniqueId}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,9 @@ User-Agent: kcc/controller-manager DeclarativeClientLib/0.0.1
}
]
},
"displayName": "monitoringdashboard-${uniqueId}",
"displayName": "monitoringdashboard updated",
"etag": "abcdef0123A=",
"name": "projects/${projectId}/dashboards/monitoringdashboard-${uniqueId}"
"name": "projects/projects/other${uniqueId}/dashboards/monitoringdashboard-${uniqueId}"
}

200 OK
Expand Down Expand Up @@ -613,7 +613,7 @@ X-Xss-Protection: 0
}
]
},
"displayName": "monitoringdashboard-${uniqueId}",
"displayName": "monitoringdashboard updated",
"etag": "abcdef0123A=",
"name": "projects/${projectNumber}/dashboards/monitoringdashboard-${uniqueId}"
}
Expand Down Expand Up @@ -708,7 +708,7 @@ X-Xss-Protection: 0
}
]
},
"displayName": "monitoringdashboard-${uniqueId}",
"displayName": "monitoringdashboard updated",
"etag": "abcdef0123A=",
"name": "projects/${projectNumber}/dashboards/monitoringdashboard-${uniqueId}"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ metadata:
spec:
projectRef:
name: otherproject
displayName: "monitoringdashboard-${uniqueId}"
displayName: "monitoringdashboard updated"
columnLayout:
columns:
- weight: 2
Expand Down
2 changes: 1 addition & 1 deletion scripts/github-actions/tests-e2e-direct.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ echo "Running e2e tests fixtures for LoggingLogMetric direct reconciliation..."
GOLDEN_OBJECT_CHECKS=1 \
GOLDEN_REQUEST_CHECKS=1 \
E2E_KUBE_TARGET=envtest RUN_E2E=1 E2E_GCP_TARGET=mock \
go test -test.count=1 -timeout 600s -v ./tests/e2e -run 'TestAllInSeries/fixtures/explicitlogmetric|TestAllInSeries/fixtures/exponentiallogmetric|TestAllInSeries/fixtures/linearlogmetric|TestAllInSeries/fixtures/logbucketmetric'
go test -test.count=1 -timeout 600s -v ./tests/e2e -run 'TestAllInSeries/fixtures/explicitlogmetric|TestAllInSeries/fixtures/exponentiallogmetric|TestAllInSeries/fixtures/linearlogmetric|TestAllInSeries/fixtures/logbucketmetric|TestAllInSeries/fixtures/monitoringdashboard'

echo "Running scenarios tests for LoggingLogMetric direct reconciliation..."

Expand Down

0 comments on commit 87b178d

Please sign in to comment.