@@ -162,21 +162,21 @@ func TestVPN(t *testing.T) {
162
162
},
163
163
Case : testVPNRemoveTransport ,
164
164
},
165
- // TODO: mrpalide, 0pcom | this test temporary command because of new changes on its subcommand
166
- // {
167
- // Name: "test vpn subcommand list",
168
- // ParticipatingVisorsHostNames: []string{visorVPNServer},
169
- // AppsToRun: []AppToRun{
170
- // {
171
- // VisorHostName: visorVPNServer,
172
- // AppName: skyenv.VPNServerName,
173
- // VisorServerName: "",
174
- // },
175
- // },
176
- // AppArgsToSet: []AppArg{},
177
- // TransportsToAdd: []Transport{},
178
- // Case: testVPNList,
179
- // },
165
+
166
+ {
167
+ Name : "test vpn subcommand list" ,
168
+ ParticipatingVisorsHostNames : []string {visorVPNServer },
169
+ AppsToRun : []AppToRun {
170
+ {
171
+ VisorHostName : visorVPNServer ,
172
+ AppName : skyenv .VPNServerName ,
173
+ VisorServerName : "" ,
174
+ },
175
+ },
176
+ AppArgsToSet : []AppArg {},
177
+ TransportsToAdd : []Transport {},
178
+ Case : testVPNList ,
179
+ },
180
180
}
181
181
182
182
RunIntegrationTestCase (t , tt )
@@ -220,12 +220,11 @@ func testVPNRemoveTransport(t *testing.T, env *TestEnv) {
220
220
}
221
221
}
222
222
223
- // TODO: mrpalide, 0pcom | this test temporary command because of new changes on its subcommand
224
- // func testVPNList(t *testing.T, env *TestEnv) {
225
- // vpns, err := env.VPNList(visorVPNServer)
226
- // require.NoError(t, err)
227
- // require.Equal(t, env.visorPKs[visorVPNServer], vpns[0].Addr.PubKey().Hex())
228
- // }
223
+ func testVPNList (t * testing.T , env * TestEnv ) {
224
+ vpns , err := env .VPNList (visorVPNServer )
225
+ require .NoError (t , err )
226
+ require .Equal (t , env .visorPKs [visorVPNServer ], vpns [0 ].Addr .PubKey ().Hex ())
227
+ }
229
228
230
229
func testVPNCanRouteThroughSUDPH (t * testing.T , env * TestEnv ) {
231
230
t .Run ("traffic goes through VPN SUDPH" , func (t * testing.T ) {
0 commit comments