Your team is developing unit tests for Cloud Function code. The code is stored in a Cloud Source Repositories repository. You are responsible for implementing the tests. Only a specic service account has the necessary permissions to deploy the code to Cloud Functions. You want to ensure that the code cannot be deployed without rst passing the tests. How should you congure the unit testing process?
A、CongureCloudBuildtodeploytheCloudFunction.Ifthecodepassesthetests,adeploymentapprovalissenttoyou.
B、CongureCloudBuildtodeploytheCloudFunction,usingthespecicserviceaccountasthebuildagent.Runtheunittestsaftersuccessfuldeployment.
C、CongureCloudBuildtoruntheunittests.Ifthecodepassesthetests,thedeveloperdeploystheCloudFunction.
D、CongureCloudBuildtoruntheunittests,usingthespecicserviceaccountasthebuildagent.Ifthecodepassesthetests,CloudBuilddeploystheCloudFunction.
发布时间:2024-09-28 17:51:51