Skip to content

Commit

Permalink
Clean up examples, remove deprecated execute method (#3330)
Browse files Browse the repository at this point in the history
The `shell` execute method has been dropped a long time ago. Let's
get rid of the last mentions. Also remove some irrelevant outdated
examples which were part of the initial brainstorming. Update
several examples to make them actually working.
  • Loading branch information
psss authored Oct 31, 2024
1 parent 05814dc commit c1ac0ad
Show file tree
Hide file tree
Showing 16 changed files with 14 additions and 250 deletions.
7 changes: 5 additions & 2 deletions examples/environment/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
Environment variable.
description:
Tests can be provided with a list of environment variables.
discover:
how: fmf
execute:
how: shell
how: tmt

/test:
summary: Just a simple test
test: ./test.sh
test:
echo "x = '$x', y = '$y', z = '$z'"
environment:
x: That's nice!
y: a b c
Expand Down
2 changes: 1 addition & 1 deletion examples/httpd/smoke.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ prepare:
how: shell
script: systemctl start httpd
execute:
how: shell
how: tmt
script:
- echo foo > /var/www/html/index.html
- curl http://localhost/ | grep foo
1 change: 0 additions & 1 deletion examples/l2/.fmf/version

This file was deleted.

19 changes: 0 additions & 19 deletions examples/l2/artifacts.fmf

This file was deleted.

20 changes: 0 additions & 20 deletions examples/l2/bed.fmf

This file was deleted.

30 changes: 0 additions & 30 deletions examples/l2/gating.fmf

This file was deleted.

20 changes: 0 additions & 20 deletions examples/l2/rpmdiff.fmf

This file was deleted.

16 changes: 0 additions & 16 deletions examples/l2/simple.fmf

This file was deleted.

32 changes: 0 additions & 32 deletions examples/l2/tooling.fmf

This file was deleted.

59 changes: 0 additions & 59 deletions examples/l2/workflow.fmf

This file was deleted.

1 change: 0 additions & 1 deletion examples/rtt/.fmf/version

This file was deleted.

31 changes: 0 additions & 31 deletions examples/rtt/install.fmf

This file was deleted.

8 changes: 0 additions & 8 deletions examples/rtt/post-install.fmf

This file was deleted.

8 changes: 3 additions & 5 deletions examples/together/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@
discover:
how: fmf
prepare:
how: ansible
playbook: packages.yaml
how: install
package: [python3, make]
execute:
how: shell
how: tmt

/tests:
/smoke:
test: python3 -c "import time"
path: /
/full:
test: make check
path: /
6 changes: 3 additions & 3 deletions spec/plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ example: |
how: shell
script: systemctl start httpd
execute:
how: shell
how: tmt
script:
- echo foo > /var/www/html/index.html
- curl http://localhost/ | grep foo
- echo foo > /var/www/html/index.html
- curl http://localhost/ | grep foo
4 changes: 2 additions & 2 deletions stories/cli/run.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ story: 'As a user I want to execute tests easily'
discover:
how: fmf
execute:
how: shell
how: tmt

/default/plan:
summary:
Default plan when no fmf metadata around
discover:
how: shell
execute:
how: shell
how: tmt
link:
- implemented-by: /tmt/base.py
- verified-by: /tests/run/default
Expand Down

0 comments on commit c1ac0ad

Please sign in to comment.