Refactor VPN proxy components and update related behavior
This commit is contained in:
@@ -48,7 +48,11 @@ test('data invariant: one canonical snapshot owns server selection and never exp
|
||||
});
|
||||
|
||||
assert.equal(snapshot.revision, 9);
|
||||
assert.deepEqual(snapshot.selection, { desiredServerId: selectedServerId, appliedServerId: selectedServerId });
|
||||
assert.equal(snapshot.selection.desiredProfileId, 'profile_primary');
|
||||
assert.equal(snapshot.selection.desiredServerId, selectedServerId);
|
||||
assert.equal(snapshot.selection.appliedProfileId, 'profile_primary');
|
||||
assert.equal(snapshot.selection.appliedServerId, selectedServerId);
|
||||
assert.equal(snapshot.selection.appliedServerSnapshot?.id, selectedServerId);
|
||||
assert.equal(snapshot.servers.find((server) => server.id === selectedServerId)?.host, 'vpn-17.example.test');
|
||||
assert.equal(JSON.stringify(snapshot).includes('private-token'), false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user