Updated
This commit is contained in:
@@ -41,7 +41,7 @@ class SaganConfiguration {
|
||||
+ "You can do it via the [--releaser.git.oauth-token=...] "
|
||||
+ "command line argument or an env variable [export RELEASER_GIT_OAUTH_TOKEN=...].");
|
||||
return new RestTemplateBuilder()
|
||||
.basicAuthorization(properties.getGit().getOauthToken(), "").build();
|
||||
.basicAuthentication(properties.getGit().getOauthToken(), "").build();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,8 @@ import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.test.context.junit4.SpringRunner;
|
||||
|
||||
@RunWith(SpringRunner.class)
|
||||
@SpringBootTest(classes = ReleaserApplicationEventTests.Config.class, properties = "releaser.git.oauth-token=some-fake-token")
|
||||
@SpringBootTest(classes = ReleaserApplicationEventTests.Config.class,
|
||||
properties = "releaser.git.oauth-token=some-fake-token")
|
||||
public class ReleaserApplicationEventTests {
|
||||
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user