1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-11-07 07:57:16 -05:00

Chore: change scenarios tests of VMess to AEAD

This commit is contained in:
秋のかえで
2022-01-01 11:10:09 +08:00
parent 36cfbed180
commit 1ebb564047
6 changed files with 41 additions and 41 deletions

View File

@@ -183,7 +183,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: u1.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -250,7 +250,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,
},
@@ -287,7 +287,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
Email: "test@v2fly.org",
Account: serial.ToTypedMessage(&vmess.Account{
Id: u2.String(),
AlterId: 64,
AlterId: 0,
}),
},
}),
@@ -378,7 +378,7 @@ func TestCommanderStats(t *testing.T) {
Email: "test",
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -434,7 +434,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

@@ -674,7 +674,7 @@ func TestDialV2Ray(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -706,7 +706,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

@@ -78,7 +78,7 @@ func TestVMessClosing(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -132,7 +132,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,
},
@@ -192,7 +192,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

@@ -96,7 +96,7 @@ func TestReverseProxy(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -171,7 +171,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,
},
@@ -280,7 +280,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,
}),
},
},
@@ -354,7 +354,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

@@ -216,7 +216,7 @@ func TestVMessGCM(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -263,7 +263,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,
},
@@ -320,7 +320,7 @@ func TestVMessGCMReadv(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -367,7 +367,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,
},
@@ -427,7 +427,7 @@ func TestVMessGCMUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -474,7 +474,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,
},
@@ -528,7 +528,7 @@ func TestVMessChacha20(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -575,7 +575,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,
},
@@ -630,7 +630,7 @@ func TestVMessNone(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -677,7 +677,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,
},
@@ -734,7 +734,7 @@ func TestVMessKCP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -781,7 +781,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,
},
@@ -862,7 +862,7 @@ func TestVMessKCPLarge(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -909,7 +909,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,
},
@@ -991,7 +991,7 @@ func TestVMessGCMMux(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -1044,7 +1044,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,
},
@@ -1108,7 +1108,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -1175,7 +1175,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,
},
@@ -1237,7 +1237,7 @@ func TestVMessZero(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -1284,7 +1284,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,
},
@@ -1338,7 +1338,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
@@ -1385,7 +1385,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,
},
@@ -1443,7 +1443,7 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
TestsEnabled: "AuthenticatedLength|NoTerminationSignal",
}),
},
@@ -1491,7 +1491,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,
},