1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-04 16:37:12 -05:00

Chore: change scenarios tests of VMess to AEAD

This commit is contained in:
秋のかえで 2022-01-01 11:10:09 +08:00 committed by Shelikhoo
parent 072fa3e633
commit 7c76868797
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316
6 changed files with 41 additions and 41 deletions

View File

@ -182,7 +182,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: u1.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -249,7 +249,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: u2.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -286,7 +286,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
Email: "test@v2fly.org",
Account: serial.ToTypedMessage(&vmess.Account{
Id: u2.String(),
AlterId: 64,
AlterId: 0,
}),
},
}),
@ -377,7 +377,7 @@ func TestCommanderStats(t *testing.T) {
Email: "test",
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -433,7 +433,7 @@ func TestCommanderStats(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},

View File

@ -675,7 +675,7 @@ func TestDialV2Ray(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -707,7 +707,7 @@ func TestDialV2Ray(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},

View File

@ -77,7 +77,7 @@ func TestVMessClosing(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -131,7 +131,7 @@ func TestVMessClosing(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -191,7 +191,7 @@ func TestZeroBuffer(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -239,7 +239,7 @@ func TestZeroBuffer(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},

View File

@ -94,7 +94,7 @@ func TestReverseProxy(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -169,7 +169,7 @@ func TestReverseProxy(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -279,7 +279,7 @@ func TestReverseProxyLongRunning(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -368,7 +368,7 @@ func TestReverseProxyLongRunning(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},

View File

@ -291,7 +291,7 @@ func TestVMessQuic(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -355,7 +355,7 @@ func TestVMessQuic(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},

View File

@ -217,7 +217,7 @@ func TestVMessGCM(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -265,7 +265,7 @@ func TestVMessGCM(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -323,7 +323,7 @@ func TestVMessGCMReadv(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -371,7 +371,7 @@ func TestVMessGCMReadv(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -432,7 +432,7 @@ func TestVMessGCMUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -480,7 +480,7 @@ func TestVMessGCMUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -535,7 +535,7 @@ func TestVMessChacha20(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -583,7 +583,7 @@ func TestVMessChacha20(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_CHACHA20_POLY1305,
},
@ -639,7 +639,7 @@ func TestVMessNone(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -687,7 +687,7 @@ func TestVMessNone(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_NONE,
},
@ -745,7 +745,7 @@ func TestVMessKCP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -793,7 +793,7 @@ func TestVMessKCP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -875,7 +875,7 @@ func TestVMessKCPLarge(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -923,7 +923,7 @@ func TestVMessKCPLarge(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -1006,7 +1006,7 @@ func TestVMessGCMMux(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -1060,7 +1060,7 @@ func TestVMessGCMMux(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -1125,7 +1125,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -1193,7 +1193,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -1256,7 +1256,7 @@ func TestVMessZero(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -1304,7 +1304,7 @@ func TestVMessZero(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_ZERO,
},
@ -1359,7 +1359,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@ -1407,7 +1407,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},
@ -1466,7 +1466,7 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
TestsEnabled: "AuthenticatedLength|NoTerminationSignal",
}),
},
@ -1515,7 +1515,7 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
SecuritySettings: &protocol.SecurityConfig{
Type: protocol.SecurityType_AES128_GCM,
},