Skip to content

Commit

Permalink
Revert "fix pubsub binder tests"
Browse files Browse the repository at this point in the history
This reverts commit 7b82400.
  • Loading branch information
diegomarquezp committed Dec 30, 2024
1 parent 14c40cc commit be28c72
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ void init() {
new ApplicationContextRunner()
.withBean(PubSubTemplate.class, () -> pubSubTemplate)
.withBean(PubSubAdmin.class, () -> pubSubAdmin)
.withPropertyValues("logging.level.root=DEBUG", "debug=true")
.withUserConfiguration(BaseTestConfiguration.class)
.withConfiguration(
AutoConfigurations.of(
Expand Down Expand Up @@ -368,16 +369,6 @@ public static class BaseTestConfiguration {
public PubSubExtendedBindingProperties pubSubExtendedBindingProperties() {
return new PubSubExtendedBindingProperties();
}

@Bean
public CredentialsProvider googleCredentials() {
return () -> TestUtils.MOCK_CREDENTIALS;
}

@Bean
public GcpProjectIdProvider projectIdProvider() {
return () -> "fake project";
}
}

@EnableAutoConfiguration
Expand All @@ -403,5 +394,15 @@ public Supplier<Flux<String>> producer() {
public Consumer<String> consumer() {
return str -> LOGGER.info("received " + str);
}

@Bean
public GcpProjectIdProvider projectIdProvider() {
return () -> "fake project";
}

@Bean
public CredentialsProvider googleCredentials() {
return () -> TestUtils.MOCK_CREDENTIALS;
}
}
}

0 comments on commit be28c72

Please sign in to comment.