Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/api/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ import type {
VpcFirewallRuleUpdate,
} from './__generated__/Api'

// API limits encoded in https://github.com/oxidecomputer/omicron/blob/b7af5f8e/nexus/src/app/mod.rs
// API limits encoded in https://github.com/oxidecomputer/omicron/blob/aec3cd8d/nexus/src/app/mod.rs

export const MAX_NICS_PER_INSTANCE = 8

export const INSTANCE_MAX_CPU = 64
export const INSTANCE_MIN_RAM_GiB = 1
export const INSTANCE_MAX_RAM_GiB = 1024
export const INSTANCE_MAX_RAM_GiB = 1536

export const MIN_DISK_SIZE_GiB = 1
/**
* Disk size limited to 1023 as that's the maximum we can safely allocate right now
* Disk size limited to 1023 as that's the maximum we can safely allocate right now
* @see https://github.com/oxidecomputer/omicron/issues/3212#issuecomment-1634497344
*/
export const MAX_DISK_SIZE_GiB = 1023
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/instance-create.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,12 +634,12 @@ test('Validate CPU and RAM', async ({ page }) => {
// make sure it's not clamping the value
await expect(cpu).toHaveValue('999')

await memory.fill('1025')
await memory.fill('1537')

const submitButton = page.getByRole('button', { name: 'Create instance' })

const cpuMsg = page.getByText('Can be at most 64').first()
const memMsg = page.getByText('Can be at most 1024 GiB').first()
const memMsg = page.getByText('Can be at most 1536 GiB').first()

await expect(cpuMsg).toBeHidden()
await expect(memMsg).toBeHidden()
Expand Down
Loading