This commit is contained in:
Marcin Grzejszczak
2019-04-25 17:37:11 +04:00
parent 6db40b2ac4
commit ca30632aba
7 changed files with 26 additions and 149 deletions

View File

@@ -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();
}
}

View File

@@ -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