mirror of
https://github.com/apache/rocketmq-dashboard.git
synced 2026-02-20 03:55:42 +08:00
[ISSUE-205|247] Support SSL + Login: Polish with testcase, doc, session over cookie
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package org.apache.rocketmq.console.service.impl;
|
||||
|
||||
import org.apache.rocketmq.console.config.RMQConfigure;
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
public class LoginFileTest {
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
}
|
||||
|
||||
@After
|
||||
public void tearDown() throws Exception {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testLoad() throws Exception {
|
||||
RMQConfigure configure = new RMQConfigure();
|
||||
configure.setDataPath(this.getClass().getResource("/").getPath());
|
||||
|
||||
UserServiceImpl.FileBasedUserInfoStore fileBasedUserInfoStore = new UserServiceImpl.FileBasedUserInfoStore(configure);
|
||||
Assert.assertTrue("No exception raise for FileBasedUserInfoStore", true);
|
||||
}
|
||||
}
|
||||
2
src/test/resources/users.properties
Normal file
2
src/test/resources/users.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
admin=admin
|
||||
test=test
|
||||
Reference in New Issue
Block a user