Skip to content

Commit

Permalink
Merge branch '5.8.x' into 5.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelamo committed Dec 13, 2024
2 parents 13566dc + c42c2db commit a16d51b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,6 @@ jobs:
- name: Upload assets
# Upload the artifacts to the existing release. Note that the SLSA provenance will
# attest to each artifact file and not the aggregated ZIP file.
uses: softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
with:
files: artifacts.zip
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
*/
@Singleton
@Requires(classes = HttpClient.class)
@Requires(property = GoogleCredentialsConfiguration.PREFIX + ".use-http-client", value = StringUtils.TRUE, defaultValue = StringUtils.TRUE)
@Requires(property = GoogleCredentialsConfiguration.PREFIX + ".use-http-client", value = StringUtils.TRUE, defaultValue = StringUtils.FALSE)
public class DefaultOAuth2HttpTransportFactory implements HttpTransportFactory {

private static final Logger LOG = LoggerFactory.getLogger(DefaultOAuth2HttpTransportFactory.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import jakarta.inject.Inject
import spock.lang.Specification

@MicronautTest
@Property(name = "gcp.credentials.use-http-client", value = StringUtils.FALSE)
class DefaultOAuth2HttpTransportFactoryDisabledSpec extends Specification {

@Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import io.micronaut.context.exceptions.BeanInstantiationException
import io.micronaut.context.exceptions.ConfigurationException
import io.micronaut.context.exceptions.NoSuchBeanException
import io.micronaut.core.reflect.ReflectionUtils
import io.micronaut.core.util.StringUtils
import io.micronaut.http.HttpResponse
import io.micronaut.http.HttpStatus
import io.micronaut.http.MediaType
Expand Down Expand Up @@ -275,6 +276,7 @@ class GoogleCredentialsFactorySpec extends Specification {
"micronaut.server.port" : 8080
])
def ctx = ApplicationContext.run([
"gcp.credentials.use-http-client" : StringUtils.TRUE,
(GoogleCredentialsConfiguration.PREFIX + ".location"): serviceAccountCredentials.getPath()
])
GoogleCredentials gc = ctx.getBean(GoogleCredentials)
Expand Down Expand Up @@ -302,6 +304,7 @@ class GoogleCredentialsFactorySpec extends Specification {
"micronaut.server.port" : 8080
])
def ctx = ApplicationContext.run([
"gcp.credentials.use-http-client" : StringUtils.TRUE,
(GoogleCredentialsConfiguration.PREFIX + ".encoded-key"): encodedServiceAccountCredentials
])
GoogleCredentials gc = ctx.getBean(GoogleCredentials)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class StackdriverJsonLayoutSpec extends Specification {
then:
result['severity'] == expectedSeverity
result['message'] == 'the message\njava.lang.IllegalArgumentException: exception message\n'
result['thread'] == 'main'
result['thread'] == 'main' || result['thread'] == 'Test worker'
result['logger'] == this.class.canonicalName
result['timestampSeconds'] == TimeUnit.MILLISECONDS.toSeconds(event.timeStamp)
result['timestampNanos'] == TimeUnit.MILLISECONDS.toNanos(event.getTimeStamp() % 1_000)
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit a16d51b

Please sign in to comment.