test: Remove unnecessary dependent project #3754
Open
+295
−1,034
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change description
Followup of #3663.
The integration test is still failing after #3663 was merged. I realized all dependent resources must use the same project, example error message: Invalid value for field 'resource.backend_service': 'xxx'. Only external forwarding rules are allowed to reference cross-project backends. After I updated the projectRef for forwarding rule, the backendservice, network, subnetwork etc need to be updated to use the same dependent project.
I didn't notice this because in my local test, I replaced the dependent project with my cnrm project, making the main project(${projectId}) and the dependent project same. Then I realized that the dependent project might be unnecessary, as we may not need an extra project other than ${projectId} to create dependent resources.
Tests you have done
Gerrit cl: https://cnrm-review.git.corp.google.com/c/cnrm/+/72620
Tests passed: https://prow-gob.gcpnode.com/view/gs/cnrm-prow/pr-logs/pull/cnrm-review.googlesource.com_cnrm/72620/cnrm-test/1893043641480384512
make ready-pr
to ensure this PR is ready for review.