I updated the code using the non-deprecated way of using Google Cloud IAM impersonation.
Despite my efforts, I've been unable to submit any relevant unit tests since this part of the code is tied to Google remote API (POST requests are performed).
I tried to invoke/create mocking objects without success.
As a result, I think that this should be tested with integration tests but it looks like nothing similar exists yet (it would probably be quite expensive to have a dedicated GCP project).
Nevertheless, I would be more than happy if someone could help me on that.
Hope my contribution will be helpful.
I updated the code using the non-deprecated way of using Google Cloud IAM impersonation.
Despite my efforts, I've been unable to submit any relevant unit tests since this part of the code is tied to Google remote API (POST requests are performed). I tried to invoke/create mocking objects without success.
As a result, I think that this should be tested with integration tests but it looks like nothing similar exists yet (it would probably be quite expensive to have a dedicated GCP project).
Nevertheless, I would be more than happy if someone could help me on that. Hope my contribution will be helpful.
Closes #83