/usr/lib/python3/dist-packages/muranoclient/tests/functional/cli/MockApp/Classes/mock_muranopl.yaml is in python3-muranoclient 1.0.1-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | Namespaces:
=: io.murano.apps
std: io.murano
# Name: MockApp # Using Name from manifest.yaml
Extends: std:Application
Properties:
greeting:
Usage: Static
Contract: $.string()
Default: 'Hello, '
Methods:
testAction:
Usage: Action
Body:
- sleep(1)
- $this.find(std:Environment).reporter.report($this, 'Completed')
deploy:
Body:
- $this.find(std:Environment).reporter.report($this, 'Follow the white rabbit')
staticAction:
Scope: Public
Usage: Static
Arguments:
- myName:
Contract: $.string().notNull()
- myAge:
Contract: $.int().notNull()
Body:
- $futureAge: $myAge + 5
- Return: concat($.greeting, $myName, ". In 5 years you will be {0} years old.".format($futureAge))
|