Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GKE Hub]: Add Fleet Resource #8711

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Conversation

sandmman
Copy link
Contributor

@sandmman sandmman commented Aug 18, 2023

Adds a new GKEHub resource "Fleet." This is a singleton resource such that a user may have exactly one named "default" inside each project. i.e. the resource name project/{project_id}/location/{global}/fleets/default.

b/296461330

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

`google_gke_hub_fleet`

@sandmman sandmman marked this pull request as draft August 18, 2023 23:31
@modular-magician
Copy link
Collaborator

Hello! I am a robot. It looks like you are a: Community Contributor Googler Core Contributor. Tests will run automatically.

@zli82016, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 12 files changed, 1487 insertions(+), 4 deletions(-))
TF Conversion: Diff ( 5 files changed, 401 insertions(+), 2 deletions(-))
TF OiCS: Diff ( 4 files changed, 104 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  members = # value needed
  role    = # value needed
}

Resource: google_gke_hub_fleet_iam_member (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  member = # value needed
  role   = # value needed
}

Resource: google_gke_hub_fleet_iam_policy (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_policy" "primary" {
  policy_data = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2984
Passed tests 2673
Skipped tests: 295
Affected tests: 16

Action taken

Found 16 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample|TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample|TestAccBigtableAppProfile_bigtableAppProfileSingleclusterExample|TestAccDataplexDatascan_dataplexDatascanFullProfileExample|TestAccDataplexDatascan_dataplexDatascanBasicQualityExample|TestAccGKEHubFleetIamBindingGenerated|TestAccGKEHubFleet_gkehubFleetBasicExample_update|TestAccGKEHubFleet_gkehubFleetBasicExample|TestAccGKEHubFleetIamPolicyGenerated|TestAccGKEHubFleetIamMemberGenerated|TestAccGKEHubMembershipIamBindingGenerated|TestAccGKEHubMembership_gkehubMembershipIssuerExample|TestAccGKEHubMembershipIamMemberGenerated|TestAccGKEHubMembershipIamPolicyGenerated|TestAccGKEHubMembership_gkehubMembershipBasicExample|TestAccGKEHub2MembershipRBACRoleBinding_gkehubMembershipRbacRoleBindingBasicExample

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccBigtableAppProfile_bigtableAppProfileAnyclusterExample[Debug log]
TestAccBigtableAppProfile_bigtableAppProfileMulticlusterExample[Debug log]
TestAccBigtableAppProfile_bigtableAppProfileSingleclusterExample[Debug log]
TestAccDataplexDatascan_dataplexDatascanFullProfileExample[Debug log]
TestAccDataplexDatascan_dataplexDatascanBasicQualityExample[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccGKEHubFleetIamBindingGenerated[Error message] [Debug log]
TestAccGKEHubFleet_gkehubFleetBasicExample_update[Error message] [Debug log]
TestAccGKEHubFleet_gkehubFleetBasicExample[Error message] [Debug log]
TestAccGKEHubFleetIamPolicyGenerated[Error message] [Debug log]
TestAccGKEHubFleetIamMemberGenerated[Error message] [Debug log]
TestAccGKEHubMembershipIamBindingGenerated[Error message] [Debug log]
TestAccGKEHubMembership_gkehubMembershipIssuerExample[Error message] [Debug log]
TestAccGKEHubMembershipIamMemberGenerated[Error message] [Debug log]
TestAccGKEHubMembershipIamPolicyGenerated[Error message] [Debug log]
TestAccGKEHubMembership_gkehubMembershipBasicExample[Error message] [Debug log]
TestAccGKEHub2MembershipRBACRoleBinding_gkehubMembershipRbacRoleBindingBasicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@sandmman
Copy link
Contributor Author

@zli82016 the fleet resource is a per-project singleton. Because of historical reasons, Creating a GKEHub membership will implicitly create the Fleet resource in the same project.

Some of the tests that failed, failed because of an "existing fleet." Is there anyway to ensure the project is in a clean starting state before running these ones?

@zli82016 zli82016 requested review from a team and NickElliot and removed request for zli82016 and a team August 24, 2023 18:03
@zli82016
Copy link
Member

I will be OOO office from tomorrow. Handoff the PR to @NickElliot . Thanks, Nick.

Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make sure I'm understanding this correctly -- a fleet is not directly created by users, but done by default through enabling the membership? Can this default be deleted and manually created separately, or is it something that exists in perpetuity? It might need a pretty nonstandard test case and I'll verify with my team what would be the right way to handle this as a CI test depending on the specifics.

Also, the test failures in CI happened because your build failed rather than those singleton related issues:
google/services/gkehub/resource_gke_hub_fleet_test.go:10:2: no required module provides package github.com/hashicorp/terraform-provider-google-beta/google-beta/acctest
if you could go ahead and add that import 🙂

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 11 files changed, 1482 insertions(+), 4 deletions(-))
TF Conversion: Diff ( 5 files changed, 401 insertions(+), 2 deletions(-))
TF OiCS: Diff ( 4 files changed, 104 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  members = # value needed
  role    = # value needed
}

Resource: google_gke_hub_fleet_iam_member (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  member = # value needed
  role   = # value needed
}

Resource: google_gke_hub_fleet_iam_policy (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_policy" "primary" {
  policy_data = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2993
Passed tests 2684
Skipped tests: 296
Affected tests: 13

Action taken

Found 13 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccDataprocJobIamPolicy|TestAccGKEHubFleetIamBindingGenerated|TestAccGKEHubFleetIamPolicyGenerated|TestAccGKEHubFleet_gkehubFleetBasicExample_update|TestAccGKEHubFleet_gkehubFleetBasicExample|TestAccGKEHubFleetIamMemberGenerated|TestAccGKEHubMembership_gkehubMembershipBasicExample|TestAccGKEHubMembershipIamBindingGenerated|TestAccGKEHubMembership_gkehubMembershipIssuerExample|TestAccGKEHubMembershipIamMemberGenerated|TestAccGKEHubMembershipIamPolicyGenerated|TestAccGKEHub2MembershipRBACRoleBinding_gkehubMembershipRbacRoleBindingBasicExample|TestAccHealthcareDatasetIamPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataprocJobIamPolicy[Debug log]
TestAccHealthcareDatasetIamPolicy[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccGKEHubFleetIamBindingGenerated[Error message] [Debug log]
TestAccGKEHubFleetIamPolicyGenerated[Error message] [Debug log]
TestAccGKEHubFleet_gkehubFleetBasicExample_update[Error message] [Debug log]
TestAccGKEHubFleet_gkehubFleetBasicExample[Error message] [Debug log]
TestAccGKEHubFleetIamMemberGenerated[Error message] [Debug log]
TestAccGKEHubMembership_gkehubMembershipBasicExample[Error message] [Debug log]
TestAccGKEHubMembershipIamBindingGenerated[Error message] [Debug log]
TestAccGKEHubMembership_gkehubMembershipIssuerExample[Error message] [Debug log]
TestAccGKEHubMembershipIamMemberGenerated[Error message] [Debug log]
TestAccGKEHubMembershipIamPolicyGenerated[Error message] [Debug log]
TestAccGKEHub2MembershipRBACRoleBinding_gkehubMembershipRbacRoleBindingBasicExample[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@NickElliot
Copy link
Contributor

bumping in case you missed the question above*

@sandmman
Copy link
Contributor Author

sandmman commented Sep 6, 2023

@NickElliot sorry for the delay. I was OOO the past week.

a fleet is not directly created by users, but done by default through enabling the membership

Not quite. For context, there are two resources here having the resource names paths: /projects/locations/fleets and projects/locations/memberships. The two resources are at the same hierarchy level only because memberships existed before fleets. All memberships belong to the fleet in their own project. To ensure a fleet exists when existing workflows created a membership, CreateMembership calls implicitly create a fleet if it doesn't exist.

Can this default be deleted and manually created separately, or is it something that exists in perpetuity?

A fleet can be managed individually with al CRUD APIs with the caveat that it cannot be deleted until all memberships in it have been deleted first.


My concern is magic modules is using the same testing project for membership and fleet tests and they may collide. In fact I'm seeing some already. Additionally the conflicting resources are in different apis v1beta and v1beta1, so we have two products (gkehub and gkehub2) and handle that.

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Breaking Change Detection Failed

The breaking change detector crashed during execution. This is usually due to the downstream provider(s) failing to compile. Please investigate or follow up with your reviewer.

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 399 insertions(+))
TF OiCS: Diff ( 4 files changed, 104 insertions(+))

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 11 files changed, 1799 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 11 files changed, 1799 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 399 insertions(+))
TF OiCS: Diff ( 4 files changed, 104 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (2 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

Resource: google_gke_hub_fleet_iam_member (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 399 insertions(+))
TF OiCS: Diff ( 4 files changed, 104 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  members = # value needed
  role    = # value needed
}

Resource: google_gke_hub_fleet_iam_member (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  member = # value needed
  role   = # value needed
}

Resource: google_gke_hub_fleet_iam_policy (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_policy" "primary" {
  policy_data = # value needed
}

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 10 files changed, 1481 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 399 insertions(+))
TF OiCS: Diff ( 4 files changed, 104 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  members = # value needed
  role    = # value needed
}

Resource: google_gke_hub_fleet_iam_member (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  member = # value needed
  role   = # value needed
}

Resource: google_gke_hub_fleet_iam_policy (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_policy" "primary" {
  policy_data = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3016
Passed tests 2712
Skipped tests: 296
Affected tests: 8

Action taken

Found 8 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccDataplexDatascan_dataplexDatascanBasicQualityExample|TestAccDataplexDatascan_dataplexDatascanFullProfileExample|TestAccGKEHub2Fleet_gkehubFleetBasicExample_update|TestAccGKEHub2Fleet_gkehubFleetBasicExample|TestAccGKEHub2FleetIamBindingGenerated|TestAccGKEHub2FleetIamPolicyGenerated|TestAccGKEHub2FleetIamMemberGenerated|TestAccHealthcareDatasetIamPolicy

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 9 files changed, 1472 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 9 files changed, 1472 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 399 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

Resource: google_gke_hub_fleet_iam_member (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  member = # value needed
  role   = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3058
Passed tests 2756
Skipped tests: 298
Affected tests: 4

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccGKEHub2FleetIamBindingGenerated|TestAccGKEHub2FleetIamPolicyGenerated|TestAccGKEHub2FleetIamMemberGenerated|TestAccDataSourceGoogleServiceAccountJwt

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{The provider crashed while running the VCR tests in RECORDING mode}}$
$\textcolor{red}{\textsf{Please fix it to complete your PR}}$
View the build log

@sandmman
Copy link
Contributor Author

@NickElliot that did the trick thanks! There is a panic happening in my IAM resource test though. I can't quite figure that out. Any ideas?

@sandmman sandmman marked this pull request as ready for review September 18, 2023 17:56
Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the long delay on this review -- extremely busy around the 5.0.0 release

the problematic line is

m, err := tpgresource.GetImportIdQualifiers([]string{"projects/(?P<project>[^/]+)/locations/(?P<location>[^/]+)/fleets/default", "(?P<project>[^/]+)/(?P<location>[^/]+)", "(?P<location>[^/]+)"}, d, config, d.Get("id").(string))

in the GKEHub2FleetIamUpdaterProducer -- in otherwords d.Get("id") is returning a null value which is causing the panic error during the type conversion.

This led me to check if something was wrong with the IAM policies -- and saw that in the GKE Fleet documentation I dont see anything (i.e. GetIamPolicy or SetIamPolicy methods) there for Fleets. Does this resource actually need to be configured for IAM support?

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 9 files changed, 1442 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 9 files changed, 1442 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 399 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

Resource: google_gke_hub_fleet_iam_member (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  member = # value needed
  role   = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3095
Passed tests 2792
Skipped tests: 299
Affected tests: 4

Action taken

Found 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccGKEHub2FleetIamPolicyGenerated|TestAccGKEHub2FleetIamMemberGenerated|TestAccGKEHub2FleetIamBindingGenerated|TestAccDataSourceGoogleServiceAccountJwt

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{The provider crashed while running the VCR tests in RECORDING mode}}$
$\textcolor{red}{\textsf{Please fix it to complete your PR}}$
View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 9 files changed, 1441 insertions(+), 3 deletions(-))
Terraform Beta: Diff ( 9 files changed, 1441 insertions(+), 3 deletions(-))
TF Conversion: Diff ( 4 files changed, 399 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet_iam_binding (1 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_binding" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
}

Resource: google_gke_hub_fleet_iam_member (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet_iam_member" "primary" {
  condition {
    description = # value needed
    expression  = # value needed
    title       = # value needed
  }
  member = # value needed
  role   = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3096
Passed tests 2794
Skipped tests: 299
Affected tests: 3

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccGKEHub2FleetIamBindingGenerated|TestAccGKEHub2FleetIamMemberGenerated|TestAccGKEHub2FleetIamPolicyGenerated

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{red}{\textsf{The provider crashed while running the VCR tests in RECORDING mode}}$
$\textcolor{red}{\textsf{Please fix it to complete your PR}}$
View the build log

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 808 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 5 files changed, 808 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 69 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet" "primary" {
  display_name = # value needed
}

@modular-magician
Copy link
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 808 insertions(+), 2 deletions(-))
Terraform Beta: Diff ( 5 files changed, 808 insertions(+), 2 deletions(-))
TF Conversion: Diff ( 1 file changed, 69 insertions(+))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_gke_hub_fleet (0 total tests)
Please add an acceptance test which includes these fields. The test should include the following:

resource "google_gke_hub_fleet" "primary" {
  display_name = # value needed
}

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 3093
Passed tests 2791
Skipped tests: 299
Affected tests: 3

Action taken

Found 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccDataprocJobIamPolicy|TestAccDataSourceGoogleServiceAccountIdToken_impersonation|TestAccDataSourceGoogleServiceAccountJwt

Get to know how VCR tests work

@modular-magician
Copy link
Collaborator

$\textcolor{green}{\textsf{Tests passed during RECORDING mode:}}$
TestAccDataprocJobIamPolicy[Debug log]
TestAccDataSourceGoogleServiceAccountIdToken_impersonation[Debug log]
TestAccDataSourceGoogleServiceAccountJwt[Debug log]

Rerun these tests in REPLAYING mode to catch issues

$\textcolor{green}{\textsf{No issues found for passed tests after REPLAYING rerun.}}$


$\textcolor{green}{\textsf{All tests passed!}}$
View the build log or the debug log for each test

@sandmman
Copy link
Contributor Author

@NickElliot Ahh, yeah sorry about that! I didn't realize they weren't implemented. Everything looks good now!

Copy link
Contributor

@NickElliot NickElliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants