forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'GoogleCloudPlatform:main' into main
- Loading branch information
Showing
6,908 changed files
with
94,152 additions
and
487,369 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -376,8 +376,6 @@ resource "google_project_service_identity" "sqladmin_sa" { | |
service = "sqladmin.googleapis.com" | ||
} | ||
|
||
# TODO: Replace these permissions with bootstrapped permissions | ||
|
||
# TestAccComposerEnvironment_fixPyPiPackages | ||
# TestAccComposerEnvironmentComposer2_private | ||
# TestAccComposerEnvironment_withEncryptionConfigComposer1 | ||
|
@@ -409,6 +407,24 @@ resource "google_project_iam_member" "compute_agent_secret_accessor" { | |
member = "serviceAccount:${google_project.proj.number}[email protected]" | ||
} | ||
|
||
# TestAccHealthcarePipelineJob_healthcarePipelineJobMappingReconDestExample | ||
# TestAccHealthcarePipelineJob_healthcarePipelineJobReconciliationExample | ||
# TestAccHealthcarePipelineJob_healthcarePipelineJobWhistleMappingExample | ||
resource "google_project_iam_member" "healthcare_agent_storage_object_admin" { | ||
project = google_project.proj.project_id | ||
role = "roles/storage.objectAdmin" | ||
member = "serviceAccount:service-${google_project.proj.number}@gcp-sa-healthcare.iam.gserviceaccount.com" | ||
} | ||
|
||
# TestAccHealthcarePipelineJob_healthcarePipelineJobMappingReconDestExample | ||
# TestAccHealthcarePipelineJob_healthcarePipelineJobReconciliationExample | ||
# TestAccHealthcarePipelineJob_healthcarePipelineJobWhistleMappingExample | ||
resource "google_project_iam_member" "healthcare_agent_fhir_resource_editor" { | ||
project = google_project.proj.project_id | ||
role = "roles/healthcare.fhirResourceEditor" | ||
member = "serviceAccount:service-${google_project.proj.number}@gcp-sa-healthcare.iam.gserviceaccount.com" | ||
} | ||
|
||
# TestAccVertexAIEndpoint_vertexAiEndpointNetwork | ||
# TestAccVertexAIFeaturestoreEntitytype_vertexAiFeaturestoreEntitytypeExample | ||
# TestAccVertexAIFeaturestoreEntitytype_vertexAiFeaturestoreEntitytypeWithBetaFieldsExample | ||
|
@@ -423,6 +439,21 @@ resource "google_project_iam_member" "aiplatform_agent_encrypter_decrypter" { | |
member = "serviceAccount:service-${google_project.proj.number}@gcp-sa-aiplatform.iam.gserviceaccount.com" | ||
} | ||
|
||
# TestAccComputeInstance_confidentialHyperDiskBootDisk | ||
resource "google_project_iam_member" "compute_default_sa_encrypter_decrypter" { | ||
project = google_project.proj.project_id | ||
role = "roles/cloudkms.cryptoKeyEncrypterDecrypter" | ||
member = "serviceAccount:${google_project.proj.number}[email protected]" | ||
} | ||
|
||
# TestAccComputeInstance_confidentialHyperDiskBootDisk | ||
resource "google_project_iam_member" "compute_agent_encrypter_decrypter" { | ||
project = google_project.proj.project_id | ||
role = "roles/cloudkms.cryptoKeyEncrypterDecrypter" | ||
member = "serviceAccount:service-${google_project.proj.number}@compute-system.iam.gserviceaccount.com" | ||
} | ||
|
||
|
||
data "google_organization" "org2" { | ||
organization = var.org2_id | ||
} | ||
|
14 changes: 0 additions & 14 deletions
14
.ci/magician/cmd/SCHEDULED_PR_WAITING_FOR_CONTRIBUTOR.md.tmpl
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
) | ||
|
||
func color(color, text string) string { | ||
if color == "" || text == "" { | ||
return text | ||
} | ||
var emoji string | ||
switch color { | ||
case "red": | ||
emoji = "🔴" | ||
case "yellow": | ||
emoji = "🟡" | ||
case "green": | ||
emoji = "🟢" | ||
default: | ||
return text | ||
} | ||
return fmt.Sprintf("%s %s", emoji, text) | ||
} |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
.ci/magician/cmd/templates/SCHEDULED_PR_WAITING_FOR_CONTRIBUTOR.md.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ if lt .SinceDays 30 -}} | ||
@{{.User}}, this PR is waiting for action from you. If no action is taken, this PR will be closed in | ||
{{- if eq .SinceDays 10 }} 28 days.{{end}} | ||
{{- if eq .SinceDays 20 }} 14 days.{{end}} | ||
{{- if eq .SinceDays 28 }} 2 weekdays.{{end}} | ||
|
||
Please address any comments or change requests, or [re-request review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) from a core reviewer if no action is required. | ||
|
||
![Image showing the re-request review button](https://docs.github.com/assets/cb-28785/mw-1440/images/help/pull_requests/request-re-review.webp) | ||
|
||
This notification can be disabled with the `disable-automatic-closure` label. | ||
{{ else -}} | ||
@{{.User}}, this PR is being closed due to inactivity. | ||
{{ end -}} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{- if gt (len .RecordingResult.PassedTests) 0 -}} | ||
{{color "green" "Tests passed during RECORDING mode:"}} | ||
{{range .RecordingResult.PassedTests}}`{{.}}`[[Debug log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-{{$.PRNumber}}/artifacts/{{$.BuildID}}/recording/{{.}}.log)] | ||
{{end}} | ||
|
||
{{- if gt (len .ReplayingAfterRecordingResult.FailedTests ) 0 -}} | ||
{{color "red" "Tests failed when rerunning REPLAYING mode:"}} | ||
{{range .ReplayingAfterRecordingResult.FailedTests}}`{{.}}`[[Error message](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-{{$.PRNumber}}/artifacts/{{$.BuildID}}/build-log/replaying_build_after_recording/{{.}}_replaying_test.log)] [[Debug log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-{{$.PRNumber}}/artifacts/{{$.BuildID}}/replaying_after_recording/{{.}}.log)] | ||
{{end}} | ||
|
||
Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made. | ||
|
||
Please fix these to complete your PR. If you believe these test failures to be incorrect or unrelated to your change, or if you have any questions, please raise the concern with your reviewer. | ||
|
||
{{else}} | ||
{{color "green" "No issues found for passed tests after REPLAYING rerun."}} | ||
{{end}}{{/* end of if gt (len .ReplayingAfterRecordingResult.FailedTests ) 0 */}} | ||
--- | ||
{{end}}{{/* end of if gt (len .RecordingResult.PassedTests) 0 */}} | ||
|
||
{{if gt (len .RecordingResult.FailedTests) 0 -}} | ||
{{color "red" "Tests failed during RECORDING mode:"}} | ||
{{range .RecordingResult.FailedTests}}`{{.}}`[[Error message](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-{{$.PRNumber}}/artifacts/{{$.BuildID}}/build-log/recording_build/{{.}}_recording_test.log)] [[Debug log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-{{$.PRNumber}}/artifacts/{{$.BuildID}}/recording/{{.}}.log)] | ||
{{end}} | ||
{{end}} {{- /* end of if gt (len .RecordingResult.FailedTests) 0 */ -}} | ||
|
||
{{if .HasTerminatedTests}}{{color "red" "Several tests got terminated during RECORDING mode."}}{{end}} | ||
{{if .RecordingErr}}{{color "red" "Errors occurred during RECORDING mode. Please fix them to complete your PR."}}{{end}} | ||
{{if .AllRecordingPassed}}{{color "green" "All tests passed!"}}{{end}} | ||
|
||
View the [build log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-{{.PRNumber}}/artifacts/{{.BuildID}}/build-log/recording_test.log) or the [debug log](https://console.cloud.google.com/storage/browser/ci-vcr-logs/beta/refs/heads/auto-pr-{{.PRNumber}}/artifacts/{{.BuildID}}/recording) for each test |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
.ci/magician/cmd/templates/vcr/without_replay_failed_tests.tmpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{- if .ReplayingErr -}} | ||
{{color "red" "Errors occurred during REPLAYING mode. Please fix them to complete your PR."}} | ||
{{- else -}} | ||
{{color "green" "All tests passed!"}} | ||
{{- end}} | ||
|
||
View the [build log](https://storage.cloud.google.com/ci-vcr-logs/beta/refs/heads/auto-pr-{{.PRNumber}}/artifacts/{{.BuildID}}/build-log/replaying_test.log) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package cmd | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestColor(t *testing.T) { | ||
cases := []struct { | ||
name string | ||
color string | ||
text string | ||
want string | ||
}{ | ||
{ | ||
name: "red", | ||
color: "red", | ||
text: "Test text", | ||
want: "🔴 Test text", | ||
}, | ||
{ | ||
name: "yellow", | ||
color: "yellow", | ||
text: "Test text", | ||
want: "🟡 Test text", | ||
}, | ||
{ | ||
name: "green", | ||
color: "green", | ||
text: "Test text", | ||
want: "🟢 Test text", | ||
}, | ||
{ | ||
name: "unsupported color", | ||
color: "mauve", | ||
text: "Test text", | ||
want: "Test text", | ||
}, | ||
{ | ||
name: "empty color", | ||
text: "Test text", | ||
want: "Test text", | ||
}, | ||
{ | ||
name: "empty text", | ||
color: "green", | ||
want: "", | ||
}, | ||
} | ||
|
||
for _, tc := range cases { | ||
t.Run(tc.name, func(t *testing.T) { | ||
got := color(tc.color, tc.text) | ||
if got != tc.want { | ||
t.Errorf("color(%s, %s) got %s; want %s", tc.color, tc.text, got, tc.want) | ||
} | ||
}) | ||
} | ||
} |
Oops, something went wrong.