# Generated by: tfg preset eject size-boundaries
# Is a size limit enforced exactly where it is declared?
#
# Edit it, commit it, it is an ordinary recipe from here on.

version: 1
targets:
  - id: under_1mb
    format: pdf
    count: 1
    size: 9437184
    name: 10mb_under_1mb.pdf
    group: size-boundaries
    purpose: "A Portable Document Format file 1 048 576 B under the limit of 10mb. Your system should take it - a refusal means the limit is enforced lower than it is declared."
    expected: accept
  - id: under_1kb
    format: pdf
    count: 1
    size: 10484736
    name: 10mb_under_1kb.pdf
    group: size-boundaries
    purpose: "A Portable Document Format file 1 024 B under the limit of 10mb. Your system should take it - a refusal means the limit is enforced lower than it is declared."
    expected: accept
  - id: under_1b
    format: pdf
    count: 1
    size: 10485759
    name: 10mb_under_1b.pdf
    group: size-boundaries
    purpose: "A Portable Document Format file 1 B under the limit of 10mb. Your system should take it - a refusal means the limit is enforced lower than it is declared."
    expected: accept
  - id: at_limit
    format: pdf
    count: 1
    size: 10485760
    name: 10mb_at_limit.pdf
    group: size-boundaries
    purpose: A Portable Document Format file of exactly 10mb, the limit itself. Your system should take it. A refusal here usually means the comparison is off by one, or your system counts a kilobyte as 1000 bytes where this set counts 1024.
    expected: accept
  - id: over_1b
    format: pdf
    count: 1
    size: 10485761
    name: 10mb_over_1b.pdf
    group: size-boundaries
    purpose: "A Portable Document Format file 1 B over the limit of 10mb. Your system should turn it away - taking it means the limit is not enforced, or enforced only in the browser."
    expected:
      outcome: reject
      reason: size_limit
  - id: over_1kb
    format: pdf
    count: 1
    size: 10486784
    name: 10mb_over_1kb.pdf
    group: size-boundaries
    purpose: "A Portable Document Format file 1 024 B over the limit of 10mb. Your system should turn it away - taking it means the limit is not enforced, or enforced only in the browser."
    expected:
      outcome: reject
      reason: size_limit
  - id: over_1mb
    format: pdf
    count: 1
    size: 11534336
    name: 10mb_over_1mb.pdf
    group: size-boundaries
    purpose: "A Portable Document Format file 1 048 576 B over the limit of 10mb. Your system should turn it away - taking it means the limit is not enforced, or enforced only in the browser."
    expected:
      outcome: reject
      reason: size_limit
