Skip to content

Conversation

@jaypipes
Copy link
Member

Also reduces the level of abstraction needed on suite.From() and scenario.FromReader() and scenario.FromBytes() so that they return concrete types not interfaces. Only the porcelain gdt.From() returns a Runnable interface now.

Also reduces the level of abstraction needed on `suite.From()` and
`scenario.FromReader()` and `scenario.FromBytes()` so that they return
concrete types not interfaces. Only the porcelain `gdt.From()` returns
a Runnable interface now.

Signed-off-by: Jay Pipes <jaypipes@gmail.com>
@jaypipes jaypipes merged commit b3b7698 into main Jul 27, 2023
@jaypipes jaypipes deleted the remove-suite-context branch July 30, 2023 13:09
jaypipes added a commit to jaypipes/gdt-gdt that referenced this pull request Oct 7, 2025
Fixes issue gdt-dev#66

```
·> cat ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml
tests:
 - name: test 1
   exec: echo 42
   assert:
     out:
       is: 24
 - name: test 2
   exec: echo "meaning of life"
   assert:
     out:
       contains: life

·> ./bin/gdt run ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml -v
=== RUN: ../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml
--- FAIL: pass-on-fail-issue-65.yaml/test 1 (631.56µs)
    assertion failed: not in: expected stdout to contain 24
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
                                                                                                                    DETAIL
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] using timeout of 10s [plugin default]
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] exec: echo [42]
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] exec: stdout: 42
[gdt] [pass-on-fail-issue-65.yaml/0:test 1] spec/run: single-shot (no retries) ok: false
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
--- PASS: pass-on-fail-issue-65.yaml/test 2 (660.94µs)
FAIL	../core/plugin/exec/testdata/pass-on-fail-issue-65.yaml	1.2925ms
FAIL
```

Signed-off-by: Jay Pipes <jaypipes@gmail.com>
jaypipes added a commit that referenced this pull request Oct 7, 2025
uplift to core@1.10.4 and kube@#1.10.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants