feat: release OpsXShell 2.1.0 native Tauri edition
This commit is contained in:
1 parent
e9a0d21758
commit
a3dba0c6ed
311 files changed
+31748
-14897
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { describe, it, expect } from 'vitest'
|
||||
import type { JumpHostConfig, SSHConnectionConfig } from '../../shared/types/session.types'
|
||||
|
||||
describe('JumpHost types', () => {
|
||||
it('allows jumpHost on connection config', () => {
|
||||
const jump: JumpHostConfig = {
|
||||
host: 'bastion.example.com',
|
||||
port: 22,
|
||||
username: 'ops',
|
||||
authType: 'key',
|
||||
privateKey: '~/.ssh/id_ed25519',
|
||||
}
|
||||
const config: SSHConnectionConfig = {
|
||||
host: '10.0.0.5',
|
||||
port: 22,
|
||||
username: 'root',
|
||||
jumpHost: jump,
|
||||
}
|
||||
expect(config.jumpHost?.host).toBe('bastion.example.com')
|
||||
expect(config.host).toBe('10.0.0.5')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user