mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-09-13 13:17:47 +02:00
Complete rewrite and re-architecture Osmedeus Engine in v5
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
name: test-functions
|
||||
kind: module
|
||||
description: Test utility functions
|
||||
tags: test,functions,utility
|
||||
|
||||
params:
|
||||
- name: target
|
||||
required: true
|
||||
|
||||
steps:
|
||||
- name: create-file
|
||||
type: bash
|
||||
command: |
|
||||
echo "test content" > /tmp/test-{{target}}.txt
|
||||
echo "test content" > /tmp/test-{{target}}.txt
|
||||
echo "test content" > /tmp/test-{{target}}.txt
|
||||
|
||||
- name: check-file
|
||||
type: function
|
||||
function: fileExists("/tmp/test-{{target}}.txt")
|
||||
exports:
|
||||
exists: "output"
|
||||
|
||||
- name: read-file
|
||||
type: function
|
||||
function: readFile("/tmp/test-{{target}}.txt")
|
||||
exports:
|
||||
content: "output"
|
||||
|
||||
- name: cleanup
|
||||
type: bash
|
||||
command: rm -f /tmp/test-{{target}}.txt
|
||||
Reference in New Issue
Block a user