pulumi / pulumi-gcp

A Google Cloud Platform (GCP) Pulumi resource package, providing multi-language access to GCP
Apache License 2.0
180 stars 52 forks source link

Cover top 20 resources with upgrade tests #1500

Closed iwahbe closed 7 months ago

iwahbe commented 8 months ago

We need to add upgrade tests for:

We already have upgrade tests for:

t0yv0 commented 8 months ago

Does this overlap with https://github.com/pulumi/pulumi-gcp/issues/1330 ? Add this to the epic?

t0yv0 commented 8 months ago

I had some trouble getting the right permissions to test IAM*, curious if we find a way forward here.

iwahbe commented 8 months ago

I missed https://github.com/pulumi/pulumi-gcp/issues/1330, so probably. @VenelinMartinov you can leave off the IAM* resources if they are not working.

t0yv0 commented 8 months ago
✅ TestUpgradeCoverage (0s)
      provider_test.go:19: Resources covered: 21
      provider_test.go:19: - gcp:bigquery/dataset:Dataset
      provider_test.go:19: - gcp:bigquery/datasetAccess:DatasetAccess
      provider_test.go:19: - gcp:bigquery/routine:Routine
      provider_test.go:19: - gcp:bigquery/table:Table
      provider_test.go:19: - gcp:cloudfunctions/function:Function
      provider_test.go:19: - gcp:cloudrunv2/job:Job
      provider_test.go:19: - gcp:cloudrunv2/service:Service
      provider_test.go:19: - gcp:compute/disk:Disk
      provider_test.go:19: - gcp:compute/firewall:Firewall
      provider_test.go:19: - gcp:compute/instance:Instance
      provider_test.go:19: - gcp:compute/network:Network
      provider_test.go:19: - gcp:dns/managedZone:ManagedZone
      provider_test.go:19: - gcp:dns/recordSet:RecordSet
      provider_test.go:19: - gcp:monitoring/alertPolicy:AlertPolicy
      provider_test.go:19: - gcp:pubsub/subscription:Subscription
      provider_test.go:19: - gcp:pubsub/topic:Topic
      provider_test.go:19: - gcp:secretmanager/secret:Secret
      provider_test.go:19: - gcp:sql/databaseInstance:DatabaseInstance
      provider_test.go:19: - gcp:sql/user:User
      provider_test.go:19: - gcp:storage/bucket:Bucket
      provider_test.go:19: - gcp:storage/bucketObject:BucketObject
t0yv0 commented 8 months ago

This is the current cov btw... so technically >20 though maybe not the right 20.

t0yv0 commented 8 months ago

The epic is https://github.com/pulumi/home/issues/3061

VenelinMartinov commented 8 months ago

gcp:logging/projectSink:ProjectSink seems to also yield 403s upon creation with our current credentials.

VenelinMartinov commented 8 months ago

Is there a reason not to change the current credentials to ones with full permissions and just use that for tests?

IIUC, that's basically what we do for AWS.

t0yv0 commented 8 months ago

It may be worht looking into, thinking through security implications and double-checking we don't rack up bills (there is some form of cleanup).

t0yv0 commented 8 months ago

Going to reopen this because https://github.com/pulumi/pulumi-gcp/pull/1511 tests aren't actually running, which manifests in a louder failure when upgrading to later providertest.. Looks like we need to check in the snapshotted grpcs logs and state for the new programs.

iwahbe commented 8 months ago

I'm surprised that this failed silently. Should we open an issue in providertest about this?

Are the silent failures fixed in the current version of providertest?

t0yv0 commented 7 months ago

https://github.com/pulumi/pulumi-gcp/pull/1579 new version will try to record a baseline if it does not find one it seems.

t0yv0 commented 7 months ago

🚢