Skip to content

Commit

Permalink
Replace actual sonar tokens in tests with a random string
Browse files Browse the repository at this point in the history
  • Loading branch information
steinarb committed Jul 5, 2024
1 parent f96ce84 commit fe48daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void testSonarApiUserTokenConfigNotSet() {
@Test
void testHasSonarApiUserToken() {
var configuration = new SonarCollectorConfiguration();
var usertoken = "squ_3869fbac07cc388306804e35fb72ca7c4baff275";
var usertoken = "xyzzy";
var config = new HashMap<String, Object>();
config.put(SonarCollectorConfiguration.SONAR_USER_TOKEN, usertoken);
configuration.setConfig(config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ void testParseTimestamp() throws IOException {
@Test
void testOpenConnectionWithUserToken() throws Exception {
var logservice = new MockLogService();
var usertoken = "squ_3869fbac07cc388306804e35fb72ca7c4baff275";
var usertoken = "xyzzy";
var config = new HashMap<String, Object>();
config.put(SonarCollectorConfiguration.SONAR_USER_TOKEN, usertoken);
var servlet = new SonarCollectorServlet();
Expand Down

0 comments on commit fe48daf

Please sign in to comment.