You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am working with Google Analytics API , and need to create unit testing for that using gock. Is it possible?
how to mock this part ?? analyticsService, _ := analytics.NewService(ctx, option.WithCredentialsJSON(cred))
it asks me to put the real private key on Credential JSON or I will get this following error: private key should be a PEM or plain PKCS1 or PKCS8; parse error: asn1: structure error: tags don't match (16 vs {class:0 tag:8 length:1214 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} pkcs1PrivateKey
Thank you.
The text was updated successfully, but these errors were encountered:
Hi, I am working with Google Analytics API , and need to create unit testing for that using gock. Is it possible?
how to mock this part ??
analyticsService, _ := analytics.NewService(ctx, option.WithCredentialsJSON(cred))
it asks me to put the real private key on Credential JSON or I will get this following error:
private key should be a PEM or plain PKCS1 or PKCS8; parse error: asn1: structure error: tags don't match (16 vs {class:0 tag:8 length:1214 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} pkcs1PrivateKey
Thank you.
The text was updated successfully, but these errors were encountered: