feat(connection): test SSH tunnel profiles
This commit is contained in:
1 parent
27c60f0d30
commit
c7991b316e
19 files changed
+256
-4
No files matched your search
@@ -44,5 +44,14 @@ export const useTunnelProfileStore = defineStore("tunnelProfiles", () => {
|
||||
}
|
||||
}
|
||||
|
||||
return { profiles, isLoaded, init, refresh, profileById, saveProfiles };
|
||||
/**
|
||||
* Tests a profile's transport layer in isolation (no downstream database).
|
||||
* The draft profile is passed straight through, so it validates the values
|
||||
* currently in the editor rather than the last-saved copy.
|
||||
*/
|
||||
async function testProfile(profile: TunnelProfile): Promise<string> {
|
||||
return api.testTunnelProfile(profile);
|
||||
}
|
||||
|
||||
return { profiles, isLoaded, init, refresh, profileById, saveProfiles, testProfile };
|
||||
});
|
||||
Reference in new issue
Block a user