Skip to content

Commit

Permalink
Chore: change scenarios tests of VMess to AEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinoKaede committed Jan 1, 2022
1 parent 36cfbed commit 1ebb564
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 41 deletions.
10 changes: 5 additions & 5 deletions testing/scenarios/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: u1.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -287,7 +287,7 @@ func TestCommanderAddRemoveUser(t *testing.T) {
Email: "[email protected]",
Account: serial.ToTypedMessage(&vmess.Account{
Id: u2.String(),
AlterId: 64,
AlterId: 0,
}),
},
}),
Expand Down Expand Up @@ -378,7 +378,7 @@ func TestCommanderStats(t *testing.T) {
Email: "test",
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down
4 changes: 2 additions & 2 deletions testing/scenarios/feature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ func TestDialV2Ray(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down
8 changes: 4 additions & 4 deletions testing/scenarios/policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func TestVMessClosing(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -192,7 +192,7 @@ func TestZeroBuffer(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down
8 changes: 4 additions & 4 deletions testing/scenarios/reverse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func TestReverseProxy(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -280,7 +280,7 @@ func TestReverseProxyLongRunning(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down
4 changes: 2 additions & 2 deletions testing/scenarios/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func TestVMessQuic(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down
48 changes: 24 additions & 24 deletions testing/scenarios/vmess_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func TestVMessGCM(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -320,7 +320,7 @@ func TestVMessGCMReadv(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -427,7 +427,7 @@ func TestVMessGCMUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -528,7 +528,7 @@ func TestVMessChacha20(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -630,7 +630,7 @@ func TestVMessNone(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -734,7 +734,7 @@ func TestVMessKCP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -862,7 +862,7 @@ func TestVMessKCPLarge(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -991,7 +991,7 @@ func TestVMessGCMMux(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -1108,7 +1108,7 @@ func TestVMessGCMMuxUDP(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -1237,7 +1237,7 @@ func TestVMessZero(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -1338,7 +1338,7 @@ func TestVMessGCMLengthAuth(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
}),
},
},
Expand Down Expand Up @@ -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,
},
Expand Down Expand Up @@ -1443,7 +1443,7 @@ func TestVMessGCMLengthAuthPlusNoTerminationSignal(t *testing.T) {
{
Account: serial.ToTypedMessage(&vmess.Account{
Id: userID.String(),
AlterId: 64,
AlterId: 0,
TestsEnabled: "AuthenticatedLength|NoTerminationSignal",
}),
},
Expand Down Expand Up @@ -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,
},
Expand Down

0 comments on commit 1ebb564

Please sign in to comment.