Skip to content
Snippets Groups Projects
Commit 66e6c8d5 authored by Martin Staehr's avatar Martin Staehr
Browse files

#63 add users for testing and admin

parent 23d11541
No related branches found
No related tags found
No related merge requests found
......@@ -4,11 +4,15 @@ import unipotsdam.gf.core.management.user.User;
public class GFRocketChatConfig {
public static final String ROCKET_CHAT_API_LINK = "http://rocketchat.westeurope.cloudapp.azure.com/api/v1/";
private static final String ROCKET_CHAT_LINK = "http://rocketchat.westeurope.cloudapp.azure.com/";
public static final String ADMIN_USERNAME = "";
public static final String ADMIN_TOKEN = "";
public static final String ROCKET_CHAT_ROOM_LINK = ROCKET_CHAT_LINK + "groups/";
public static final User TEST_USER = new User("Test Nachname", "NRywSvBGZy6kp4448", "test@gmail.com",
"TestNachname", false);
public static final String ROCKET_CHAT_API_LINK = ROCKET_CHAT_LINK + "api/v1/";
public static final User ADMIN_USER = new User("Admin Nachname", "adminpassword", "adminmail@adminmail.com",
"AdminNachname", "rocketChatPersonalAccessToken", "rocketChatUserId");
public static final User TEST_USER = new User("Test Nachname", "testpassword", "test@gmail.com",
"TestNachname", "rocketChatPersonalAccessToken", "rocketChatUserId");
}
......@@ -36,6 +36,7 @@ import java.util.stream.Collectors;
import static unipotsdam.gf.config.GFRocketChatConfig.ADMIN_USER;
import static unipotsdam.gf.config.GFRocketChatConfig.ROCKET_CHAT_API_LINK;
import static unipotsdam.gf.config.GFRocketChatConfig.ROCKET_CHAT_ROOM_LINK;
@Resource
@ManagedBean
......@@ -297,7 +298,7 @@ public class CommunicationDummyService implements ICommunication {
return Strings.EMPTY;
}
return ROCKET_CHAT_API_LINK + "/group/" + chatRoomName + "?layout=embedded";
return ROCKET_CHAT_ROOM_LINK + chatRoomName + "?layout=embedded";
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment