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

Adding mocks for cloudidentity membership API #3486

Merged
merged 7 commits into from
Jan 23, 2025

Conversation

barney-s
Copy link
Collaborator

@barney-s barney-s commented Jan 14, 2025

Change description

Adding mocks for cloudidentity membership API

Tests Run

The following tests passed:

E2E_KUBE_TARGET=envtest RUN_E2E=1 E2E_GCP_TARGET=mock go test -test.count=1 -timeout 3600s -v ./tests/e2e -run TestAllInSeries/fixtures/addexpirydatecloudidentitymembership 2>&1 | tee log.cloudidentity
E2E_KUBE_TARGET=envtest RUN_E2E=1 E2E_GCP_TARGET=mock go test -test.count=1 -timeout 3600s -v ./tests/e2e -run TestAllInSeries/fixtures/addrolecloudidentitymembership 2>&1 | tee log.cloudidentity
E2E_KUBE_TARGET=envtest RUN_E2E=1 E2E_GCP_TARGET=mock go test -test.count=1 -timeout 3600s -v ./tests/e2e -run TestAllInSeries/fixtures/removerolecloudidentitymembership 2>&1 | tee log.cloudidentity

@@ -25,3 +33,16 @@ func ValueOf[T any](p *T) T {
}
return v
}

func buildLRO(obj proto.Message) (*longrunning.Operation, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: we do have an operations helper - search for operations.StartLRO

@barney-s barney-s changed the title [WIP] Adding mocks for cloudidentity membership API Adding mocks for cloudidentity membership API Jan 16, 2025
@yuwenma
Copy link
Collaborator

yuwenma commented Jan 17, 2025

/approve

Thanks!

Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yuwenma

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@barney-s barney-s force-pushed the cidentmgr-mock-a branch 4 times, most recently from f4dd163 to 2bed312 Compare January 17, 2025 23:43
generated using:
hack/compare-mock fixtures/addexpirydatecloudidentitymembership
hack/compare-mock fixtures/addrolecloudidentitymembership
hack/compare-mock fixtures/removerolecloudidentitymembership
Commands run:
WRITE_GOLDEN_OUTPUT=1 ./scripts/github-actions/tests-e2e-scenarios.sh
hack/compare-mock fixtures/fullcsaugkehubfeaturemembership
hack/compare-mock fixtures/fullpocogkehubfeaturemembership
hack/compare-mock fixtures/fullacmgkehubfeaturemembership
hack/compare-mock fixtures/basicacmgkehubfeaturemembership
hack/compare-mock fixtures/basicpocogkehubfeaturemembership
hack/compare-mock fixtures/basiccsaugkehubfeaturemembership
hack/compare-mock fixtures/acmfeature
hack/compare-mock fixtures/mcifeature
hack/compare-mock fixtures/gkehubmembership
hack/compare-mock fixtures/meshgkehubfeaturemembership
WRITE_GOLDEN_OUTPUT=1 ./scripts/github-actions/tests-e2e-fixtures
@jasonvigil
Copy link
Collaborator

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Jan 23, 2025
@google-oss-prow google-oss-prow bot merged commit d3cf43e into GoogleCloudPlatform:master Jan 23, 2025
18 checks passed
@barney-s barney-s deleted the cidentmgr-mock-a branch January 24, 2025 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants