|
|
@@ -44,7 +44,7 @@ func TestAuthService_BUCPLoginRequest(t *testing.T) {
|
|
|
name: "user provides valid credentials and logs in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x02_BUCPLoginRequest{
|
|
|
TLVRestBlock: wire.TLVRestBlock{
|
|
|
@@ -93,7 +93,7 @@ func TestAuthService_BUCPLoginRequest(t *testing.T) {
|
|
|
name: "user logs in with non-existent screen name--account is created and logged in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
DisableAuth: true,
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x02_BUCPLoginRequest{
|
|
|
@@ -151,7 +151,7 @@ func TestAuthService_BUCPLoginRequest(t *testing.T) {
|
|
|
name: "user logs in with invalid password--account is created and logged in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
DisableAuth: true,
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x02_BUCPLoginRequest{
|
|
|
@@ -209,7 +209,7 @@ func TestAuthService_BUCPLoginRequest(t *testing.T) {
|
|
|
name: "user logs in with invalid password--account already exists and logged in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
DisableAuth: true,
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x02_BUCPLoginRequest{
|
|
|
@@ -330,7 +330,7 @@ func TestAuthService_BUCPLoginRequest(t *testing.T) {
|
|
|
name: "user provides invalid password and receives invalid login response",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x02_BUCPLoginRequest{
|
|
|
TLVRestBlock: wire.TLVRestBlock{
|
|
|
@@ -456,7 +456,7 @@ func TestAuthService_FLAPLoginResponse(t *testing.T) {
|
|
|
name: "user provides valid credentials and logs in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
},
|
|
|
inputSNAC: wire.FLAPSignonFrame{
|
|
|
TLVRestBlock: wire.TLVRestBlock{
|
|
|
@@ -497,7 +497,7 @@ func TestAuthService_FLAPLoginResponse(t *testing.T) {
|
|
|
name: "user logs in with non-existent screen name--account is created and logged in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
DisableAuth: true,
|
|
|
},
|
|
|
inputSNAC: wire.FLAPSignonFrame{
|
|
|
@@ -547,7 +547,7 @@ func TestAuthService_FLAPLoginResponse(t *testing.T) {
|
|
|
name: "user logs in with invalid password--account is created and logged in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
DisableAuth: true,
|
|
|
},
|
|
|
inputSNAC: wire.FLAPSignonFrame{
|
|
|
@@ -597,7 +597,7 @@ func TestAuthService_FLAPLoginResponse(t *testing.T) {
|
|
|
name: "user logs in with invalid password--account already exists and logged in successfully",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
DisableAuth: true,
|
|
|
},
|
|
|
inputSNAC: wire.FLAPSignonFrame{
|
|
|
@@ -710,7 +710,7 @@ func TestAuthService_FLAPLoginResponse(t *testing.T) {
|
|
|
name: "user provides invalid password and receives invalid login response",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
},
|
|
|
inputSNAC: wire.FLAPSignonFrame{
|
|
|
TLVRestBlock: wire.TLVRestBlock{
|
|
|
@@ -816,7 +816,7 @@ func TestAuthService_BUCPChallengeRequest(t *testing.T) {
|
|
|
name: "login with valid username, expect OK login response",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x06_BUCPChallengeRequest{
|
|
|
TLVRestBlock: wire.TLVRestBlock{
|
|
|
@@ -852,7 +852,7 @@ func TestAuthService_BUCPChallengeRequest(t *testing.T) {
|
|
|
name: "login with invalid username, expect OK login response (Cfg.DisableAuth=true)",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
DisableAuth: true,
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x06_BUCPChallengeRequest{
|
|
|
@@ -886,7 +886,7 @@ func TestAuthService_BUCPChallengeRequest(t *testing.T) {
|
|
|
name: "login with invalid username, expect failed login response (Cfg.DisableAuth=false)",
|
|
|
cfg: config.Config{
|
|
|
OSCARHost: "127.0.0.1",
|
|
|
- BOSPort: 1234,
|
|
|
+ BOSPort: "1234",
|
|
|
},
|
|
|
inputSNAC: wire.SNAC_0x17_0x06_BUCPChallengeRequest{
|
|
|
TLVRestBlock: wire.TLVRestBlock{
|