diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 196cb001cc..3d5630bca1 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,7 +6,9 @@ in development Added ~~~~~ - +* Add support for a configurable connect timeout for SSH connections as requested in #4715 + by adding the new configuration parameter ``ssh_connect_timeout`` to the ``ssh_runner`` + group in st2.conf. * Add support for blacklisting / whitelisting hosts to the HTTP runner by adding new ``url_hosts_blacklist`` and ``url_hosts_whitelist`` runner attribute. (new feature) #4757 diff --git a/st2common/st2common/config.py b/st2common/st2common/config.py index e0cbb92278..18da4c594b 100644 --- a/st2common/st2common/config.py +++ b/st2common/st2common/config.py @@ -421,7 +421,10 @@ def register_opts(ignore_errors=False): help='Use the .ssh/config file. Useful to override ports etc.'), cfg.StrOpt( 'ssh_config_file_path', default='~/.ssh/config', - help='Path to the ssh config file.') + help='Path to the ssh config file.'), + cfg.IntOpt( + 'ssh_connect_timeout', default=60, + help='Max time in seconds to establish the SSH connection.') ] do_register_opts(ssh_runner_opts, group='ssh_runner') diff --git a/st2common/st2common/runners/paramiko_ssh.py b/st2common/st2common/runners/paramiko_ssh.py index 2e5154db9f..377320f5eb 100644 --- a/st2common/st2common/runners/paramiko_ssh.py +++ b/st2common/st2common/runners/paramiko_ssh.py @@ -49,7 +49,7 @@ class SSHCommandTimeoutError(Exception): Exception which is raised when an SSH command times out. """ - def __init__(self, cmd, timeout, stdout=None, stderr=None): + def __init__(self, cmd, timeout, ssh_connect_timeout, stdout=None, stderr=None): """ :param stdout: Stdout which was consumed until the timeout occured. :type stdout: ``str`` @@ -59,14 +59,16 @@ def __init__(self, cmd, timeout, stdout=None, stderr=None): """ self.cmd = cmd self.timeout = timeout + self.ssh_connect_timeout = ssh_connect_timeout self.stdout = stdout self.stderr = stderr - self.message = 'Command didn\'t finish in %s seconds' % (timeout) + self.message = 'Command didn\'t finish in %s seconds or the SSH connection did not succeed in %s seconds' % \ + (timeout, ssh_connect_timeout) super(SSHCommandTimeoutError, self).__init__(self.message) def __repr__(self): - return ('' % - (self.cmd, self.timeout)) + return ('' % + (self.cmd, self.timeout, self.ssh_connect_timeout)) def __str__(self): return self.message @@ -83,9 +85,6 @@ class ParamikoSSHClient(object): # How long to sleep while waiting for command to finish to prevent busy waiting SLEEP_DELAY = 0.2 - # Connect socket timeout - CONNECT_TIMEOUT = 60 - def __init__(self, hostname, port=DEFAULT_SSH_PORT, username=None, password=None, bastion_host=None, key_files=None, key_material=None, timeout=None, passphrase=None, handle_stdout_line_func=None, handle_stderr_line_func=None): @@ -105,10 +104,11 @@ def __init__(self, hostname, port=DEFAULT_SSH_PORT, username=None, password=None self.username = username self.password = password self.key_files = key_files - self.timeout = timeout or ParamikoSSHClient.CONNECT_TIMEOUT + self.timeout = timeout self.key_material = key_material self.bastion_host = bastion_host self.passphrase = passphrase + self.ssh_connect_timeout = cfg.CONF.ssh_runner.ssh_connect_timeout self._handle_stdout_line_func = handle_stdout_line_func self._handle_stderr_line_func = handle_stderr_line_func @@ -116,6 +116,11 @@ def __init__(self, hostname, port=DEFAULT_SSH_PORT, username=None, password=None cfg.CONF.ssh_runner.ssh_config_file_path or '~/.ssh/config' ) + + if self.timeout and self.ssh_connect_timeout > self.timeout - 2: + # the connect timeout should not be greater than the action timeout + self.ssh_connect_timeout = self.timeout - 2 + self.logger = logging.getLogger(__name__) self.client = None @@ -415,8 +420,9 @@ def run(self, cmd, timeout=None, quote=False, call_line_handler_func=False): stdout = sanitize_output(stdout.getvalue(), uses_pty=uses_pty) stderr = sanitize_output(stderr.getvalue(), uses_pty=uses_pty) - raise SSHCommandTimeoutError(cmd=cmd, timeout=timeout, stdout=stdout, - stderr=stderr) + raise SSHCommandTimeoutError(cmd=cmd, timeout=timeout, + ssh_connect_timeout=self.ssh_connect_timeout, + stdout=stdout, stderr=stderr) stdout_data = self._consume_stdout(chan=chan, call_line_handler_func=call_line_handler_func) @@ -633,7 +639,7 @@ def _connect(self, host, socket=None): conninfo = {'hostname': host, 'allow_agent': False, 'look_for_keys': False, - 'timeout': self.timeout} + 'timeout': self.ssh_connect_timeout} ssh_config_file_info = {} if cfg.CONF.ssh_runner.use_ssh_config: @@ -702,7 +708,7 @@ def _connect(self, host, socket=None): conninfo['look_for_keys'] = True extra = {'_hostname': host, '_port': self.port, - '_username': self.username, '_timeout': self.timeout} + '_username': self.username, '_timeout': self.ssh_connect_timeout} self.logger.debug('Connecting to server', extra=extra) self.socket = socket or ssh_config_file_info.get('sock', None) diff --git a/st2tests/st2tests/fixtures/__init__.py b/st2tests/st2tests/fixtures/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/aliases/actions/action1.yaml b/st2tests/st2tests/fixtures/aliases/actions/action1.yaml deleted file mode 100644 index c9be03ce3d..0000000000 --- a/st2tests/st2tests/fixtures/aliases/actions/action1.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- - name: "action1" - description: "" - runner_type: "test-runner" - pack: "wolfpack" - entry_point: "/tmp/test/action1.sh" - enabled: true - parameters: - param1: - type: "string" - param2: - type: "string" - param3: - type: "array" - param4: - type: "string" - secret: true diff --git a/st2tests/st2tests/fixtures/aliases/actions/action2.yaml b/st2tests/st2tests/fixtures/aliases/actions/action2.yaml deleted file mode 100644 index 909ebabea0..0000000000 --- a/st2tests/st2tests/fixtures/aliases/actions/action2.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- - name: "action2" - description: "" - runner_type: "test-runner" - pack: "wolfpack" - entry_point: "/tmp/test/action2.sh" - enabled: true - parameters: - issue_key: - type: "string" diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias1.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias1.yaml deleted file mode 100644 index ce10feba56..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias1.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- - name: "alias1" - pack: "aliases" - description: "DON'T CARE" - action_ref: "wolfpack.action1" - formats: - - "Lorem ipsum {{param1}} dolor sit {{param2}} amet." - ack: - extra: - color: "red" - result: - extra: - color: "red" diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias2.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias2.yaml deleted file mode 100644 index 93dc37c193..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias2.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- - name: "alias2" - pack: "aliases" - description: "DON'T CARE" - action_ref: "wolfpack.action1" - formats: - - display: "Help entry doesn't matter." - representation: - - "Lorem ipsum {{param1}} dolor sit {{param3}} amet." - extra: - color: "red" diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias3.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias3.yaml deleted file mode 100644 index 788174639e..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias3.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "alias3" - pack: "aliases" - description: "DON'T CARE" - action_ref: "core.remote" - formats: - - "format1" - - "format2" diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias4.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias4.yaml deleted file mode 100644 index 4a2be63c9e..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias4.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- - name: "alias4" - pack: "aliases" - description: "DON'T CARE" - action_ref: "wolfpack.action1" - formats: - - display: "Help entry doesn't matter." - representation: - - "Lorem ipsum {{param1}} dolor sit {{param4}} amet." - extra: - color: "red" diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias5.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias5.yaml deleted file mode 100644 index ee87393653..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias5.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- - name: "alias5" - pack: "aliases" - description: "Static test" - action_ref: "wolfpack.action1" - formats: - - "lorem ipsum" - immutable_parameters: - param1: value1 - param2: value2 diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias_fixes1.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias_fixes1.yaml deleted file mode 100644 index cadf5e5037..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias_fixes1.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- - name: "alias_match_multiple_fixes1" - pack: "aliases" - description: "DON'T CARE" - action_ref: "wolfpack.action2" - formats: - - display: "fixes " - representation: - - "(?:\\b|^)fixes (?P[A-Z][A-Z0-9]+-[0-9]+)(?:\\b|$)" - match_multiple: true diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias_fixes2.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias_fixes2.yaml deleted file mode 100644 index 9f09c0e249..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias_fixes2.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- - name: "alias_match_multiple_fixes2" - pack: "aliases" - description: "DON'T CARE" - action_ref: "wolfpack.action2" - formats: - - display: "fixes " - representation: - - "(?:\\b|^)fixes (?P[A-Z][A-Z0-9]+-[0-9]+)(?:\\b|$)" - match_multiple: true diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias_match_multiple.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias_match_multiple.yaml deleted file mode 100644 index 0b8b684924..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias_match_multiple.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- - name: "alias_match_multiple" - pack: "aliases" - description: "DON'T CARE" - action_ref: "wolfpack.action2" - formats: - - display: "duplicate of " - representation: - - "(?:\\b|^)duplicate of (?P[A-Z][A-Z0-9]+-[0-9]+)(?:\\b|$)" - match_multiple: true diff --git a/st2tests/st2tests/fixtures/aliases/aliases/alias_with_undefined_jinja_in_ack_format.yaml b/st2tests/st2tests/fixtures/aliases/aliases/alias_with_undefined_jinja_in_ack_format.yaml deleted file mode 100644 index a55e50164e..0000000000 --- a/st2tests/st2tests/fixtures/aliases/aliases/alias_with_undefined_jinja_in_ack_format.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- - name: "alias_with_undefined_jinja_in_ack_format" - pack: "aliases" - description: "DON'T CARE" - action_ref: "wolfpack.action1" - formats: - - "run {{cmd}} on {{hosts}}" - ack: - format: | - Ran command *{{cmd}}* on hosts. diff --git a/st2tests/st2tests/fixtures/aliases/runners/runner1.yaml b/st2tests/st2tests/fixtures/aliases/runners/runner1.yaml deleted file mode 100644 index 863bec9bb5..0000000000 --- a/st2tests/st2tests/fixtures/aliases/runners/runner1.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- - name: test-runner - description: A test runner. - enabled: true - runner_parameters: {} - runner_module: runner diff --git a/st2tests/st2tests/fixtures/backstop/rules/backstop.yaml b/st2tests/st2tests/fixtures/backstop/rules/backstop.yaml deleted file mode 100644 index 7e0d6b98aa..0000000000 --- a/st2tests/st2tests/fixtures/backstop/rules/backstop.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- - name: "backstop" - description: "backstop rule." - trigger: - type: "wolfpack.triggertype-1" - criteria: {} - type: - ref: backstop - action: - ref: "core.local" - parameters: - cmd: "echo \"backstop\"" - enabled: true diff --git a/st2tests/st2tests/fixtures/backstop/rules/fail.yaml b/st2tests/st2tests/fixtures/backstop/rules/fail.yaml deleted file mode 100644 index 78e1532cce..0000000000 --- a/st2tests/st2tests/fixtures/backstop/rules/fail.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- - name: "fail" - description: "fail rule." - trigger: - type: "wolfpack.triggertype-1" - criteria: - trigger.k1: - type: equals - pattern: mismatch - action: - ref: "core.local" - parameters: - cmd: "echo \"fail\"" - enabled: true diff --git a/st2tests/st2tests/fixtures/backstop/rules/success.yaml b/st2tests/st2tests/fixtures/backstop/rules/success.yaml deleted file mode 100644 index 23f33c7709..0000000000 --- a/st2tests/st2tests/fixtures/backstop/rules/success.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- - name: "success" - description: "success rule." - trigger: - type: "wolfpack.triggertype-1" - criteria: - trigger.k1: - type: equals - pattern: v1 - action: - ref: "core.local" - parameters: - cmd: "echo \"success\"" - enabled: true diff --git a/st2tests/st2tests/fixtures/backstop/triggers/trigger1.yaml b/st2tests/st2tests/fixtures/backstop/triggers/trigger1.yaml deleted file mode 100644 index 59acab1913..0000000000 --- a/st2tests/st2tests/fixtures/backstop/triggers/trigger1.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: trigger-1 -pack: wolfpack -parameters: {} -type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/backstop/triggertypes/triggertype1.yaml b/st2tests/st2tests/fixtures/backstop/triggertypes/triggertype1.yaml deleted file mode 100644 index ba09bea3a8..0000000000 --- a/st2tests/st2tests/fixtures/backstop/triggertypes/triggertype1.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: triggertype-1 -pack: wolfpack -parameters_schema: {} -payload_schema: {} diff --git a/st2tests/st2tests/fixtures/conf/logging.api.audit.conf b/st2tests/st2tests/fixtures/conf/logging.api.audit.conf deleted file mode 100644 index 3b5f3005f8..0000000000 --- a/st2tests/st2tests/fixtures/conf/logging.api.audit.conf +++ /dev/null @@ -1,44 +0,0 @@ -[loggers] -keys=root - -[handlers] -keys=consoleHandler, fileHandler, auditHandler - -[formatters] -keys=simpleConsoleFormatter, verboseConsoleFormatter, gelfFormatter - -[logger_root] -level=AUDIT -handlers=consoleHandler, fileHandler, auditHandler - -[handler_consoleHandler] -class=StreamHandler -level=AUDIT -formatter=simpleConsoleFormatter -args=(sys.stdout,) - -[handler_fileHandler] -class=st2common.log.FormatNamedFileHandler -level=AUDIT -formatter=verboseConsoleFormatter -args=("/tmp/st2api.{timestamp}.log",) - -[handler_auditHandler] -class=st2common.log.FormatNamedFileHandler -level=AUDIT -formatter=gelfFormatter -args=("/tmp/st2api.audit.{timestamp}.log",) - -[formatter_simpleConsoleFormatter] -class=st2common.logging.formatters.ConsoleLogFormatter -format=%(asctime)s %(levelname)s [-] %(message)s -datefmt= - -[formatter_verboseConsoleFormatter] -class=st2common.logging.formatters.ConsoleLogFormatter -format=%(asctime)s %(thread)s %(levelname)s %(module)s [-] %(message)s -datefmt= - -[formatter_gelfFormatter] -class=st2common.logging.formatters.GelfLogFormatter -format=%(message)s diff --git a/st2tests/st2tests/fixtures/conf/logging.api.debug.conf b/st2tests/st2tests/fixtures/conf/logging.api.debug.conf deleted file mode 100644 index 1d7e8ca7ed..0000000000 --- a/st2tests/st2tests/fixtures/conf/logging.api.debug.conf +++ /dev/null @@ -1,44 +0,0 @@ -[loggers] -keys=root - -[handlers] -keys=consoleHandler, fileHandler, auditHandler - -[formatters] -keys=simpleConsoleFormatter, verboseConsoleFormatter, gelfFormatter - -[logger_root] -level=DEBUG -handlers=consoleHandler, fileHandler, auditHandler - -[handler_consoleHandler] -class=StreamHandler -level=DEBUG -formatter=simpleConsoleFormatter -args=(sys.stdout,) - -[handler_fileHandler] -class=st2common.log.FormatNamedFileHandler -level=DEBUG -formatter=verboseConsoleFormatter -args=("/tmp/st2api.{timestamp}.log",) - -[handler_auditHandler] -class=st2common.log.FormatNamedFileHandler -level=AUDIT -formatter=gelfFormatter -args=("/tmp/st2api.audit.{timestamp}.log",) - -[formatter_simpleConsoleFormatter] -class=st2common.logging.formatters.ConsoleLogFormatter -format=%(asctime)s %(levelname)s [-] %(message)s -datefmt= - -[formatter_verboseConsoleFormatter] -class=st2common.logging.formatters.ConsoleLogFormatter -format=%(asctime)s %(thread)s %(levelname)s %(module)s [-] %(message)s -datefmt= - -[formatter_gelfFormatter] -class=st2common.logging.formatters.GelfLogFormatter -format=%(message)s diff --git a/st2tests/st2tests/fixtures/conf/logging.api.info.conf b/st2tests/st2tests/fixtures/conf/logging.api.info.conf deleted file mode 100644 index f035bcdcb6..0000000000 --- a/st2tests/st2tests/fixtures/conf/logging.api.info.conf +++ /dev/null @@ -1,44 +0,0 @@ -[loggers] -keys=root - -[handlers] -keys=consoleHandler, fileHandler, auditHandler - -[formatters] -keys=simpleConsoleFormatter, verboseConsoleFormatter, gelfFormatter - -[logger_root] -level=INFO -handlers=consoleHandler, fileHandler, auditHandler - -[handler_consoleHandler] -class=StreamHandler -level=INFO -formatter=simpleConsoleFormatter -args=(sys.stdout,) - -[handler_fileHandler] -class=st2common.log.FormatNamedFileHandler -level=INFO -formatter=verboseConsoleFormatter -args=("/tmp/st2api.{timestamp}.log",) - -[handler_auditHandler] -class=st2common.log.FormatNamedFileHandler -level=AUDIT -formatter=gelfFormatter -args=("/tmp/st2api.audit.{timestamp}.log",) - -[formatter_simpleConsoleFormatter] -class=st2common.logging.formatters.ConsoleLogFormatter -format=%(asctime)s %(levelname)s [-] %(message)s -datefmt= - -[formatter_verboseConsoleFormatter] -class=st2common.logging.formatters.ConsoleLogFormatter -format=%(asctime)s %(thread)s %(levelname)s %(module)s [-] %(message)s -datefmt= - -[formatter_gelfFormatter] -class=st2common.logging.formatters.GelfLogFormatter -format=%(message)s diff --git a/st2tests/st2tests/fixtures/conf/st2.tests.api.audit_log_level.conf b/st2tests/st2tests/fixtures/conf/st2.tests.api.audit_log_level.conf deleted file mode 100644 index dbe36c36db..0000000000 --- a/st2tests/st2tests/fixtures/conf/st2.tests.api.audit_log_level.conf +++ /dev/null @@ -1,99 +0,0 @@ -# Config file used by integration tests - -[database] -db_name = st2-test - -[api] -# Host and port to bind the API server. -host = 127.0.0.1 -port = 9101 -logging = st2tests/st2tests/fixtures/conf/logging.api.audit.conf -mask_secrets = False -# allow_origin is required for handling CORS in st2 web UI. -# allow_origin = http://myhost1.example.com:3000,http://myhost2.example.com:3000 - -[sensorcontainer] -logging = st2tests/conf/logging.sensorcontainer.conf -sensor_node_name = sensornode1 -partition_provider = name:default - -[rulesengine] -logging = st2reactor/conf/logging.rulesengine.conf - -[timersengine] -logging = st2reactor/conf/logging.timersengine.conf - -[actionrunner] -logging = st2actions/conf/logging.conf - -[auth] -host = 127.0.0.1 -port = 9100 -use_ssl = False -debug = False -enable = False -logging = st2tests/conf/logging.auth.conf - -mode = standalone -backend = flat_file -backend_kwargs = {"file_path": "st2auth/conf/htpasswd_dev"} - -# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/) -api_url = http://127.0.0.1:9101/ - -[system] -debug = False -# This way integration tests can write to this directory -base_path = /tmp - -[garbagecollector] -logging = st2reactor/conf/logging.garbagecollector.conf - -action_executions_ttl = 20 -action_executions_output_ttl = 10 -trigger_instances_ttl = 20 -purge_inquiries = True - -collection_interval = 1 -sleep_delay = 0.1 - -[content] -system_packs_base_path = -packs_base_paths = st2tests/st2tests/fixtures/packs/ - -[syslog] -host = 127.0.0.1 -port = 514 -facility = local7 -protocol = udp - -[webui] -# webui_base_url = https://mywebhost.domain - -[log] -excludes = requests,paramiko -redirect_stderr = False -mask_secrets = False - -[system_user] -user = stanley -ssh_key_file = /home/vagrant/.ssh/stanley_rsa - -[messaging] -url = amqp://guest:guest@127.0.0.1:5672/ - -[ssh_runner] -remote_dir = /tmp - -[resultstracker] -logging = st2actions/conf/logging.resultstracker.conf -query_interval = 0.1 - -[notifier] -logging = st2actions/conf/logging.notifier.conf - -[exporter] -logging = st2exporter/conf/logging.exporter.conf - -[mistral] -jitter_interval = 0 diff --git a/st2tests/st2tests/fixtures/conf/st2.tests.api.debug_log_level.conf b/st2tests/st2tests/fixtures/conf/st2.tests.api.debug_log_level.conf deleted file mode 100644 index caad395240..0000000000 --- a/st2tests/st2tests/fixtures/conf/st2.tests.api.debug_log_level.conf +++ /dev/null @@ -1,99 +0,0 @@ -# Config file used by integration tests - -[database] -db_name = st2-test - -[api] -# Host and port to bind the API server. -host = 127.0.0.1 -port = 9101 -logging = st2tests/st2tests/fixtures/conf/logging.api.debug.conf -mask_secrets = False -# allow_origin is required for handling CORS in st2 web UI. -# allow_origin = http://myhost1.example.com:3000,http://myhost2.example.com:3000 - -[sensorcontainer] -logging = st2tests/conf/logging.sensorcontainer.conf -sensor_node_name = sensornode1 -partition_provider = name:default - -[rulesengine] -logging = st2reactor/conf/logging.rulesengine.conf - -[timersengine] -logging = st2reactor/conf/logging.timersengine.conf - -[actionrunner] -logging = st2actions/conf/logging.conf - -[auth] -host = 127.0.0.1 -port = 9100 -use_ssl = False -debug = False -enable = False -logging = st2tests/conf/logging.auth.conf - -mode = standalone -backend = flat_file -backend_kwargs = {"file_path": "st2auth/conf/htpasswd_dev"} - -# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/) -api_url = http://127.0.0.1:9101/ - -[system] -debug = False -# This way integration tests can write to this directory -base_path = /tmp - -[garbagecollector] -logging = st2reactor/conf/logging.garbagecollector.conf - -action_executions_ttl = 20 -action_executions_output_ttl = 10 -trigger_instances_ttl = 20 -purge_inquiries = True - -collection_interval = 1 -sleep_delay = 0.1 - -[content] -system_packs_base_path = -packs_base_paths = st2tests/st2tests/fixtures/packs/ - -[syslog] -host = 127.0.0.1 -port = 514 -facility = local7 -protocol = udp - -[webui] -# webui_base_url = https://mywebhost.domain - -[log] -excludes = requests,paramiko -redirect_stderr = False -mask_secrets = False - -[system_user] -user = stanley -ssh_key_file = /home/vagrant/.ssh/stanley_rsa - -[messaging] -url = amqp://guest:guest@127.0.0.1:5672/ - -[ssh_runner] -remote_dir = /tmp - -[resultstracker] -logging = st2actions/conf/logging.resultstracker.conf -query_interval = 0.1 - -[notifier] -logging = st2actions/conf/logging.notifier.conf - -[exporter] -logging = st2exporter/conf/logging.exporter.conf - -[mistral] -jitter_interval = 0 diff --git a/st2tests/st2tests/fixtures/conf/st2.tests.api.info_log_level.conf b/st2tests/st2tests/fixtures/conf/st2.tests.api.info_log_level.conf deleted file mode 100644 index 5cd4e6cd33..0000000000 --- a/st2tests/st2tests/fixtures/conf/st2.tests.api.info_log_level.conf +++ /dev/null @@ -1,99 +0,0 @@ -# Config file used by integration tests - -[database] -db_name = st2-test - -[api] -# Host and port to bind the API server. -host = 127.0.0.1 -port = 9101 -logging = st2tests/st2tests/fixtures/conf/logging.api.info.conf -mask_secrets = False -# allow_origin is required for handling CORS in st2 web UI. -# allow_origin = http://myhost1.example.com:3000,http://myhost2.example.com:3000 - -[sensorcontainer] -logging = st2tests/conf/logging.sensorcontainer.conf -sensor_node_name = sensornode1 -partition_provider = name:default - -[rulesengine] -logging = st2reactor/conf/logging.rulesengine.conf - -[timersengine] -logging = st2reactor/conf/logging.timersengine.conf - -[actionrunner] -logging = st2actions/conf/logging.conf - -[auth] -host = 127.0.0.1 -port = 9100 -use_ssl = False -debug = False -enable = False -logging = st2tests/conf/logging.auth.conf - -mode = standalone -backend = flat_file -backend_kwargs = {"file_path": "st2auth/conf/htpasswd_dev"} - -# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/) -api_url = http://127.0.0.1:9101/ - -[system] -debug = False -# This way integration tests can write to this directory -base_path = /tmp - -[garbagecollector] -logging = st2reactor/conf/logging.garbagecollector.conf - -action_executions_ttl = 20 -action_executions_output_ttl = 10 -trigger_instances_ttl = 20 -purge_inquiries = True - -collection_interval = 1 -sleep_delay = 0.1 - -[content] -system_packs_base_path = -packs_base_paths = st2tests/st2tests/fixtures/packs/ - -[syslog] -host = 127.0.0.1 -port = 514 -facility = local7 -protocol = udp - -[webui] -# webui_base_url = https://mywebhost.domain - -[log] -excludes = requests,paramiko -redirect_stderr = False -mask_secrets = False - -[system_user] -user = stanley -ssh_key_file = /home/vagrant/.ssh/stanley_rsa - -[messaging] -url = amqp://guest:guest@127.0.0.1:5672/ - -[ssh_runner] -remote_dir = /tmp - -[resultstracker] -logging = st2actions/conf/logging.resultstracker.conf -query_interval = 0.1 - -[notifier] -logging = st2actions/conf/logging.notifier.conf - -[exporter] -logging = st2exporter/conf/logging.exporter.conf - -[mistral] -jitter_interval = 0 diff --git a/st2tests/st2tests/fixtures/conf/st2.tests.api.system_debug_true.conf b/st2tests/st2tests/fixtures/conf/st2.tests.api.system_debug_true.conf deleted file mode 100644 index 3317c11abf..0000000000 --- a/st2tests/st2tests/fixtures/conf/st2.tests.api.system_debug_true.conf +++ /dev/null @@ -1,99 +0,0 @@ -# Config file used by integration tests - -[database] -db_name = st2-test - -[api] -# Host and port to bind the API server. -host = 127.0.0.1 -port = 9101 -logging = st2tests/st2tests/fixtures/conf/logging.api.info.conf -mask_secrets = False -# allow_origin is required for handling CORS in st2 web UI. -# allow_origin = http://myhost1.example.com:3000,http://myhost2.example.com:3000 - -[sensorcontainer] -logging = st2tests/conf/logging.sensorcontainer.conf -sensor_node_name = sensornode1 -partition_provider = name:default - -[rulesengine] -logging = st2reactor/conf/logging.rulesengine.conf - -[timersengine] -logging = st2reactor/conf/logging.timersengine.conf - -[actionrunner] -logging = st2actions/conf/logging.conf - -[auth] -host = 127.0.0.1 -port = 9100 -use_ssl = False -debug = False -enable = False -logging = st2tests/conf/logging.auth.conf - -mode = standalone -backend = flat_file -backend_kwargs = {"file_path": "st2auth/conf/htpasswd_dev"} - -# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/) -api_url = http://127.0.0.1:9101/ - -[system] -debug = True -# This way integration tests can write to this directory -base_path = /tmp - -[garbagecollector] -logging = st2reactor/conf/logging.garbagecollector.conf - -action_executions_ttl = 20 -action_executions_output_ttl = 10 -trigger_instances_ttl = 20 -purge_inquiries = True - -collection_interval = 1 -sleep_delay = 0.1 - -[content] -system_packs_base_path = -packs_base_paths = st2tests/st2tests/fixtures/packs/ - -[syslog] -host = 127.0.0.1 -port = 514 -facility = local7 -protocol = udp - -[webui] -# webui_base_url = https://mywebhost.domain - -[log] -excludes = requests,paramiko -redirect_stderr = False -mask_secrets = False - -[system_user] -user = stanley -ssh_key_file = /home/vagrant/.ssh/stanley_rsa - -[messaging] -url = amqp://guest:guest@127.0.0.1:5672/ - -[ssh_runner] -remote_dir = /tmp - -[resultstracker] -logging = st2actions/conf/logging.resultstracker.conf -query_interval = 0.1 - -[notifier] -logging = st2actions/conf/logging.notifier.conf - -[exporter] -logging = st2exporter/conf/logging.exporter.conf - -[mistral] -jitter_interval = 0 diff --git a/st2tests/st2tests/fixtures/conf/st2.tests.api.system_debug_true_logging_debug.conf b/st2tests/st2tests/fixtures/conf/st2.tests.api.system_debug_true_logging_debug.conf deleted file mode 100644 index 736b62e81c..0000000000 --- a/st2tests/st2tests/fixtures/conf/st2.tests.api.system_debug_true_logging_debug.conf +++ /dev/null @@ -1,99 +0,0 @@ -# Config file used by integration tests - -[database] -db_name = st2-test - -[api] -# Host and port to bind the API server. -host = 127.0.0.1 -port = 9101 -logging = st2tests/st2tests/fixtures/conf/logging.api.debug.conf -mask_secrets = False -# allow_origin is required for handling CORS in st2 web UI. -# allow_origin = http://myhost1.example.com:3000,http://myhost2.example.com:3000 - -[sensorcontainer] -logging = st2tests/conf/logging.sensorcontainer.conf -sensor_node_name = sensornode1 -partition_provider = name:default - -[rulesengine] -logging = st2reactor/conf/logging.rulesengine.conf - -[timersengine] -logging = st2reactor/conf/logging.timersengine.conf - -[actionrunner] -logging = st2actions/conf/logging.conf - -[auth] -host = 127.0.0.1 -port = 9100 -use_ssl = False -debug = False -enable = False -logging = st2tests/conf/logging.auth.conf - -mode = standalone -backend = flat_file -backend_kwargs = {"file_path": "st2auth/conf/htpasswd_dev"} - -# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/) -api_url = http://127.0.0.1:9101/ - -[system] -debug = True -# This way integration tests can write to this directory -base_path = /tmp - -[garbagecollector] -logging = st2reactor/conf/logging.garbagecollector.conf - -action_executions_ttl = 20 -action_executions_output_ttl = 10 -trigger_instances_ttl = 20 -purge_inquiries = True - -collection_interval = 1 -sleep_delay = 0.1 - -[content] -system_packs_base_path = -packs_base_paths = st2tests/st2tests/fixtures/packs/ - -[syslog] -host = 127.0.0.1 -port = 514 -facility = local7 -protocol = udp - -[webui] -# webui_base_url = https://mywebhost.domain - -[log] -excludes = requests,paramiko -redirect_stderr = False -mask_secrets = False - -[system_user] -user = stanley -ssh_key_file = /home/vagrant/.ssh/stanley_rsa - -[messaging] -url = amqp://guest:guest@127.0.0.1:5672/ - -[ssh_runner] -remote_dir = /tmp - -[resultstracker] -logging = st2actions/conf/logging.resultstracker.conf -query_interval = 0.1 - -[notifier] -logging = st2actions/conf/logging.notifier.conf - -[exporter] -logging = st2exporter/conf/logging.exporter.conf - -[mistral] -jitter_interval = 0 diff --git a/st2tests/st2tests/fixtures/conf/st2.tests.conf b/st2tests/st2tests/fixtures/conf/st2.tests.conf deleted file mode 100644 index bb97039f03..0000000000 --- a/st2tests/st2tests/fixtures/conf/st2.tests.conf +++ /dev/null @@ -1,100 +0,0 @@ -# Config file used by integration tests - -[database] -db_name = st2-test - -[api] -# Host and port to bind the API server. -host = 127.0.0.1 -port = 9101 -logging = st2tests/conf/logging.api.conf -mask_secrets = False -# allow_origin is required for handling CORS in st2 web UI. -# allow_origin = http://myhost1.example.com:3000,http://myhost2.example.com:3000 - -[sensorcontainer] -logging = st2tests/conf/logging.sensorcontainer.conf -sensor_node_name = sensornode1 -partition_provider = name:default - -[rulesengine] -logging = st2reactor/conf/logging.rulesengine.conf - -[timersengine] -logging = st2reactor/conf/logging.timersengine.conf - -[actionrunner] -logging = st2actions/conf/logging.conf - -[auth] -host = 127.0.0.1 -port = 9100 -use_ssl = False -debug = False -enable = False -logging = st2tests/conf/logging.auth.conf - -mode = standalone -backend = flat_file -backend_kwargs = {"file_path": "st2auth/conf/htpasswd_dev"} - -# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/) -api_url = http://127.0.0.1:9101/ - -[system] -debug = False - -# This way integration tests can write to this directory -base_path = /tmp - -[garbagecollector] -logging = st2reactor/conf/logging.garbagecollector.conf - -action_executions_ttl = 20 -action_executions_output_ttl = 10 -trigger_instances_ttl = 20 -purge_inquiries = True - -collection_interval = 1 -sleep_delay = 0.1 - -[content] -system_packs_base_path = -packs_base_paths = st2tests/st2tests/fixtures/packs/ - -[syslog] -host = 127.0.0.1 -port = 514 -facility = local7 -protocol = udp - -[webui] -# webui_base_url = https://mywebhost.domain - -[log] -excludes = requests,paramiko -redirect_stderr = False -mask_secrets = False - -[system_user] -user = stanley -ssh_key_file = /home/vagrant/.ssh/stanley_rsa - -[messaging] -url = amqp://guest:guest@127.0.0.1:5672/ - -[ssh_runner] -remote_dir = /tmp - -[resultstracker] -logging = st2actions/conf/logging.resultstracker.conf -query_interval = 0.1 - -[notifier] -logging = st2actions/conf/logging.notifier.conf - -[exporter] -logging = st2exporter/conf/logging.exporter.conf - -[mistral] -jitter_interval = 0 diff --git a/st2tests/st2tests/fixtures/descendants/executions/child1_level1.yaml b/st2tests/st2tests/fixtures/descendants/executions/child1_level1.yaml deleted file mode 100644 index 30467cfb18..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child1_level1.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: -- 54e657fa0640fd16887d6858 -- 54e6583d0640fd16887d685b -end_timestamp: '2014-09-01T00:00:57.000001Z' -id: 54e657f20640fd16887d6857 -liveaction: - action: pointlessaction -parent: 54e657d60640fd16887d6855 -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:02.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/child1_level2.yaml b/st2tests/st2tests/fixtures/descendants/executions/child1_level2.yaml deleted file mode 100644 index 2ee548ccb2..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child1_level2.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: [] -end_timestamp: '2014-09-01T00:00:56.000002Z' -id: 54e657fa0640fd16887d6858 -liveaction: - action: pointlessaction -parent: 54e657f20640fd16887d6857 -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:03.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/child1_level3.yaml b/st2tests/st2tests/fixtures/descendants/executions/child1_level3.yaml deleted file mode 100644 index 276c5aa0b7..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child1_level3.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: [] -end_timestamp: '2014-09-01T00:00:55.100000Z' -id: 54e6581b0640fd16887d6859 -liveaction: - action: pointlessaction -parent: 54e6583d0640fd16887d685b -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:04.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/child2_level1.yaml b/st2tests/st2tests/fixtures/descendants/executions/child2_level1.yaml deleted file mode 100644 index 35050c15cd..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child2_level1.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: -- 54e658570640fd16887d685d -end_timestamp: '2014-09-01T00:00:55.000000Z' -id: 54e658290640fd16887d685a -liveaction: - action: pointlessaction -parent: 54e657d60640fd16887d6855 -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:06.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/child2_level2.yaml b/st2tests/st2tests/fixtures/descendants/executions/child2_level2.yaml deleted file mode 100644 index 7d57ceb171..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child2_level2.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: -- 54e6581b0640fd16887d6859 -end_timestamp: '2014-09-01T00:00:55.000000Z' -id: 54e6583d0640fd16887d685b -liveaction: - action: pointlessaction -parent: 54e657f20640fd16887d6857 -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:07.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/child2_level3.yaml b/st2tests/st2tests/fixtures/descendants/executions/child2_level3.yaml deleted file mode 100644 index a10bcd016b..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child2_level3.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: [] -end_timestamp: '2014-09-01T00:00:59.000010Z' -id: 54e6584a0640fd16887d685c -liveaction: - action: pointlessaction -parent: 54e658570640fd16887d685d -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:08.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/child3_level2.yaml b/st2tests/st2tests/fixtures/descendants/executions/child3_level2.yaml deleted file mode 100644 index d803654d6b..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child3_level2.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: -- 54e6584a0640fd16887d685c -- 54e6585f0640fd16887d685e -end_timestamp: '2014-09-01T00:00:55.000000Z' -id: 54e658570640fd16887d685d -liveaction: - action: pointlessaction -parent: 54e658290640fd16887d685a -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:09.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/child3_level3.yaml b/st2tests/st2tests/fixtures/descendants/executions/child3_level3.yaml deleted file mode 100644 index ad1aae1bad..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/child3_level3.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: [] -end_timestamp: '2014-09-01T00:00:55.000000Z' -id: 54e6585f0640fd16887d685e -liveaction: - action: pointlessaction -parent: 54e658570640fd16887d685d -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:10.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/descendants/executions/root_execution.yaml b/st2tests/st2tests/fixtures/descendants/executions/root_execution.yaml deleted file mode 100644 index d993f9c140..0000000000 --- a/st2tests/st2tests/fixtures/descendants/executions/root_execution.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -action: - name: pointlessaction - runner_type: pointlessrunner -children: -- 54e657f20640fd16887d6857 -- 54e658290640fd16887d685a -end_timestamp: '2014-09-01T00:00:59.000000Z' -id: 54e657d60640fd16887d6855 -liveaction: - action: pointlessaction -runner: - name: pointlessrunner - runner_module: no.module -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/generic/actionchains/bad_default_chain.yaml b/st2tests/st2tests/fixtures/generic/actionchains/bad_default_chain.yaml deleted file mode 100644 index 35d84abe07..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/bad_default_chain.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - parameters: - p1: v1 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - parameters: - p1: v1 - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - parameters: {} - ref: wolfpack.a3 -- name: c4 - parameters: {} - ref: wolfpack.a1 -default: bad_default diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain1.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain1.yaml deleted file mode 100644 index 951523474b..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain1.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - parameters: - p1: v1 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - on-success: c3 - parameters: - p1: v1 - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - parameters: {} - ref: wolfpack.a3 -- name: c4 - parameters: - actionstr: "{{action_context.parent.execution_id}}" - ref: wolfpack.action-4-action-context-param -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain2.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain2.yaml deleted file mode 100644 index 280e9299e1..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain2.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c3 - on-success: c2 - parameters: - p1: v1 - ref: wolfpack.a1 -- name: c2 - on-failure: c3 - on-success: c3 - parameters: - p1: v1 - ref: wolfpack.a2 -- name: c3 - parameters: {} - ref: wolfpack.a3 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_call_no_params.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_action_call_no_params.yaml deleted file mode 100644 index 72c08515a7..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_call_no_params.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - on-success: c3 - parameters: - p1: v1 - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - parameters: {} - ref: wolfpack.a3 -- name: c4 - parameters: - actionstr: "{{action_context.parent.execution_id}}" - ref: wolfpack.action-4-action-context-param -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_parameters_attribute.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_action_parameters_attribute.yaml deleted file mode 100644 index 7e3a9057c5..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_parameters_attribute.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -chain: -- name: c1 - ref: wolfpack.a1 - parameters: - pparameters: v1 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_params_and_parameters.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_action_params_and_parameters.yaml deleted file mode 100644 index 7596889009..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_params_and_parameters.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - params: - p1: v1 - parameters: - p2: v2 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - on-success: c3 - params: - p1: v1 - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - params: {} - ref: wolfpack.a3 -- name: c4 - params: - actionstr: "{{action_context.parent.execution_id}}" - ref: wolfpack.action-4-action-context-param -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_params_attribute.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_action_params_attribute.yaml deleted file mode 100644 index ce7c13bbd4..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_action_params_attribute.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -chain: -- name: c1 - ref: wolfpack.a1 - # Note: "params" is deprecated and should be removed in a future release - params: - pparams: v1 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_on_failure_path_static_task_name.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_on_failure_path_static_task_name.yaml deleted file mode 100644 index d4046452e1..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_on_failure_path_static_task_name.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -chain: - - name: c1 - ref: wolfpack.a1 - parameters: - p1: v1 - on-success: c2 - on-failure: c2 - - name: c2 - ref: wolfpack.a1 - parameters: - p1: v1 - on-success: c3 - on-failure: c6 - - name: c3 - ref: wolfpack.a1 - parameters: - p1: v1 - -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_on_success_path_static_task_name.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_on_success_path_static_task_name.yaml deleted file mode 100644 index b4b4dd7939..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_on_success_path_static_task_name.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -chain: - - name: c1 - ref: wolfpack.a1 - parameters: - p1: v1 - on-success: c2 - on-failure: c2 - - name: c2 - ref: wolfpack.a1 - parameters: - p1: v1 - on-success: c5 - on-failure: c3 - - name: c3 - ref: wolfpack.a1 - parameters: - p1: v1 - -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_paths.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_paths.yaml deleted file mode 100644 index ce065d9c91..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_broken_paths.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - parameters: - p1: v1 - ref: wolfpack.a1 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_dep_result_input.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_dep_result_input.yaml deleted file mode 100644 index 70b6550c1c..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_dep_result_input.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -chain: -- name: c1 - on-success: c2 - parameters: - p1: '{{s1}}' - ref: wolfpack.a1 -- name: c2 - on-success: c3 - parameters: - p1: '{{c1.o1}}' - ref: wolfpack.a2 -- name: c3 - parameters: - out: '{{__results}}' - ref: wolfpack.a3 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_dependent_input.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_dependent_input.yaml deleted file mode 100644 index ad140d5070..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_dependent_input.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -chain: -- name: c1 - on-success: c2 - parameters: - p1: '{{s1}}' - ref: wolfpack.a1 -- name: c2 - on-success: c3 - parameters: - p1: '{{c1.o1}}' - ref: wolfpack.a2 -- name: c3 - parameters: - p1: '{{c1.o1}}' - p2: '{{c2.o1}}' - p3: '{{s1}}' - ref: wolfpack.a3 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_dict_template.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_dict_template.yaml deleted file mode 100644 index d5e711c3b5..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_dict_template.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -chain: -- name: c1 - parameters: - p1: - p1.1: '{{s1}}' - p1.2: '{{s2}}' - p1.3: '[{{s3}}, {{s4}}]' - ref: wolfpack.a1 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_first_task_parameter_render_fail.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_first_task_parameter_render_fail.yaml deleted file mode 100644 index f50a8ecb4c..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_first_task_parameter_render_fail.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -chain: -- name: c1 - parameters: - p1: '{{s1}}' - ref: wolfpack.a1 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_invalid_parameter_type_passed_to_action.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_invalid_parameter_type_passed_to_action.yaml deleted file mode 100644 index 9fd82b7493..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_invalid_parameter_type_passed_to_action.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -chain: -- name: c1 - ref: wolfpack.a2 - parameters: - arrtype: "stringnotanarray" -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_list_template.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_list_template.yaml deleted file mode 100644 index 000039f158..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_list_template.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -chain: -- name: c1 - parameters: - p1: '[{{s2}}, {{s3}}, {{s4}}]' - ref: wolfpack.a2 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_publish_params_rendering_failure.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_publish_params_rendering_failure.yaml deleted file mode 100644 index 182dff46ae..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_publish_params_rendering_failure.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - on-success: c3 - publish: - # We reference variable which is not defined / available in the context - p1: "{{ not_defined }}" - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - parameters: {} - ref: wolfpack.a3 -- name: c4 - parameters: - actionstr: "{{action_context.parent.execution_id}}" - ref: wolfpack.action-4-action-context-param -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_second_task_parameter_render_fail.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_second_task_parameter_render_fail.yaml deleted file mode 100644 index 94060b37d6..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_second_task_parameter_render_fail.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -chain: -- name: c1 - on-success: c2 - parameters: {} - ref: wolfpack.a1 -- name: c2 - parameters: - p1: '{{s1}}' - ref: wolfpack.a1 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_typed_params.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_typed_params.yaml deleted file mode 100644 index 7915fe7b13..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_typed_params.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -chain: -- name: c1 - parameters: - arrtype: - - '{{s1}}' - - '{{s2}}' - booltype: true - inttype: '{{s1}}' - numbertype: '{{s3}}' - objtype: - k1: '{{s1}}' - s2: '{{s2}}' - strtype: '{{s2}}' - ref: wolfpack.a2 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_typed_system_params.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_typed_system_params.yaml deleted file mode 100644 index ec3ba69da8..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_typed_system_params.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -chain: -- name: c1 - params: - inttype: '{{st2kv.system.a}}' - strtype: '{{st2kv.system.a.b.c}}' - ref: wolfpack.a2 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_actionparam_vars.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_with_actionparam_vars.yaml deleted file mode 100644 index bc4f4a92fc..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_actionparam_vars.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -chain: -- name: c1 - parameters: - booltype: true - inttype: '{{inttype}}' - strtype: '{{strtype}}' - ref: wolfpack.a2 -default: c1 -vars: - inttype: 1 - strtype: '{{input_a}}' diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_invalid_action.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_with_invalid_action.yaml deleted file mode 100644 index 640bbc16c8..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_invalid_action.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -chain: -- name: c1 - on-success: c2 - parameters: - booltype: true - inttype: '{{inttype}}' - strtype: '{{strtype}}' - ref: wolfpack.a2 -- name: c2 - parameters: - booltype: true - inttype: '{{inttype}}' - strtype: '{{o1}}' - ref: wolfpack.doesntexist -default: c1 -vars: - inttype: 1 - strtype: '{{st2kv.system.a}}' diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_notifications.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_with_notifications.yaml deleted file mode 100644 index 66896d0ec9..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_notifications.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- - chain: - - - name: "c1" - ref: "wolfpack.a1" - parameters: - p1: "v1" - on-success: "c2" - on-failure: "c4" - notify: - on-complete: - message: "on complete" - data: {} - routes: - - "channel1" - on-failure: - message: "on failure" - data: {} - routes: - - "channel1" - on-success: - message: "on success" - data: {} - routes: - - "channel1" - - - name: "c2" - ref: "wolfpack.a2" - parameters: - p1: "v1" - on-failure: "c4" - - - name: "c4" - ref: "wolfpack.a1" - parameters: {} diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_publish.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_with_publish.yaml deleted file mode 100644 index 86220f037c..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_publish.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -chain: -- name: c1 - on-success: c2 - parameters: - booltype: true - inttype: '{{inttype}}' - strtype: '{{strtype}}' - publish: - o1: '{{c1.raw_out}}' - published_action_param: '{{ action_param_1 }}' - ref: wolfpack.a2 -- name: c2 - parameters: - booltype: true - inttype: '{{inttype}}' - published_action_param: '{{ published_action_param }}' - strtype: '{{o1}}' - ref: wolfpack.a2 -default: c1 -vars: - inttype: 1 - strtype: '{{st2kv.system.a}}' diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_publish_2.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_with_publish_2.yaml deleted file mode 100644 index b75528358b..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_publish_2.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -chain: -- name: t1 - on-success: t2 - publish: - t1_publish_param_1: 'foo1' - t1_publish_param_2: 'foo2' - t1_publish_param_3: 'foo3' - publish_last_wins: 'bar_first' - ref: wolfpack.a2 -- name: t2 - ref: wolfpack.a2 - publish: - t2_publish_param_1: 'foo4' - t2_publish_param_2: 'foo5' - t2_publish_param_3: 'foo6' - publish_last_wins: 'bar_last' - -default: t1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_system_vars.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_with_system_vars.yaml deleted file mode 100644 index f9df7a8f18..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_system_vars.yaml +++ /dev/null @@ -1,12 +0,0 @@ - -chain: -- name: c1 - parameters: - booltype: true - inttype: '{{inttype}}' - strtype: '{{strtype}}' - ref: wolfpack.a2 -default: c1 -vars: - inttype: 1 - strtype: '{{st2kv.system.a}}' diff --git a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_vars.yaml b/st2tests/st2tests/fixtures/generic/actionchains/chain_with_vars.yaml deleted file mode 100644 index 99d64c16e5..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/chain_with_vars.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - parameters: - p1: v1 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - on-success: c3 - parameters: - p1: v1 - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - parameters: {} - ref: wolfpack.a3 -- name: c4 - parameters: {} - ref: wolfpack.a1 -default: c1 -vars: - var1: '1' - var2: 2 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/malformedchain.yaml b/st2tests/st2tests/fixtures/generic/actionchains/malformedchain.yaml deleted file mode 100644 index 1798c7f457..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/malformedchain.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -chain: -- malformed_action: a1 - malformed_name: c1 -default: c1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/no_default_chain.yaml b/st2tests/st2tests/fixtures/generic/actionchains/no_default_chain.yaml deleted file mode 100644 index f590df2fd4..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/no_default_chain.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - parameters: - p1: v1 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - on-success: c3 - parameters: - p1: v1 - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - parameters: {} - ref: wolfpack.a3 -- name: c4 - parameters: {} - ref: wolfpack.a1 diff --git a/st2tests/st2tests/fixtures/generic/actionchains/no_default_chain_2.yaml b/st2tests/st2tests/fixtures/generic/actionchains/no_default_chain_2.yaml deleted file mode 100644 index 3e4133c20b..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionchains/no_default_chain_2.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -chain: -- name: c1 - on-failure: c4 - on-success: c2 - parameters: - p1: v1 - ref: wolfpack.a1 -- name: c2 - on-failure: c4 - parameters: - p1: v1 - ref: wolfpack.a2 -- name: c3 - on-failure: c4 - parameters: {} - ref: wolfpack.a3 -- name: c4 - parameters: {} - ref: wolfpack.a1 diff --git a/st2tests/st2tests/fixtures/generic/actions/a1.yaml b/st2tests/st2tests/fixtures/generic/actions/a1.yaml deleted file mode 100644 index a58da7cbb0..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/a1.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -description: test description -enabled: true -entry_point: test/action1.sh -name: a1 -pack: wolfpack -parameters: {} -runner_type: test-runner-2 diff --git a/st2tests/st2tests/fixtures/generic/actions/a2.yaml b/st2tests/st2tests/fixtures/generic/actions/a2.yaml deleted file mode 100644 index d06295e5da..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/a2.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -description: test description -enabled: true -entry_point: /tmp/test/action1.sh -name: a2 -pack: wolfpack -parameters: - arrtype: - type: array - booltype: - type: boolean - inttype: - type: integer - numbertype: - type: number - objtype: - type: object - strtype: - type: string -runner_type: test-runner-2 diff --git a/st2tests/st2tests/fixtures/generic/actions/a2_default_value.yaml b/st2tests/st2tests/fixtures/generic/actions/a2_default_value.yaml deleted file mode 100644 index 06eb7ffc76..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/a2_default_value.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -description: test description -enabled: true -entry_point: /tmp/test/action1.sh -name: a2_default_value -pack: wolfpack -parameters: - arrtype: - type: array - required: true - default: "{{ config_context.arrtype_value }}" - booltype: - type: boolean - inttype: - type: integer - numbertype: - type: number - objtype: - type: object - strtype: - type: string -runner_type: test-runner-2 diff --git a/st2tests/st2tests/fixtures/generic/actions/a2_default_value_render_fail.yaml b/st2tests/st2tests/fixtures/generic/actions/a2_default_value_render_fail.yaml deleted file mode 100644 index 7c003fe607..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/a2_default_value_render_fail.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -description: test description -enabled: true -entry_point: /tmp/test/action1.sh -name: a2_default_value -pack: wolfpack -parameters: - arrtype: - type: array - required: true - default: "{{ doesnt_exist_render_fail }}" - booltype: - type: boolean - inttype: - type: integer - numbertype: - type: number - objtype: - type: object - strtype: - type: string -runner_type: test-runner-2 diff --git a/st2tests/st2tests/fixtures/generic/actions/action-invalid-runner.yaml b/st2tests/st2tests/fixtures/generic/actions/action-invalid-runner.yaml deleted file mode 100644 index 4247bac1dc..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action-invalid-runner.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -description: This action has an invalid runner. -enabled: true -entry_point: '' -name: action-2 -pack: wolfpack -parameters: {} -runner_type: test-failingrunner-1 diff --git a/st2tests/st2tests/fixtures/generic/actions/action-invalid-schema-params.yaml b/st2tests/st2tests/fixtures/generic/actions/action-invalid-schema-params.yaml deleted file mode 100644 index 2bbe3c7a9e..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action-invalid-schema-params.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- - name: "st2_upgrade" - runner_type: "action-chain" - description: "Upgrades an existing st2 installation" - enabled: true - entry_point: "workflows/st2_upgrade.yaml" - parameters: - hostname: - type: "string" - description: "Host to upgrade st2 on" - required: true - action: - type: "string" - description: "Action to run after upgrade" - default: "core.local" - action_params: - type: "string" - description: "Parameters of action to be run" - default: "date" - repo: - type: "string" - # Note the quote after description. This is invalid. - description": "Git repository for this project" - build_server: - type: "string" - description: "build server" - branch: - type: "string" - description: "branch" - environment: - type: "string" - description: "environment" diff --git a/st2tests/st2tests/fixtures/generic/actions/action-with-no-parameters.yaml b/st2tests/st2tests/fixtures/generic/actions/action-with-no-parameters.yaml deleted file mode 100644 index b6ac552e0e..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action-with-no-parameters.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name: list_dns_zones -runner_type: "python-script" -description: List all the DNS zones. -enabled: true -entry_point: list_dns_zones.py diff --git a/st2tests/st2tests/fixtures/generic/actions/action1.yaml b/st2tests/st2tests/fixtures/generic/actions/action1.yaml deleted file mode 100644 index 15422c71b7..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action1.yaml +++ /dev/null @@ -1,32 +0,0 @@ ---- -description: Awesome action-1 -enabled: true -entry_point: '' -name: action-1 -pack: wolfpack -parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - actionstr: - required: true - type: string - async_test: - default: false - type: boolean - action_secret: - type: string - secret: true - runnerdummy: - default: actiondummy - immutable: true - runnerfoo: - default: FOO - immutable: true - runnerimmutable: - default: failed_override -runner_type: local-shell-cmd diff --git a/st2tests/st2tests/fixtures/generic/actions/action2.yaml b/st2tests/st2tests/fixtures/generic/actions/action2.yaml deleted file mode 100644 index 4a87b80108..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action2.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -description: Awesome action-2 -enabled: true -entry_point: '' -name: action-2 -pack: wolfpack -parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - actionstr: - required: true - type: string - actionbool: - required: false - type: boolean - actionfloat: - required: false - type: number - actionobject: - required: false - type: object - async_test: - default: false - type: boolean - runnerdummy: - default: actiondummy - immutable: true - runnerfoo: - default: FOO - immutable: true - runnerimmutable: - default: failed_override -runner_type: local-shell-cmd diff --git a/st2tests/st2tests/fixtures/generic/actions/action3.yaml b/st2tests/st2tests/fixtures/generic/actions/action3.yaml deleted file mode 100644 index bd8c0fdf7b..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action3.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -description: An action that overrides runner required parameters -enabled: true -entry_point: '' -name: action-3 -pack: wolfpack -parameters: - k2: - required: true - default: bar -runner_type: test-runner-3 diff --git a/st2tests/st2tests/fixtures/generic/actions/action_2_bad_json.yaml b/st2tests/st2tests/fixtures/generic/actions/action_2_bad_json.yaml deleted file mode 100644 index 2ae29c0d9e..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action_2_bad_json.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- -null -... diff --git a/st2tests/st2tests/fixtures/generic/actions/action_3_pack_missing.yaml b/st2tests/st2tests/fixtures/generic/actions/action_3_pack_missing.yaml deleted file mode 100644 index ff0d1b7d14..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action_3_pack_missing.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: test description -enabled: true -entry_point: /tmp/test/action1.sh -name: st2.dummy.action3 -parameters: - a: - default: A1 - type: string - b: - default: B1 - type: string -runner_type: "local-shell-cmd" diff --git a/st2tests/st2tests/fixtures/generic/actions/action_4_action_context_param.yaml b/st2tests/st2tests/fixtures/generic/actions/action_4_action_context_param.yaml deleted file mode 100644 index d4dc43c835..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action_4_action_context_param.yaml +++ /dev/null @@ -1,39 +0,0 @@ ---- -description: Awesome action that uses a parameter from action context. -enabled: true -entry_point: '' -name: action-4-action-context-param -pack: wolfpack -parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - actionstr: - required: true - type: string - action_api_user: - default: "{{action_context.api_user}}" - async_test: - default: false - type: boolean - runnerdummy: - default: actiondummy - immutable: true - runnerfoo: - default: FOO - immutable: true - runnerimmutable: - default: failed_override - runnerdefaultint: - default: 0 - defaults_ovverriden_by_execution: - default: 1 - description: Overrides runner default. Will be overriden by live action - type: integer - config_param: - default: "no_config" -runner_type: test-runner-1 diff --git a/st2tests/st2tests/fixtures/generic/actions/action_invalid_param_type.yaml b/st2tests/st2tests/fixtures/generic/actions/action_invalid_param_type.yaml deleted file mode 100644 index 9f09769f15..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action_invalid_param_type.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -description: Awesome action-1 -enabled: true -entry_point: '' -name: action-invalid-param-type -pack: dummy -parameters: - param1: - type: "list" - immutable: true -runner_type: test-runner-1 diff --git a/st2tests/st2tests/fixtures/generic/actions/action_invalid_parameter_name.yaml b/st2tests/st2tests/fixtures/generic/actions/action_invalid_parameter_name.yaml deleted file mode 100644 index d76010f9e5..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action_invalid_parameter_name.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- - name: "invalid_parameter_name" - runner_type: "action-chain" - description: "Upgrades an existing st2 installation" - enabled: true - entry_point: "workflows/st2_upgrade.yaml" - parameters: - hostname: - type: "string" - description: "Host to upgrade st2 on" - required: true - # Note: This parameter name is invalid because we don't support dashes in the parameter names - action-name: - type: "string" - description: "Action to run after upgrade" - default: "core.local" diff --git a/st2tests/st2tests/fixtures/generic/actions/action_system_default.yaml b/st2tests/st2tests/fixtures/generic/actions/action_system_default.yaml deleted file mode 100644 index ac9eb2a29f..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/action_system_default.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Awesome action-1 -enabled: true -entry_point: '' -name: action_system_default -pack: wolfpack -parameters: - actionnumber: - default: '{{st2kv.system.actionnumber}}' - type: number - actionstr: - default: '{{st2kv.system.actionstr}}' - type: string -runner_type: test-runner-1 diff --git a/st2tests/st2tests/fixtures/generic/actions/ask.yaml b/st2tests/st2tests/fixtures/generic/actions/ask.yaml deleted file mode 100644 index a2ef2bcef3..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/ask.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name: ask -description: test description -enabled: True -pack: wolfpack -runner_type: inquirer diff --git a/st2tests/st2tests/fixtures/generic/actions/async_action1.yaml b/st2tests/st2tests/fixtures/generic/actions/async_action1.yaml deleted file mode 100644 index 11c5e62e4b..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/async_action1.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -description: Awesome action-1 -enabled: true -entry_point: '' -name: async-action-1 -pack: wolfpack -parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - actionstr: - required: true - type: string - runnerdummy: - default: actiondummy - runnerimmutable: - default: failed_override -runner_type: test-async-runner-1 diff --git a/st2tests/st2tests/fixtures/generic/actions/async_action2.yaml b/st2tests/st2tests/fixtures/generic/actions/async_action2.yaml deleted file mode 100644 index 06b09f0d00..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/async_action2.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -description: Awesome action-2 -enabled: true -entry_point: '' -name: async-action-2 -pack: wolfpack -parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - actionstr: - required: true - type: string - runnerdummy: - default: actiondummy - runnerimmutable: - default: failed_override -runner_type: test-async-runner-2 diff --git a/st2tests/st2tests/fixtures/generic/actions/inquiry_workflow.yaml b/st2tests/st2tests/fixtures/generic/actions/inquiry_workflow.yaml deleted file mode 100644 index 9cafab83b8..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/inquiry_workflow.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -description: Inquiry workflow -enabled: true -entry_point: '' -name: inquiry-workflow -pack: wolfpack -runner_type: action-chain diff --git a/st2tests/st2tests/fixtures/generic/actions/local.yaml b/st2tests/st2tests/fixtures/generic/actions/local.yaml deleted file mode 100644 index 6b0b2bc157..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/local.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: Action that executes an arbitrary Linux command on the localhost. -enabled: true -entry_point: '' -name: local -pack: core -parameters: - cmd: - required: true - sudo: - immutable: true - type: boolean -runner_type: "local-shell-cmd" diff --git a/st2tests/st2tests/fixtures/generic/actions/local_script_with_params.sh b/st2tests/st2tests/fixtures/generic/actions/local_script_with_params.sh deleted file mode 100755 index 76ad6cf482..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/local_script_with_params.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -PARAM_STRING=$1 -PARAM_INTEGER=$2 -PARAM_FLOAT=$3 -PARAM_BOOLEAN=$4 -PARAM_LIST=$5 -PARAM_OBJECT=$6 - -echo "PARAM_STRING=${PARAM_STRING}" -echo "PARAM_INTEGER=${PARAM_INTEGER}" -echo "PARAM_FLOAT=${PARAM_FLOAT}" -echo "PARAM_BOOLEAN=${PARAM_BOOLEAN}" -echo "PARAM_LIST=${PARAM_LIST}" -echo "PARAM_OBJECT=${PARAM_OBJECT}" - -sleep 2 diff --git a/st2tests/st2tests/fixtures/generic/actions/local_script_with_params.yaml b/st2tests/st2tests/fixtures/generic/actions/local_script_with_params.yaml deleted file mode 100644 index c498a0d905..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/local_script_with_params.yaml +++ /dev/null @@ -1,26 +0,0 @@ ---- -description: Action that executes an arbitrary Linux command on the localhost. -enabled: true -name: local_script_with_params -pack: core -runner_type: "local-shell-script" -entry_point: 'local_script_with_params.sh' -parameters: - param_string: - type: string - position: 0 - param_integer: - type: integer - position: 1 - param_float: - type: float - position: 3 - param_boolean: - type: boolean - position: 4 - param_list: - type: list - position: 5 - param_object: - type: object - position: 6 diff --git a/st2tests/st2tests/fixtures/generic/actions/noop.yaml b/st2tests/st2tests/fixtures/generic/actions/noop.yaml deleted file mode 100644 index 99df8dcc97..0000000000 --- a/st2tests/st2tests/fixtures/generic/actions/noop.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -description: Action that does nothing -enabled: true -entry_point: '' -name: noop -pack: core -parameters: {} -runner_type: "noop" diff --git a/st2tests/st2tests/fixtures/generic/actionstates/state1.yaml b/st2tests/st2tests/fixtures/generic/actionstates/state1.yaml deleted file mode 100644 index a4349b4f82..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionstates/state1.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -execution_id: 549dcfda95e3fc7a9b0912ee -query_context: - id: 661491fa-3e17-48cf-bc92-05ecc501d700 -query_module: test_querymodule diff --git a/st2tests/st2tests/fixtures/generic/actionstates/state2.yaml b/st2tests/st2tests/fixtures/generic/actionstates/state2.yaml deleted file mode 100644 index 98a072efeb..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionstates/state2.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -execution_id: 549dcfda95e3fc7a9b0912ef -query_context: - id: 661491fa-3e17-48cf-bc92-05ecc501d701 -query_module: test_querymodule diff --git a/st2tests/st2tests/fixtures/generic/actionstates/state3.yaml b/st2tests/st2tests/fixtures/generic/actionstates/state3.yaml deleted file mode 100644 index 964a7435e1..0000000000 --- a/st2tests/st2tests/fixtures/generic/actionstates/state3.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -execution_id: 549dcfda95e3fc7a9b0912eh -query_context: - id: 661491fa-3e17-48cf-bc92-05ecc501d700 -query_module: module_aint_exist diff --git a/st2tests/st2tests/fixtures/generic/aliases/alias1.yaml b/st2tests/st2tests/fixtures/generic/aliases/alias1.yaml deleted file mode 100644 index 498b2d85bd..0000000000 --- a/st2tests/st2tests/fixtures/generic/aliases/alias1.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "alias1" - pack: "aliases" - description: "DON'T CARE" - action_ref: "core.local" - formats: - - "Lorem ipsum {{param1}} dolor sit {{param2}} amet." - - "foo bar ponies" diff --git a/st2tests/st2tests/fixtures/generic/aliases/alias3.yaml b/st2tests/st2tests/fixtures/generic/aliases/alias3.yaml deleted file mode 100644 index 6683a84f56..0000000000 --- a/st2tests/st2tests/fixtures/generic/aliases/alias3.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "alias3" - pack: "generic" - description: "DON'T CARE" - action_ref: "core.remote" - formats: - - "format1" - - "format2" diff --git a/st2tests/st2tests/fixtures/generic/aliases/alias7.yaml b/st2tests/st2tests/fixtures/generic/aliases/alias7.yaml deleted file mode 100644 index f7d4df4e00..0000000000 --- a/st2tests/st2tests/fixtures/generic/aliases/alias7.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "alias7" - pack: "generic" - description: "DON'T CARE" - action_ref: "core.remote" - formats: - - "format1" - - "format2" diff --git a/st2tests/st2tests/fixtures/generic/apikeys/apikey1.yaml b/st2tests/st2tests/fixtures/generic/apikeys/apikey1.yaml deleted file mode 100644 index ffdaccad18..0000000000 --- a/st2tests/st2tests/fixtures/generic/apikeys/apikey1.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -id: 58e3f3330c0517062a3fda43 -user: bill -key_hash: "ec81d4a56f5987b0ae1cff6e152459986e873d6604637fc70d85c0a0daf131b0a830ccd5b6454cc0c95c0ba6e6655933c993325eb3a28bc43af6c1d801a7c1e8" # 1234 -metadata: - used_by: jira diff --git a/st2tests/st2tests/fixtures/generic/apikeys/apikey2.yaml b/st2tests/st2tests/fixtures/generic/apikeys/apikey2.yaml deleted file mode 100644 index 1fed0f928c..0000000000 --- a/st2tests/st2tests/fixtures/generic/apikeys/apikey2.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -id: 5c5ddd776cb8de530e0a1391 -user: dilbert -key_hash: "17f858ea0bb108feaa91b8eee524c7382e0218ff541783d45996a1149d50dfde4bc19f2e6a591028a2ea08de4211893b246d4eda61dd3c9cf294a2405184ac4b" # 5678 -metadata: - used_by: github diff --git a/st2tests/st2tests/fixtures/generic/apikeys/apikey3.yaml b/st2tests/st2tests/fixtures/generic/apikeys/apikey3.yaml deleted file mode 100644 index e3492ebf77..0000000000 --- a/st2tests/st2tests/fixtures/generic/apikeys/apikey3.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -user: dale -key_hash: "2c0792a87d8d6fd943cfe996f6ed97d7ce8ac085ae8982d1798b689db1ee429cc2a5b4fb0abd3e9c1978ec841a5b3f4ff750b6548c2b7ff12cba4f029e686b2c" #9012 -metadata: - used_by: sensu diff --git a/st2tests/st2tests/fixtures/generic/apikeys/apikey_disabled.yaml b/st2tests/st2tests/fixtures/generic/apikeys/apikey_disabled.yaml deleted file mode 100644 index 3bdb56fb2b..0000000000 --- a/st2tests/st2tests/fixtures/generic/apikeys/apikey_disabled.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -user: dilbert -key_hash: "a260926b38e55c044ef1bad2ac8f0ad73f6570b4023a490691020e1a8e74d62fe67e5e24adf3fbaeb903ce84b02556e88716138fd446bb12b71c2f613e494891" # 0000 -enabled: False -metadata: - used_by: github - diff --git a/st2tests/st2tests/fixtures/generic/apikeys/apikey_malformed.yaml b/st2tests/st2tests/fixtures/generic/apikeys/apikey_malformed.yaml deleted file mode 100644 index f1f37ed787..0000000000 --- a/st2tests/st2tests/fixtures/generic/apikeys/apikey_malformed.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -user: dilbert -key_hash: SUPER_SECRET_PARAMETER_THAT_SHOULD_NEVER_APPEAR_IN_RESPONSES_OR_LOGS -metadata: - used_by: github - diff --git a/st2tests/st2tests/fixtures/generic/enforcements/enforcement1.yaml b/st2tests/st2tests/fixtures/generic/enforcements/enforcement1.yaml deleted file mode 100644 index 305b2dd9ef..0000000000 --- a/st2tests/st2tests/fixtures/generic/enforcements/enforcement1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - enforced_at: "2015-12-01T21:49:02.418822Z" - execution_id: "565e15ce32ed350857dfa626" - id: "565e15ce32ed350857dfa627" - rule: - id: "565e15c032ed35086c54f331" - uid: "rule:git:st2.webhook.github.pulls.merge.sample" - ref: "git.st2.webhook.github.pulls.merge.sample" - trigger_instance_id: "565e15ce32ed350857dfa623" diff --git a/st2tests/st2tests/fixtures/generic/executions/execution1.yaml b/st2tests/st2tests/fixtures/generic/executions/execution1.yaml deleted file mode 100644 index 8d519fad7a..0000000000 --- a/st2tests/st2tests/fixtures/generic/executions/execution1.yaml +++ /dev/null @@ -1,37 +0,0 @@ ---- -action: - enabled: true - entry_point: '' - id: 54c6bb640640fd5211edef0c - uid: action:core:local - ref: core.local - name: local - pack: core - parameters: - sudo: - immutable: true - runner_type: run-local -end_timestamp: '2014-09-01T00:00:05.000000Z' -id: 54c6bb640640fd5211edef0d -liveaction: - action: core.someworkflow - callback: {} - context: - user: system - end_timestamp: '2014-09-01T00:00:05.000000Z' - id: 54c6b6d60640fd4f5354e74a - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: scheduled -parameters: {} -result: {} -runner: - description: A runner for launching linear action chains. - enabled: true - id: 54c6bb640640fd5211edef0b - name: action-chain - runner_module: action_chain_runner - runner_parameters: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: scheduled diff --git a/st2tests/st2tests/fixtures/generic/liveactions/childliveaction.yaml b/st2tests/st2tests/fixtures/generic/liveactions/childliveaction.yaml deleted file mode 100644 index df8db696d1..0000000000 --- a/st2tests/st2tests/fixtures/generic/liveactions/childliveaction.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -action: core.local -callback: {} -context: - parent: - 'execution_id': 54c6bb640640fd5211edef0d - user: system -end_timestamp: '2014-09-01T00:00:05.000000Z' -parameters: {} -result: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: requested diff --git a/st2tests/st2tests/fixtures/generic/liveactions/liveaction1.yaml b/st2tests/st2tests/fixtures/generic/liveactions/liveaction1.yaml deleted file mode 100644 index 4730982dd3..0000000000 --- a/st2tests/st2tests/fixtures/generic/liveactions/liveaction1.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -action: core.local -callback: {} -context: - user: system -end_timestamp: '2014-09-01T00:00:05.000000Z' -parameters: {} -result: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: requested diff --git a/st2tests/st2tests/fixtures/generic/liveactions/liveaction2.yaml b/st2tests/st2tests/fixtures/generic/liveactions/liveaction2.yaml deleted file mode 100644 index acb0e19e9d..0000000000 --- a/st2tests/st2tests/fixtures/generic/liveactions/liveaction2.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -action: foo.mistral.wf1 -callback: {} -context: - user: system -end_timestamp: '2014-09-01T00:00:05.000000Z' -parameters: {} -result: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: requested diff --git a/st2tests/st2tests/fixtures/generic/liveactions/liveaction3.yaml b/st2tests/st2tests/fixtures/generic/liveactions/liveaction3.yaml deleted file mode 100644 index 8bf79340a9..0000000000 --- a/st2tests/st2tests/fixtures/generic/liveactions/liveaction3.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -action: core.local -callback: {} -context: - rule: - id: 54c2f30c0640fd2b2fda03ec - name: st2.person.joe - trigger_instance: - id: 54c2f30c0640fd2b2fda03ec - name: '' - user: stanley -end_timestamp: '2014-09-01T00:00:05.000000Z' -parameters: {} -result: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: requested diff --git a/st2tests/st2tests/fixtures/generic/liveactions/liveaction4.yaml b/st2tests/st2tests/fixtures/generic/liveactions/liveaction4.yaml deleted file mode 100644 index dae038edee..0000000000 --- a/st2tests/st2tests/fixtures/generic/liveactions/liveaction4.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -action: core.local -id: 54c6b6d60640fd4f5354e74a -callback: {} -context: - rule: - id: 54c2f30c0640fd2b2fda03ec - name: st2.person.joe - trigger_instance: - id: 54c2f30c0640fd2b2fda03ec - name: '' - user: stanley -end_timestamp: '2014-09-01T00:00:05.000000Z' -parameters: {} -result: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: requested diff --git a/st2tests/st2tests/fixtures/generic/liveactions/parentliveaction.yaml b/st2tests/st2tests/fixtures/generic/liveactions/parentliveaction.yaml deleted file mode 100644 index ed56d4c449..0000000000 --- a/st2tests/st2tests/fixtures/generic/liveactions/parentliveaction.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -action: core.someworkflow -callback: {} -context: - user: system -end_timestamp: '2014-09-01T00:00:05.000000Z' -id: 54c6b6d60640fd4f5354e74a -parameters: {} -result: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: requested diff --git a/st2tests/st2tests/fixtures/generic/liveactions/successful_liveaction.yaml b/st2tests/st2tests/fixtures/generic/liveactions/successful_liveaction.yaml deleted file mode 100644 index 7fc39282a0..0000000000 --- a/st2tests/st2tests/fixtures/generic/liveactions/successful_liveaction.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -action: core.local -callback: {} -context: - user: system -end_timestamp: '2014-09-01T00:00:05.000000Z' -parameters: - cmd: uname -result: - failed: false - return_code: 0 - stderr: '' - stdout: Linux -succeeded: true -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: succeeded diff --git a/st2tests/st2tests/fixtures/generic/policies/policy_1.yaml b/st2tests/st2tests/fixtures/generic/policies/policy_1.yaml deleted file mode 100644 index 4f5d9eec67..0000000000 --- a/st2tests/st2tests/fixtures/generic/policies/policy_1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -name: action-1.concurrency -pack: wolfpack -description: Limits the concurrent executions for the fake action. -enabled: true -resource_ref: wolfpack.action-1 -policy_type: action.concurrency -parameters: - threshold: 3 diff --git a/st2tests/st2tests/fixtures/generic/policies/policy_2.yaml b/st2tests/st2tests/fixtures/generic/policies/policy_2.yaml deleted file mode 100644 index 78c88f1582..0000000000 --- a/st2tests/st2tests/fixtures/generic/policies/policy_2.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: action-1.raise -pack: wolfpack -description: Raise a policy error. -enabled: true -resource_ref: wolfpack.action-1 -policy_type: action.mock_policy_error diff --git a/st2tests/st2tests/fixtures/generic/policies/policy_3.yaml b/st2tests/st2tests/fixtures/generic/policies/policy_3.yaml deleted file mode 100644 index 8966b54249..0000000000 --- a/st2tests/st2tests/fixtures/generic/policies/policy_3.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: action-1.concurrency.attr -pack: wolfpack -description: Limits the concurrent executions for the fake action by actionstr. -enabled: true -resource_ref: wolfpack.action-1 -policy_type: action.concurrency.attr -parameters: - threshold: 3 - attributes: - - actionstr diff --git a/st2tests/st2tests/fixtures/generic/policies/policy_4.yaml b/st2tests/st2tests/fixtures/generic/policies/policy_4.yaml deleted file mode 100644 index 98a0dfbb40..0000000000 --- a/st2tests/st2tests/fixtures/generic/policies/policy_4.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: action-1.retry_on_timeout -pack: wolfpack -description: Retry fake execution om timeout. -enabled: true -resource_ref: wolfpack.action-1 -policy_type: action.retry -parameters: - retry_on: timeout - max_retry_count: 2 diff --git a/st2tests/st2tests/fixtures/generic/policies/policy_5.yaml b/st2tests/st2tests/fixtures/generic/policies/policy_5.yaml deleted file mode 100644 index 6040d12cde..0000000000 --- a/st2tests/st2tests/fixtures/generic/policies/policy_5.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: action-2.concurrency.cancel -pack: wolfpack -description: Limits the concurrent executions for the fake action. -enabled: true -resource_ref: wolfpack.action-2 -policy_type: action.concurrency -parameters: - action: cancel - threshold: 3 diff --git a/st2tests/st2tests/fixtures/generic/policies/policy_7.yaml b/st2tests/st2tests/fixtures/generic/policies/policy_7.yaml deleted file mode 100644 index 3c6bfb18d8..0000000000 --- a/st2tests/st2tests/fixtures/generic/policies/policy_7.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: action-2.concurrency.attr.cancel -pack: wolfpack -description: Limits the concurrent executions for the fake action by actionstr. -enabled: true -resource_ref: wolfpack.action-2 -policy_type: action.concurrency.attr -parameters: - action: cancel - threshold: 3 - attributes: - - actionstr diff --git a/st2tests/st2tests/fixtures/generic/policies/policy_8.yaml b/st2tests/st2tests/fixtures/generic/policies/policy_8.yaml deleted file mode 100644 index 775952074f..0000000000 --- a/st2tests/st2tests/fixtures/generic/policies/policy_8.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: action-8.concurrency.attr.cancel -pack: wolfpack2 -description: Limits the concurrent executions for the fake action by actionstr. -enabled: true -resource_ref: wolfpack2.action-8 -policy_type: action.concurrency.attr -parameters: - action: cancel - threshold: 3 - attributes: - - actionstr diff --git a/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_1.yaml b/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_1.yaml deleted file mode 100644 index e6b5c4bd46..0000000000 --- a/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_1.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: concurrency -description: Limits the concurrent executions for the action. -enabled: true -resource_type: action -module: st2tests.policies.concurrency -parameters: - threshold: - type: integer - required: true diff --git a/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_2.yaml b/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_2.yaml deleted file mode 100644 index 59019d3ff7..0000000000 --- a/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_2.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name: mock_policy_error -description: Raises an exception when applying policy. -enabled: true -resource_type: action -module: st2tests.policies.mock_exception diff --git a/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_3.yaml b/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_3.yaml deleted file mode 100644 index 422340543c..0000000000 --- a/st2tests/st2tests/fixtures/generic/policytypes/fake_policy_type_3.yaml +++ /dev/null @@ -1,25 +0,0 @@ ---- -name: concurrency.attr -description: Limits the concurrent executions for the action by attribute(s). -enabled: true -resource_type: action -module: st2actions.policies.concurrency_by_attr -parameters: - threshold: - description: Concurrency threshold. - type: integer - required: true - action: - description: Which action to perform on the execution once the concurrency threshold has been reached. - type: string - default: delay - enum: - - delay - - cancel - attributes: - description: List of attributes by which to limit the concurrency. - type: array - uniqueItems: true - items: - type: string - minLength: 1 diff --git a/st2tests/st2tests/fixtures/generic/rules/backstop_rule.yaml b/st2tests/st2tests/fixtures/generic/rules/backstop_rule.yaml deleted file mode 100644 index 201323acba..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/backstop_rule.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule1 -pack: wolfpack -type: - ref: backstop -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_1.yaml b/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_1.yaml deleted file mode 100644 index 206ec70799..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_1.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{rule.k1}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: cron_timer_rule_1 -pack: timer_rules -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - parameters: - minute: 0 - second: 0 - type: core.st2.CronTimer diff --git a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_2.yaml b/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_2.yaml deleted file mode 100644 index a553da06d9..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_2.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{rule.k1}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: cron_timer_rule_2 -pack: timer_rules -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - parameters: - minute: 0 - second: 0 - type: core.st2.CronTimer diff --git a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_3.yaml b/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_3.yaml deleted file mode 100644 index 24382c2a98..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_3.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{rule.k1}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: cron_timer_rule_3 -pack: timer_rules -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - parameters: - minute: 0 - second: 1 - type: core.st2.CronTimer diff --git a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters.yaml b/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters.yaml deleted file mode 100644 index 342f70e9b6..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{rule.k1}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: cron_timer_rule_1 -pack: timer_rules -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - parameters: - minutex: 0 - second: 0 - type: core.st2.CronTimer diff --git a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_1.yaml b/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_1.yaml deleted file mode 100644 index 10002a0210..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_1.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: cron_timer_rule_invalid_parameters_1 -pack: "timer_rules" -description: Sample rule using an Interval Timer. -enabled: false - -trigger: - parameters: - day_of_week: 1000 - type: core.st2.CronTimer - -criteria: {} - -action: - ref: wolfpack.action-1 - parameters: - ip1: "a" - ip2: "b" diff --git a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_2.yaml b/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_2.yaml deleted file mode 100644 index 0ef3bf8eb6..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_2.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: cron_timer_rule_invalid_parameters_2 -pack: "timer_rules" -description: Sample rule using an Interval Timer. -enabled: false - -trigger: - parameters: - day_of_week: "abcdef" - type: core.st2.CronTimer - -criteria: {} - -action: - ref: wolfpack.action-1 - parameters: - ip1: "a" - ip2: "b" diff --git a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_3.yaml b/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_3.yaml deleted file mode 100644 index 42147605eb..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/cron_timer_rule_invalid_parameters_3.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: cron_timer_rule_invalid_parameters_2 -pack: "timer_rules" -description: Sample rule using an Interval Timer. -enabled: false - -trigger: - parameters: - day_of_week: "a-1" - type: core.st2.CronTimer - -criteria: {} - -action: - ref: wolfpack.action-1 - parameters: - ip1: "a" - ip2: "b" diff --git a/st2tests/st2tests/fixtures/generic/rules/date_timer_rule_invalid_parameters.yaml b/st2tests/st2tests/fixtures/generic/rules/date_timer_rule_invalid_parameters.yaml deleted file mode 100644 index 82231dac14..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/date_timer_rule_invalid_parameters.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{rule.k1}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: date_timer_rule_1 -pack: timer_rules -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - # Missing a required parameter - parameters: {} - type: core.st2.DateTimer diff --git a/st2tests/st2tests/fixtures/generic/rules/rule space.yaml b/st2tests/st2tests/fixtures/generic/rules/rule space.yaml deleted file mode 100644 index 79ca54a1e4..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule space.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - trigger.t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule space -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule1.yaml b/st2tests/st2tests/fixtures/generic/rules/rule1.yaml deleted file mode 100644 index 0e4302e7ca..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule1.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - action_secret: 'secret' - ref: wolfpack.action-1 -criteria: - trigger.t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule1 -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule2.yaml b/st2tests/st2tests/fixtures/generic/rules/rule2.yaml deleted file mode 100644 index f47cc65c3c..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule2.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - objtype: '{{trigger}}' - strtype: '{{trigger.t1_p}}' - ref: wolfpack.a2 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule2 -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule3.yaml b/st2tests/st2tests/fixtures/generic/rules/rule3.yaml deleted file mode 100644 index 9d8b51d66a..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule3.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -action: - parameters: - cmd: "echo \"{{trigger}}\" >> /tmp/st2.persons.out" - ref: core.local -criteria: - trigger.name: - pattern: Joe - type: equals -enabled: true -name: st2.person.joe -pack: wolfpack -trigger: - parameters: - url: person - type: dummy_pack_1.st2.webhook diff --git a/st2tests/st2tests/fixtures/generic/rules/rule4.yaml b/st2tests/st2tests/fixtures/generic/rules/rule4.yaml deleted file mode 100644 index cb4d82cdc5..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule4.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-2 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule4 -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule5.yaml b/st2tests/st2tests/fixtures/generic/rules/rule5.yaml deleted file mode 100644 index 6159fb5136..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule5.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule5 -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value.yaml deleted file mode 100644 index 01dbe8c757..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - objtype: '{{trigger}}' - strtype: '{{trigger.t1_p}}' - ref: wolfpack.a2_default_value -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule_action_default_value -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value_overridden.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value_overridden.yaml deleted file mode 100644 index 780b2423ff..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value_overridden.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -action: - parameters: - objtype: '{{trigger}}' - strtype: '{{trigger.t1_p}}' - arrtype: - - override 1 - - override 2 - ref: wolfpack.a2_default_value -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule_action_default_value_overridden -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value_render_fail.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value_render_fail.yaml deleted file mode 100644 index 7c8ec12336..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_action_default_value_render_fail.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - objtype: '{{trigger}}' - strtype: '{{trigger.t1_p}}' - ref: wolfpack.a2_default_value -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule_action_default_value_render_fail -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_action_doesnt_exist.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_action_doesnt_exist.yaml deleted file mode 100644 index a1af3cc9c0..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_action_doesnt_exist.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-doesnt-exist-woo -criteria: - trigger.t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule_action_doesnt_exist -pack: examples -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_example_pack.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_example_pack.yaml deleted file mode 100644 index d2a5433944..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_example_pack.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule1 -pack: examples -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_invalid_trigger_parameter_type.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_invalid_trigger_parameter_type.yaml deleted file mode 100644 index 4c93c6b12d..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_invalid_trigger_parameter_type.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: rule_invalid_trigger_parameter_type -pack: wolfpack -action: - ref: wolfpack.action-1 - parameters: {} -enabled: true -description: '' -trigger: - type: wolfpack.triggertype_with_parameters_2 - # param1 is not a string - parameters: - param1: 12345 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_invalid_trigger_parameter_type_default_cfg.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_invalid_trigger_parameter_type_default_cfg.yaml deleted file mode 100644 index 214d350832..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_invalid_trigger_parameter_type_default_cfg.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -name: rule_invalid_trigger_parameter_type_default_cfg -pack: wolfpack -action: - ref: wolfpack.action-1 - parameters: {} -enabled: true -description: '' -trigger: - type: wolfpack.triggertype_with_parameters_2 - # param1 is not a string - parameters: - param1: 12345 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_no_enabled_attribute.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_no_enabled_attribute.yaml deleted file mode 100644 index cc65888787..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_no_enabled_attribute.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -name: rule_no_enabled_attribute -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_none_no_use_none_filter.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_none_no_use_none_filter.yaml deleted file mode 100644 index 6db5121b1d..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_none_no_use_none_filter.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - actionstr: '{{trigger.t1_p}}-{{trigger.t2_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule_none_no_use_none_filter -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_trigger_params.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_trigger_params.yaml deleted file mode 100644 index 1af5243569..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_trigger_params.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: rule_trigger_params -pack: wolfpack -description: '' -enabled: true -trigger: - type: wolfpack.triggertype_with_params - parameters: - x : 'ignore' -criteria: {} -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_trigger_with_no_parameters.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_trigger_with_no_parameters.yaml deleted file mode 100644 index f24d959024..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_trigger_with_no_parameters.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: rule_trigger_with_no_parameters -pack: wolfpack -action: - ref: wolfpack.action-1 - parameters: {} -enabled: true -description: '' -trigger: - type: wolfpack.triggertype-1 - # trigger takes no parameters - parameters: - param1: 12345 - param2: "foo" diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_use_none_filter.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_use_none_filter.yaml deleted file mode 100644 index e676964cbb..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_use_none_filter.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - actionstr: '{{trigger.t1_p | use_none}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule_use_none_filter -pack: wolfpack -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_with_action_trigger.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_with_action_trigger.yaml deleted file mode 100644 index 4c8b00e05e..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_with_action_trigger.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- - name: "rule_with_action_trigger" - pack: "examples" - description: "Sample rule dumping webhook payload to a file." - enabled: true - - trigger: - type: "core.st2.generic.actiontrigger" - - criteria: - trigger.body.name: - pattern: "st2" - type: "equals" - - action: - ref: "core.local" - parameters: - cmd: "echo \"{{trigger.body}}\" >> /tmp/st2.webhook_sample.out" diff --git a/st2tests/st2tests/fixtures/generic/rules/rule_with_webhook_trigger.yaml b/st2tests/st2tests/fixtures/generic/rules/rule_with_webhook_trigger.yaml deleted file mode 100644 index 3232eabac1..0000000000 --- a/st2tests/st2tests/fixtures/generic/rules/rule_with_webhook_trigger.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- - name: "rule_with_webhook_trigger" - pack: "examples" - description: "Sample rule dumping webhook payload to a file." - enabled: true - - trigger: - type: "core.st2.webhook" - parameters: - url: "sample" - - criteria: - trigger.body.name: - pattern: "st2" - type: "equals" - - action: - ref: "core.local" - parameters: - cmd: "echo \"{{trigger.body}}\" >> /tmp/st2.webhook_sample.out" diff --git a/st2tests/st2tests/fixtures/generic/runners/actionchain.yaml b/st2tests/st2tests/fixtures/generic/runners/actionchain.yaml deleted file mode 100644 index 935115ec83..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/actionchain.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: A runner for launching linear action chains. -enabled: true -name: action-chain -runner_module: action_chain_runner -runner_parameters: {} diff --git a/st2tests/st2tests/fixtures/generic/runners/inquirer.yaml b/st2tests/st2tests/fixtures/generic/runners/inquirer.yaml deleted file mode 100644 index 5147d6ae32..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/inquirer.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- -description: A runner for Inquiries -enabled: true -name: inquirer -runner_module: inquirer_runner -runner_parameters: - schema: - default: - title: response_data - type: object - properties: - continue: - type: boolean - description: Would you like to continue the workflow? - required: True - required: true - description: A JSON schema that will be used to validate the response data - type: object - route: - default: "" - required: false - description: An arbitrary value for allowing rules to route to proper notification channel - type: string - roles: - default: [] - required: false - description: A list of roles that are permitted to respond to the action (if nothing provided, all are permitted) - REQUIRES ENTERPRISE FEATURES - type: array - users: - default: [] - required: false - description: A list of usernames that are permitted to respond to the action (if nothing provided, all are permitted) - type: array - ttl: - default: 1440 - required: true - description: Time (in minutes) that an unacknowledged Inquiry is cleaned up - type: integer diff --git a/st2tests/st2tests/fixtures/generic/runners/run-local.yaml b/st2tests/st2tests/fixtures/generic/runners/run-local.yaml deleted file mode 100644 index 557dcb99fc..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/run-local.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- -description: A runner to execute local actions as a fixed user. -enabled: true -name: local-shell-cmd -runner_package: local_runner -runner_module: local_shell_command_runner -runner_parameters: - cmd: - type: string - hosts: - default: localhost - immutable: true - type: string - sudo: - default: false - type: boolean -output_schema: - succeeded: - type: boolean - failed: - type: boolean - return_code: - type: integer - stderr: - type: string - stdout: - type: string diff --git a/st2tests/st2tests/fixtures/generic/runners/testasyncrunner1.yaml b/st2tests/st2tests/fixtures/generic/runners/testasyncrunner1.yaml deleted file mode 100644 index cff11068c6..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/testasyncrunner1.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- -description: A test async runner. -enabled: true -name: test-async-runner-1 -runner_module: test_async_runner -runner_parameters: - runnerdummy: - default: runnerdummy - description: Dummy param. - type: string - runnerimmutable: - default: runnerimmutable - description: Immutable param. - immutable: true - type: string - runnerint: - description: Foo int param. - type: number - runnerstr: - default: defaultfoo - description: Foo str param. - type: string diff --git a/st2tests/st2tests/fixtures/generic/runners/testasyncrunner2.yaml b/st2tests/st2tests/fixtures/generic/runners/testasyncrunner2.yaml deleted file mode 100644 index 713328c365..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/testasyncrunner2.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -description: A test polling async runner. -enabled: true -name: test-async-runner-2 -query_module: test_querier -runner_module: test_polling_async_runner -runner_parameters: - runnerdummy: - default: runnerdummy - description: Dummy param. - type: string - runnerimmutable: - default: runnerimmutable - description: Immutable param. - immutable: true - type: string - runnerint: - description: Foo int param. - type: number - runnerstr: - default: defaultfoo - description: Foo str param. - type: string diff --git a/st2tests/st2tests/fixtures/generic/runners/testfailingrunner1.yaml b/st2tests/st2tests/fixtures/generic/runners/testfailingrunner1.yaml deleted file mode 100644 index c680773ba5..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/testfailingrunner1.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -description: A failing test runner. -enabled: true -name: test-failingrunner-1 -runner_module: runner -runner_parameters: - raise: - default: true - description: Foo str param. - immutable: true - type: boolean diff --git a/st2tests/st2tests/fixtures/generic/runners/testrunner1.yaml b/st2tests/st2tests/fixtures/generic/runners/testrunner1.yaml deleted file mode 100644 index 725b5c033e..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/testrunner1.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -description: A test runner. -enabled: true -name: test-runner-1 -runner_module: runner -runner_parameters: - runnerdummy: - default: runnerdummy - description: Dummy param. - type: string - runnerfoo: - default: FOO - description: Some foo param. - runnerimmutable: - default: runnerimmutable - description: Immutable param. - immutable: true - type: string - runnerint: - description: Foo int param. - type: number - runnerdefaultint: - default: 60 - description: Default integer param. - type: integer - defaults_ovverriden_by_execution: - default: 90 - description: Will be overridden by action and then by live execution. - type: integer - runnerstr: - default: defaultfoo - description: Foo str param. - type: string diff --git a/st2tests/st2tests/fixtures/generic/runners/testrunner2.yaml b/st2tests/st2tests/fixtures/generic/runners/testrunner2.yaml deleted file mode 100644 index 8810fda9b8..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/testrunner2.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: A test runner. -enabled: true -name: test-runner-2 -runner_module: runner -runner_parameters: {} diff --git a/st2tests/st2tests/fixtures/generic/runners/testrunner3.yaml b/st2tests/st2tests/fixtures/generic/runners/testrunner3.yaml deleted file mode 100644 index bb9db6555e..0000000000 --- a/st2tests/st2tests/fixtures/generic/runners/testrunner3.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Mock runner to test parameter override. -enabled: true -name: test-runner-3 -runner_module: runner -runner_parameters: - k1: - type: string - required: true - k2: - type: string - required: true - k3: - type: string diff --git a/st2tests/st2tests/fixtures/generic/sensors/partition_file.yaml b/st2tests/st2tests/fixtures/generic/sensors/partition_file.yaml deleted file mode 100644 index 9b55153d7c..0000000000 --- a/st2tests/st2tests/fixtures/generic/sensors/partition_file.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -sensornode1: - - generic.Sensor1 - - generic.Sensor2 diff --git a/st2tests/st2tests/fixtures/generic/sensors/sensor1.yaml b/st2tests/st2tests/fixtures/generic/sensors/sensor1.yaml deleted file mode 100644 index f5c5c36800..0000000000 --- a/st2tests/st2tests/fixtures/generic/sensors/sensor1.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: sensor1 -pack: generic -description: fixture sensor1 -artifact_uri: 'file:///generic/sample_sensor.py' -class_name: 'Sensor1' -enabled: True -trigger_types: [] diff --git a/st2tests/st2tests/fixtures/generic/sensors/sensor2.yaml b/st2tests/st2tests/fixtures/generic/sensors/sensor2.yaml deleted file mode 100644 index 42e7237aef..0000000000 --- a/st2tests/st2tests/fixtures/generic/sensors/sensor2.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: sensor2 -pack: generic -description: fixture sensor2 -artifact_uri: 'file:///generic/sample_sensor.py' -class_name: 'Sensor2' -enabled: True -trigger_types: [] diff --git a/st2tests/st2tests/fixtures/generic/sensors/sensor3.yaml b/st2tests/st2tests/fixtures/generic/sensors/sensor3.yaml deleted file mode 100644 index c5635ccd25..0000000000 --- a/st2tests/st2tests/fixtures/generic/sensors/sensor3.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: sensor3 -pack: generic -description: fixture sensor3 -artifact_uri: 'file:///generic/sample_sensor.py' -class_name: 'Sensor3' -enabled: True -trigger_types: [] diff --git a/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce.yaml b/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce.yaml deleted file mode 100644 index ff2e71a893..0000000000 --- a/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -trace_tag : trace_for_test_enforce -action_executions : [] -rules : [] -trigger_instances : - - object_id: 'triggerinstance-test' # value from test_enforce.py - ref: pack1.trigger1 - updated_at: '2014-09-01T00:00:02.000000Z' diff --git a/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce_2.yaml b/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce_2.yaml deleted file mode 100644 index 352c4998a5..0000000000 --- a/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce_2.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -trace_tag : trace_for_test_enforce -action_executions : [] -rules : [] -trigger_instances : - - object_id: 'triggerinstance-test2' # value from test_enforce.py - ref: pack1.trigger1 - updated_at: '2014-09-01T00:00:02.000000Z' diff --git a/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce_3.yaml b/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce_3.yaml deleted file mode 100644 index 76958504f5..0000000000 --- a/st2tests/st2tests/fixtures/generic/traces/trace_for_test_enforce_3.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -trace_tag : trace_for_test_enforce -action_executions : [] -rules : [] -trigger_instances : - - object_id: 'triggerinstance-test3' # value from test_enforce.py - ref: pack1.trigger1 - updated_at: '2014-09-01T00:00:02.000000Z' diff --git a/st2tests/st2tests/fixtures/generic/triggerinstances/trigger_instance_1.yaml b/st2tests/st2tests/fixtures/generic/triggerinstances/trigger_instance_1.yaml deleted file mode 100644 index 5e3207ff7a..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggerinstances/trigger_instance_1.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -occurrence_time: '2014-09-01T00:00:01.000000Z' -payload: - foo: bar - name: Joe -trigger: dummy_pack_1.46f67652-20cd-4bab-94e2-4615baa846d0 -status: processed diff --git a/st2tests/st2tests/fixtures/generic/triggerinstances/trigger_instance_2.yaml b/st2tests/st2tests/fixtures/generic/triggerinstances/trigger_instance_2.yaml deleted file mode 100644 index 2b2524946f..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggerinstances/trigger_instance_2.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -occurrence_time: '2014-09-01T00:00:01.000000Z' -payload: - t1_p: t1_p_v - t2_p: t2_p_v -trigger: wolfpack.triggertype-1 -status: processed diff --git a/st2tests/st2tests/fixtures/generic/triggers/cron1.yaml b/st2tests/st2tests/fixtures/generic/triggers/cron1.yaml deleted file mode 100644 index 55d98c31cf..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggers/cron1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - id: 58090c48d9d7ed55d3a378e8 - name: d7ea7abf-29d9-4e4f-84dd-39a53982d394 - uid: trigger:core:d7ea7abf-29d9-4e4f-84dd-39a53982d394:68764760e4f98f5f619aaa27b60edf8 - pack: core - parameters: - minute: 0 - second : 0 - type: core.st2.CronTimer diff --git a/st2tests/st2tests/fixtures/generic/triggers/trigger1.yaml b/st2tests/st2tests/fixtures/generic/triggers/trigger1.yaml deleted file mode 100644 index 26b13ac38e..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggers/trigger1.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: triggertype-1 -pack: wolfpack -parameters: {} -type: wolfpack.triggertype-1 diff --git a/st2tests/st2tests/fixtures/generic/triggers/trigger2.yaml b/st2tests/st2tests/fixtures/generic/triggers/trigger2.yaml deleted file mode 100644 index 10476e2744..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggers/trigger2.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name: 46f67652-20cd-4bab-94e2-4615baa846d0 -pack: dummy_pack_1 -parameters: - url: person -type: dummy_pack_1.st2.webhook diff --git a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype1.yaml b/st2tests/st2tests/fixtures/generic/triggertypes/triggertype1.yaml deleted file mode 100644 index e926722914..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype1.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name: triggertype-1 -description: awesome trigger-1 -pack: wolfpack -parameters_schema: {} -payload_schema: {} diff --git a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype2.yaml b/st2tests/st2tests/fixtures/generic/triggertypes/triggertype2.yaml deleted file mode 100644 index ae538b1f64..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype2.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: st2.webhook -pack: dummy_pack_1 -parameters_schema: - additionalProperties: false - properties: - url: - type: string - required: true - type: object -payload_schema: - type: object diff --git a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype_with_parameter.yaml b/st2tests/st2tests/fixtures/generic/triggertypes/triggertype_with_parameter.yaml deleted file mode 100644 index 40bce9cbb2..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype_with_parameter.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: triggertype_with_params -pack: wolfpack -parameters_schema: - additionalProperties: false - properties: - x: - type: string - required: true - type: object -payload_schema: - type: object diff --git a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype_with_parameters_2.yaml b/st2tests/st2tests/fixtures/generic/triggertypes/triggertype_with_parameters_2.yaml deleted file mode 100644 index 1331052b71..0000000000 --- a/st2tests/st2tests/fixtures/generic/triggertypes/triggertype_with_parameters_2.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: triggertype_with_parameters_2 -pack: wolfpack -parameters_schema: - type: object - additionalProperties: false - properties: - param1: - type: string - required: true -payload_schema: - type: object diff --git a/st2tests/st2tests/fixtures/generic/users/service_user.yaml b/st2tests/st2tests/fixtures/generic/users/service_user.yaml deleted file mode 100644 index d6c5189807..0000000000 --- a/st2tests/st2tests/fixtures/generic/users/service_user.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: serviceuser -is_service: true -nicknames: - slack: 'mrservice' diff --git a/st2tests/st2tests/fixtures/generic/users/system_user.yaml b/st2tests/st2tests/fixtures/generic/users/system_user.yaml deleted file mode 100644 index 55f34cdf07..0000000000 --- a/st2tests/st2tests/fixtures/generic/users/system_user.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -name: system diff --git a/st2tests/st2tests/fixtures/generic/users/token_user.yaml b/st2tests/st2tests/fixtures/generic/users/token_user.yaml deleted file mode 100644 index da5dd2c4c1..0000000000 --- a/st2tests/st2tests/fixtures/generic/users/token_user.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -name: tokenuser diff --git a/st2tests/st2tests/fixtures/generic/workflows/wb_invalid_syntax.yaml b/st2tests/st2tests/fixtures/generic/workflows/wb_invalid_syntax.yaml deleted file mode 100644 index 5eb73b31a4..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wb_invalid_syntax.yaml +++ /dev/null @@ -1,72 +0,0 @@ -version: "2.0" -name: "examples.mistral-complex" - -workflows: - - main: - type: direct - input: - - vm_name - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - create_vm: - workflow: create_vm - input: - name: <% $.vm_name %> - publish: - vm_id: <% $.vm_id %> - on-success: - - reconfig_vm - reconfig_vm: - workflow: reconfig_vm - input: - vm_id: <% $.vm_id %> - cpu_cores: <% $.cpu_cores %> - memory_mb: <% $.memory_mb %> - on-success: - - power_on_vm - power_on_vm: - action: core.local - input: - cmd: "sleep 2; printf 'running'" - publish: - vm_state: <% task(power_on_vm).result.stdout %> - - create_vm: - type: direct - input: - - name - output: - vm_id: <% $.vm_id %> - task-defaults: - on-error: - - fail - tasks: - create: - action: core.local - input: - cmd: "sleep 3; printf 'vm1234'" - publish: - vm_id: <% task(create).result.stdout %> - - reconfig_vm: - type: direct - input: - - vm_id - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - tasks: - add_disk: - action: core.local - input: - cmd: "sleep 1; printf '<% $.vm_id %>'" - edit_cpu_mem: - action: core.local - input: - cmd: "sleep 1; printf '{\"vm_id\": \"<% $.vm_id %>\", \"cpu\": <% $.cpu_cores %>, \"memory\": <% $.memory_mb %>}'" diff --git a/st2tests/st2tests/fixtures/generic/workflows/wb_invalid_yaql.yaml b/st2tests/st2tests/fixtures/generic/workflows/wb_invalid_yaql.yaml deleted file mode 100644 index cec58f73b6..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wb_invalid_yaql.yaml +++ /dev/null @@ -1,73 +0,0 @@ -version: "2.0" -name: "examples.mistral-complex" - -workflows: - - main: - type: direct - input: - - vm_name - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - tasks: - create_vm: - workflow: create_vm - input: - name: <% $.vm_name.keys( %> - publish: - vm_id: <% $.vm_id %> - on-success: - - reconfig_vm - reconfig_vm: - workflow: reconfig_vm - input: - vm_id: <% $.vm_id %> - cpu_cores: <% $.cpu_cores %> - memory_mb: <% $.memory_mb %> - on-success: - - power_on_vm - power_on_vm: - action: core.local - input: - cmd: "sleep 2; printf 'running'" - publish: - vm_state: <% task(power_on_vm).result.stdout %> - - create_vm: - type: direct - input: - - name - output: - vm_id: <% $.vm_id %> - task-defaults: - on-error: - - fail - tasks: - create: - action: core.local - input: - cmd: "sleep 3; printf 'vm1234'" - publish: - vm_id: <% task(create).result.stdout %> - - reconfig_vm: - type: direct - input: - - vm_id - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - tasks: - add_disk: - action: core.local - input: - cmd: "sleep 1; printf '<% $.vm_id %>'" - edit_cpu_mem: - action: core.local - input: - cmd: "sleep 1; printf '{\"vm_id\": \"<% $.vm_id %>\", \"cpu\": <% $.cpu_cores %>, \"memory\": <% $.memory_mb %>}'" diff --git a/st2tests/st2tests/fixtures/generic/workflows/wb_post_xform.yaml b/st2tests/st2tests/fixtures/generic/workflows/wb_post_xform.yaml deleted file mode 100644 index fc7bd9b112..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wb_post_xform.yaml +++ /dev/null @@ -1,81 +0,0 @@ -version: "2.0" -name: "examples.mistral-complex" - -workflows: - - main: - type: direct - input: - - vm_name - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - tasks: - create_vm: - workflow: create_vm - input: - name: <% $.vm_name %> - publish: - vm_id: <% $.vm_id %> - on-success: - - reconfig_vm - reconfig_vm: - workflow: reconfig_vm - input: - vm_id: <% $.vm_id %> - cpu_cores: <% $.cpu_cores %> - memory_mb: <% $.memory_mb %> - on-success: - - power_on_vm - power_on_vm: - action: st2.action - input: - ref: core.local - parameters: - cmd: "sleep 2; printf 'running'" - publish: - vm_state: <% task(power_on_vm).result.stdout %> - - create_vm: - type: direct - input: - - name - output: - vm_id: <% $.vm_id %> - task-defaults: - on-error: - - fail - tasks: - create: - action: st2.action - input: - ref: core.local - parameters: - cmd: "sleep 3; printf 'vm1234'" - publish: - vm_id: <% task(create).result.stdout %> - - reconfig_vm: - type: direct - input: - - vm_id - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - tasks: - add_disk: - action: st2.action - input: - ref: core.local - parameters: - cmd: "sleep 1; printf '<% $.vm_id %>'" - edit_cpu_mem: - action: st2.action - input: - ref: core.local - parameters: - cmd: "sleep 1; printf '{\"vm_id\": \"<% $.vm_id %>\", \"cpu\": <% $.cpu_cores %>, \"memory\": <% $.memory_mb %>}'" diff --git a/st2tests/st2tests/fixtures/generic/workflows/wb_pre_xform.yaml b/st2tests/st2tests/fixtures/generic/workflows/wb_pre_xform.yaml deleted file mode 100644 index 8c174676b3..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wb_pre_xform.yaml +++ /dev/null @@ -1,73 +0,0 @@ -version: "2.0" -name: "examples.mistral-complex" - -workflows: - - main: - type: direct - input: - - vm_name - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - tasks: - create_vm: - workflow: create_vm - input: - name: <% $.vm_name %> - publish: - vm_id: <% $.vm_id %> - on-success: - - reconfig_vm - reconfig_vm: - workflow: reconfig_vm - input: - vm_id: <% $.vm_id %> - cpu_cores: <% $.cpu_cores %> - memory_mb: <% $.memory_mb %> - on-success: - - power_on_vm - power_on_vm: - action: core.local - input: - cmd: "sleep 2; printf 'running'" - publish: - vm_state: <% task(power_on_vm).result.stdout %> - - create_vm: - type: direct - input: - - name - output: - vm_id: <% $.vm_id %> - task-defaults: - on-error: - - fail - tasks: - create: - action: core.local - input: - cmd: "sleep 3; printf 'vm1234'" - publish: - vm_id: <% task(create).result.stdout %> - - reconfig_vm: - type: direct - input: - - vm_id - - cpu_cores - - memory_mb - task-defaults: - on-error: - - fail - tasks: - add_disk: - action: core.local - input: - cmd: "sleep 1; printf '<% $.vm_id %>'" - edit_cpu_mem: - action: core.local - input: - cmd: "sleep 1; printf '{\"vm_id\": \"<% $.vm_id %>\", \"cpu\": <% $.cpu_cores %>, \"memory\": <% $.memory_mb %>}'" diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_has_jinja_st2kv_post_xform.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_has_jinja_st2kv_post_xform.yaml deleted file mode 100644 index a2af2a31b3..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_has_jinja_st2kv_post_xform.yaml +++ /dev/null @@ -1,49 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task_with_no_input: - action: st2.action - input: - ref: wolfpack.a1 - task_with_inputs: - action: st2.action - input: - ref: wolfpack.a2 - parameters: - strtype: '{% raw %}{{ st2kv.system.var1 }}{% endraw %}' - inttype: '{{ foobarst2kv.system.var2 }}' - arrtype: - - foobar - - <% $.var1 %> - - '{{ _.var2 }}' - - '{% raw %}{{ st2kv.system.var3 }}{% endraw %}' - - '{% raw %}{{st2kv.system.var3}}{% endraw %}' - - '{% raw %}{{ abc and st2kv.system.var3 }}{% endraw %}' - - '{{ foobarst2kv.system.var4 }}' - - '{{foobarst2kv.system.var4}}' - - '{{ st2kv(var1) }}' - objtype: - var11: fubar - var12: <% $.var1 + $.var2 %> - var13: '{{ _.var1 + _.var2 }}' - var14: '{% raw %}{{ st2kv.system.var5 }}{% endraw %}' - var15: '{% raw %}{{st2kv.system.var5}}{% endraw %}' - var16: '{% raw %}{{ abc and st2kv.system.var5 }}{% endraw %}' - var17: '{{ foobarst2kv.system.var6 }}' - var18: '{{foobarst2kv.system.var6}}' - var19: '{{ st2kv(var1) }}' - publish: - var21: <% $.var21 %> - var22: <% $.var22 %> - task_with_inline_inputs: - action: st2.action - input: - ref: wolfpack.a2 - parameters: - strtype: some <% $.var1 %> string - inttype: <% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_has_jinja_st2kv_pre_xform.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_has_jinja_st2kv_pre_xform.yaml deleted file mode 100644 index 4bd17a720f..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_has_jinja_st2kv_pre_xform.yaml +++ /dev/null @@ -1,40 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task_with_no_input: - action: wolfpack.a1 - task_with_inputs: - action: wolfpack.a2 - input: - strtype: '{{ st2kv.system.var1 }}' - inttype: '{{ foobarst2kv.system.var2 }}' - arrtype: - - foobar - - <% $.var1 %> - - '{{ _.var2 }}' - - '{{ st2kv.system.var3 }}' - - '{{st2kv.system.var3}}' - - '{{ abc and st2kv.system.var3 }}' - - '{{ foobarst2kv.system.var4 }}' - - '{{foobarst2kv.system.var4}}' - - '{{ st2kv(var1) }}' - objtype: - var11: fubar - var12: <% $.var1 + $.var2 %> - var13: '{{ _.var1 + _.var2 }}' - var14: '{{ st2kv.system.var5 }}' - var15: '{{st2kv.system.var5}}' - var16: '{{ abc and st2kv.system.var5 }}' - var17: '{{ foobarst2kv.system.var6 }}' - var18: '{{foobarst2kv.system.var6}}' - var19: '{{ st2kv(var1) }}' - publish: - var21: <% $.var21 %> - var22: <% $.var22 %> - task_with_inline_inputs: - action: wolfpack.a2 strtype="some <% $.var1 %> string" inttype=<% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_has_unexpected_param.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_has_unexpected_param.yaml deleted file mode 100644 index b37cfb396d..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_has_unexpected_param.yaml +++ /dev/null @@ -1,13 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task1: - action: wolfpack.action-1 - input: - actionstr: <% $.var1 %> - foo: <% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_invalid_syntax.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_invalid_syntax.yaml deleted file mode 100644 index 3f04e8e33b..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_invalid_syntax.yaml +++ /dev/null @@ -1,19 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - task_with_no_input: - action: wolfpack.a1 - task_with_inputs: - action: wolfpack.a2 - input: - strtype: <% $.var1 %> - inttype: <% $.var2 %> - publish: - var3: <% $.var3 %> - var4: <% $.var4 %> - task_with_inline_inputs: - action: wolfpack.a2 strtype="some <% $.var1 %> string" inttype=<% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_invalid_yaql.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_invalid_yaql.yaml deleted file mode 100644 index 02dc5b7055..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_invalid_yaql.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task_with_no_input: - action: wolfpack.a1 - task_with_inputs: - action: wolfpack.a2 - input: - strtype: <% $.var1.keys( %> - inttype: <% $.var2 %> - publish: - var3: <% $.var3 %> - var4: <% $.var4 %> - task_with_inline_inputs: - action: wolfpack.a2 strtype="some <% $.var1 %> string" inttype=<% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_jinja_mixed_context_ref1.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_jinja_mixed_context_ref1.yaml deleted file mode 100644 index eab9e8c0a7..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_jinja_mixed_context_ref1.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task_with_no_input: - action: wolfpack.a1 - task_with_inputs: - action: wolfpack.a2 - input: - strtype: '{{ st2kv.system.var1a }} and {{ _.var1b }}' - inttype: '{{ st2kv.user.var2 }}' - publish: - var3: <% $.var3 %> - var4: <% $.var4 %> - task_with_inline_inputs: - action: wolfpack.a2 strtype="some <% $.var1 %> string" inttype=<% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_jinja_mixed_context_ref2.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_jinja_mixed_context_ref2.yaml deleted file mode 100644 index 79d0a98b77..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_jinja_mixed_context_ref2.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task_with_no_input: - action: wolfpack.a1 - task_with_inputs: - action: wolfpack.a2 - input: - strtype: '{{ st2kv.system.var1 }}' - inttype: '{{ st2kv.user.var2a + _.var2b }}' - publish: - var3: <% $.var3 %> - var4: <% $.var4 %> - task_with_inline_inputs: - action: wolfpack.a2 strtype="some <% $.var1 %> string" inttype=<% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_missing_required_param.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_missing_required_param.yaml deleted file mode 100644 index 4d67d5d0d2..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_missing_required_param.yaml +++ /dev/null @@ -1,12 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task1: - action: wolfpack.action-1 - input: - inttype: <% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_post_xform.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_post_xform.yaml deleted file mode 100644 index 1c4953b1ba..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_post_xform.yaml +++ /dev/null @@ -1,29 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task_with_no_input: - action: st2.action - input: - ref: wolfpack.a1 - task_with_inputs: - action: st2.action - input: - ref: wolfpack.a2 - parameters: - strtype: <% $.var1 %> - inttype: <% $.var2 %> - publish: - var3: <% $.var3 %> - var4: <% $.var4 %> - task_with_inline_inputs: - action: st2.action - input: - ref: wolfpack.a2 - parameters: - strtype: some <% $.var1 %> string - inttype: <% $.var2 %> diff --git a/st2tests/st2tests/fixtures/generic/workflows/wf_pre_xform.yaml b/st2tests/st2tests/fixtures/generic/workflows/wf_pre_xform.yaml deleted file mode 100644 index 12c5554dac..0000000000 --- a/st2tests/st2tests/fixtures/generic/workflows/wf_pre_xform.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: '2.0' - -demo: - type: direct - input: - - var1 - - var2 - tasks: - task_with_no_input: - action: wolfpack.a1 - task_with_inputs: - action: wolfpack.a2 - input: - strtype: <% $.var1 %> - inttype: <% $.var2 %> - publish: - var3: <% $.var3 %> - var4: <% $.var4 %> - task_with_inline_inputs: - action: wolfpack.a2 strtype="some <% $.var1 %> string" inttype=<% $.var2 %> diff --git a/st2tests/st2tests/fixtures/history_views/__init__.py b/st2tests/st2tests/fixtures/history_views/__init__.py deleted file mode 100644 index 4356bedf18..0000000000 --- a/st2tests/st2tests/fixtures/history_views/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -import os -import yaml -import glob -import six - - -PATH = os.path.join(os.path.dirname(os.path.realpath(__file__))) -FILES = glob.glob('%s/*.yaml' % PATH) -ARTIFACTS = {} - - -for f in FILES: - f_name = os.path.split(f)[1] - name = six.text_type(os.path.splitext(f_name)[0]) - with open(f, 'r') as fd: - ARTIFACTS[name] = yaml.safe_load(fd) diff --git a/st2tests/st2tests/fixtures/history_views/filters.yaml b/st2tests/st2tests/fixtures/history_views/filters.yaml deleted file mode 100644 index 37d8e521de..0000000000 --- a/st2tests/st2tests/fixtures/history_views/filters.yaml +++ /dev/null @@ -1,29 +0,0 @@ ---- -default: - action: - - executions.local - - executions.chain - # null is not a valid value for action - - null - rule: - - st2.person.joe - # null is a valid value for rule - - null - runner: - - run-local - - action-chain - status: - - succeeded - trigger: - - 46f67652-20cd-4bab-94e2-4615baa846d0 - trigger_type: - - st2.webhook - - null - user: - - system -specific: - action: - - executions.local - - executions.chain - user: - - system diff --git a/st2tests/st2tests/fixtures/keyczar_keys/five.json b/st2tests/st2tests/fixtures/keyczar_keys/five.json deleted file mode 100644 index 78312ed22c..0000000000 --- a/st2tests/st2tests/fixtures/keyczar_keys/five.json +++ /dev/null @@ -1 +0,0 @@ -{"hmacKey": {"hmacKeyString": "GCX2uMfOzp1JXYgqH8piEE4_mJOPXydH_fRHPDw9bkM", "size": 256}, "aesKeyString": "EeBcUcbH14tL0w_fF5siEw", "mode": "CBC", "size": 128} \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/keyczar_keys/four.json b/st2tests/st2tests/fixtures/keyczar_keys/four.json deleted file mode 100644 index d07f20c429..0000000000 --- a/st2tests/st2tests/fixtures/keyczar_keys/four.json +++ /dev/null @@ -1 +0,0 @@ -{"hmacKey": {"hmacKeyString": "EuQw_LBAiRd8hmr7Vorb-ZVVDMY_XJcRQEo2PzCrLJI", "size": 256}, "size": 256, "aesKeyString": "pzHrshLtPPBvgn7E2aJOnN_Br1YY5tsagMeUy3PhoOU", "mode": "CBC"} \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/keyczar_keys/one.json b/st2tests/st2tests/fixtures/keyczar_keys/one.json deleted file mode 100644 index eca91e5bfc..0000000000 --- a/st2tests/st2tests/fixtures/keyczar_keys/one.json +++ /dev/null @@ -1 +0,0 @@ -{"hmacKey": {"hmacKeyString": "lgI9YdOKlIOtPQFdgB0B6zr0AZ6L2QJuFQg4gTu2dxc", "size": 256}, "size": 256, "aesKeyString": "vKmBE2YeQ9ATyovel7NDjdnbvOMcoU5uPtUVxWxWm58", "mode": "CBC"} \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/keyczar_keys/three.json b/st2tests/st2tests/fixtures/keyczar_keys/three.json deleted file mode 100644 index 7ec72e797d..0000000000 --- a/st2tests/st2tests/fixtures/keyczar_keys/three.json +++ /dev/null @@ -1 +0,0 @@ -{"hmacKey": {"hmacKeyString": "7139G4CocJhKGH7_M1iyvvuZtJirmgg4hmDaSODf-EA", "size": 256}, "size": 256, "aesKeyString": "oNAIFtoFq9OL-YIHgRqyuu3zVr9PeZsFq5kaW7-LVv0", "mode": "CBC"} \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/keyczar_keys/two.json b/st2tests/st2tests/fixtures/keyczar_keys/two.json deleted file mode 100644 index 336d029a49..0000000000 --- a/st2tests/st2tests/fixtures/keyczar_keys/two.json +++ /dev/null @@ -1 +0,0 @@ -{"hmacKey": {"hmacKeyString": "92ok9S5extxphADmUhObPSD5wugey8eTffoJ2CEg_2s", "size": 256}, "size": 256, "aesKeyString": "fU9hT9pm-b9hu3VyQACLXe2Z7xnaJMZrXiTltyLUzgs", "mode": "CBC"} \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/localrunner_pack/actions/__init__.py b/st2tests/st2tests/fixtures/localrunner_pack/actions/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/localrunner_pack/actions/text_gen.py b/st2tests/st2tests/fixtures/localrunner_pack/actions/text_gen.py deleted file mode 100755 index a9fc1e2d5a..0000000000 --- a/st2tests/st2tests/fixtures/localrunner_pack/actions/text_gen.py +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env python - -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import - -import argparse -import string - -try: - from string import letters as ascii_letters -except ImportError: - from string import ascii_letters - -import random - - -def print_random_chars(chars=1000, selection=ascii_letters + string.digits): - s = [] - for _ in range(chars - 1): - s.append(random.choice(selection)) - s.append('@') - print(''.join(s)) - - -def main(): - parser = argparse.ArgumentParser() - parser.add_argument('--chars', type=int, metavar='N', default=10) - args = parser.parse_args() - print_random_chars(args.chars) - - -if __name__ == '__main__': - main() diff --git a/st2tests/st2tests/fixtures/localrunner_pack/actions/text_gen.yml b/st2tests/st2tests/fixtures/localrunner_pack/actions/text_gen.yml deleted file mode 100644 index fcb9210543..0000000000 --- a/st2tests/st2tests/fixtures/localrunner_pack/actions/text_gen.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -"name": "text_gen" -"pack": "localrunner_pack" -"runner_type": "local-shell-script" -"description": "Action that executes an arbitrary Linux command on the localhost." -"enabled": true -"entry_point": "text_gen.py" -"parameters": - "sudo": - "immutable": true - "chars": - "type": "integer" - "default": 1000 diff --git a/st2tests/st2tests/fixtures/packs/__init__.py b/st2tests/st2tests/fixtures/packs/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_cancel.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_cancel.yaml deleted file mode 100644 index d6cd8bc423..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_cancel.yaml +++ /dev/null @@ -1,13 +0,0 @@ -chain: - - - name: task1 - ref: core.local - params: - cmd: "while [ -e '{{tempfile}}' ]; do sleep 0.1; done" - timeout: 180 - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: echo "{{message}}" diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_cancel_with_subworkflow.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_cancel_with_subworkflow.yaml deleted file mode 100644 index ea6236bdaa..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_cancel_with_subworkflow.yaml +++ /dev/null @@ -1,13 +0,0 @@ -chain: - - - name: task1 - ref: action_chain_tests.test_cancel - params: - tempfile: "{{tempfile}}" - message: "{{message}}" - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: echo foobar diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume.yaml deleted file mode 100644 index 37a04b3a2f..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume.yaml +++ /dev/null @@ -1,13 +0,0 @@ -chain: - - - name: task1 - ref: core.local - params: - cmd: "while [ -e {{tempfile}} ]; do sleep 0.1; done" - timeout: 180 - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: echo "{{message}}" diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_context_result.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_context_result.yaml deleted file mode 100644 index a2bf2f4cda..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_context_result.yaml +++ /dev/null @@ -1,10 +0,0 @@ -chain: - - - name: task1 - ref: core.ask - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: echo "{{task1.result.foo}}" diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_last_task_failed_with_no_next_task.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_last_task_failed_with_no_next_task.yaml deleted file mode 100644 index 4d3bc8e8af..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_last_task_failed_with_no_next_task.yaml +++ /dev/null @@ -1,7 +0,0 @@ -chain: - - - name: task1 - ref: core.local - params: - cmd: "while [ -e '{{tempfile}}' ]; do sleep 0.1; done; exit 1" - timeout: 180 diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_context_access.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_context_access.yaml deleted file mode 100644 index 3fea8b1c23..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_context_access.yaml +++ /dev/null @@ -1,19 +0,0 @@ -chain: - - - name: task1 - ref: core.local - params: - cmd: echo "{{message}}" - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: "while [ -e '{{tempfile}}' ]; do sleep 0.1; done" - timeout: 180 - on-success: task3 - - - name: task3 - ref: core.local - params: - cmd: echo "{{task1.stdout}}" diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_error.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_error.yaml deleted file mode 100644 index a4d46be55e..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_error.yaml +++ /dev/null @@ -1,13 +0,0 @@ -chain: - - - name: task1 - ref: core.local - params: - cmd: "while [ -e '{{tempfile}}' ]; do sleep 0.1; exit 1" - timeout: 180 - on-failure: task2 - - - name: task2 - ref: core.local - params: - cmd: echo "{{message}}" diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_init_vars.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_init_vars.yaml deleted file mode 100644 index dda36fb302..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_init_vars.yaml +++ /dev/null @@ -1,17 +0,0 @@ -vars: - var1: "{{message}}" -chain: - - - name: task1 - ref: core.local - params: - cmd: "while [ -e '{{tempfile}}' ]; do sleep 0.1; done" - timeout: 180 - publish: - var1: "{{var1|upper}}" - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: echo "{{var1}}" diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_no_more_task.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_no_more_task.yaml deleted file mode 100644 index ded42c2bc9..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_no_more_task.yaml +++ /dev/null @@ -1,7 +0,0 @@ -chain: - - - name: task1 - ref: core.local - params: - cmd: "while [ -e '{{tempfile}}' ]; do sleep 0.1; done" - timeout: 180 diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_published_vars.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_published_vars.yaml deleted file mode 100644 index 3430229f2d..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_published_vars.yaml +++ /dev/null @@ -1,17 +0,0 @@ -chain: - - - name: task1 - ref: core.local - params: - cmd: "while [ -e '{{tempfile}}' ]; do sleep 0.1; done" - timeout: 180 - publish: - var1: foobar - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: echo "{{message}}" - publish: - var2: fubar diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_subworkflow.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_subworkflow.yaml deleted file mode 100644 index 7de1a93faf..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/chains/test_pause_resume_with_subworkflow.yaml +++ /dev/null @@ -1,13 +0,0 @@ -chain: - - - name: task1 - ref: action_chain_tests.test_pause_resume - params: - tempfile: "{{tempfile}}" - message: "{{message}}" - on-success: task2 - - - name: task2 - ref: core.local - params: - cmd: echo foobar diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_cancel.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_cancel.yaml deleted file mode 100644 index 619e8a4b0c..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_cancel.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_cancel -pack: action_chain_tests -description: Simple action chain to test cancellation. -runner_type: action-chain -entry_point: chains/test_cancel.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_cancel_with_subworkflow.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_cancel_with_subworkflow.yaml deleted file mode 100644 index c7399df5ac..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_cancel_with_subworkflow.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_cancel_with_subworkflow -pack: action_chain_tests -description: Simple action chain with subworkflow to test cancellation. -runner_type: action-chain -entry_point: chains/test_cancel_with_subworkflow.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume.yaml deleted file mode 100644 index 26b14071d9..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume -pack: action_chain_tests -description: Simple action chain to test pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_context_result.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_context_result.yaml deleted file mode 100644 index 8081cc7dc5..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_context_result.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: test_pause_resume_context_result -pack: action_chain_tests -description: Simple action chain to test context is preserved during pause and resume when something else changes a task status -runner_type: action-chain -entry_point: chains/test_pause_resume_context_result.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_last_task_failed_with_no_next_task.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_last_task_failed_with_no_next_task.yaml deleted file mode 100644 index 55e177e735..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_last_task_failed_with_no_next_task.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume_last_task_failed_with_no_next_task -pack: action_chain_tests -description: Simple action chain to test pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume_last_task_failed_with_no_next_task.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_context_access.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_context_access.yaml deleted file mode 100644 index 139b551993..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_context_access.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume_with_context_access -pack: action_chain_tests -description: Simple action chain to test context is preserved during pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume_with_context_access.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_error.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_error.yaml deleted file mode 100644 index 91d29f8fd0..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_error.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume_with_error -pack: action_chain_tests -description: Simple action chain to test error handling during pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume_with_error.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_init_vars.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_init_vars.yaml deleted file mode 100644 index 69b26b0027..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_init_vars.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume_with_init_vars -pack: action_chain_tests -description: Simple action chain to test init vars are preserved during pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume_with_init_vars.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_no_more_task.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_no_more_task.yaml deleted file mode 100644 index f78d320471..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_no_more_task.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume_with_no_more_task -pack: action_chain_tests -description: Simple action chain to test pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume_with_no_more_task.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_published_vars.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_published_vars.yaml deleted file mode 100644 index e27b41a32c..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_published_vars.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume_with_published_vars -pack: action_chain_tests -description: Simple action chain to test published vars are preserved during pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume_with_published_vars.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_subworkflow.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_subworkflow.yaml deleted file mode 100644 index 1af9d19399..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/actions/test_pause_resume_with_subworkflow.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: test_pause_resume_with_subworkflow -pack: action_chain_tests -description: Simple action chain with subworkflow to test pause and resume. -runner_type: action-chain -entry_point: chains/test_pause_resume_with_subworkflow.yaml -enabled: true -parameters: - tempfile: - type: string - required: true - message: - type: string - required: true diff --git a/st2tests/st2tests/fixtures/packs/action_chain_tests/pack.yaml b/st2tests/st2tests/fixtures/packs/action_chain_tests/pack.yaml deleted file mode 100644 index 4e6fe937db..0000000000 --- a/st2tests/st2tests/fixtures/packs/action_chain_tests/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : action_chain_tests -description : Content pack for action chain tests -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_1.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_1.yaml deleted file mode 100644 index a691efeb45..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_1.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- - api_key: "{{st2kv.user.api_key}}" - api_secret: "SUPER_SECRET_PARAMETER_THAT_SHOULD_NEVER_APPEAR_IN_RESPONSES_OR_LOGS" - region: "us-west-1" diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_11.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_11.yaml deleted file mode 100644 index cd478da2de..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_11.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- - api_key: "{{st2kv.user.api_key | decrypt_kv}}" diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_19.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_19.yaml deleted file mode 100644 index 1d803c139c..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_19.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - instances: - - - uid: "test-uid-1" - alias: {'not': 'string'} - base_url: 'foo' - token: 'bar' diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_22.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_22.yaml deleted file mode 100644 index bd7d065f8a..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_22.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- - key_with_no_secret_and_no_default: "Any Value" - diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_5.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_5.yaml deleted file mode 100644 index d997f34001..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_5.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - api_key: "some_api_key" - api_secret: "{{st2kv.user.api_secret}}" # user scoped datastore value - regions: - - "us-west-1" - private_key_path: "{{st2kv.system.private_key_path}}" # global pack datastore value - non_required_with_default_value: "config value" diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_6.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_6.yaml deleted file mode 100644 index 7ed4fdd785..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_6.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- - api_key: "some_api_key" - api_secret: "{{st2kv.user.api_secret}}" # user scoped datastore value - regions: 1000 - private_key_path: "{{st2kv.system.private_key_path}}" # global pack datastore value diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_7.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_7.yaml deleted file mode 100644 index 6b01d06715..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_7.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -config_item_one: "testing" diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_1.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_1.yaml deleted file mode 100644 index 81336f1e18..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_1.yaml +++ /dev/null @@ -1,5 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_2.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_2.yaml deleted file mode 100644 index aac4a16197..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_2.yaml +++ /dev/null @@ -1,8 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" -auth_settings: - host: "127.0.0.6" - port: 9090 diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_3.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_3.yaml deleted file mode 100644 index affead222a..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_3.yaml +++ /dev/null @@ -1,8 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" -auth_settings: - host: "127.0.0.10" - token: "{{st2kv.system.auth_settings_token}}" diff --git a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_4.yaml b/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_4.yaml deleted file mode 100644 index a537cfc350..0000000000 --- a/st2tests/st2tests/fixtures/packs/configs/dummy_pack_schema_with_nested_object_4.yaml +++ /dev/null @@ -1,8 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" -auth_settings: - host: "127.0.0.11" - token: "{{st2kv.user.auth_settings_token}}" diff --git a/st2tests/st2tests/fixtures/packs/core b/st2tests/st2tests/fixtures/packs/core deleted file mode 120000 index fc82324184..0000000000 --- a/st2tests/st2tests/fixtures/packs/core +++ /dev/null @@ -1 +0,0 @@ -../../../../contrib/core \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/__init__.py b/st2tests/st2tests/fixtures/packs/dummy_pack_1/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/__init__.py b/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/my_action.py b/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/my_action.py deleted file mode 100644 index 2af7b59725..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/my_action.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -from st2common.runners.base_action import Action - - -class MyAction(Action): - def run(self): - pass diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/my_action.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/my_action.yaml deleted file mode 100644 index 1efcaf3523..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/actions/my_action.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -"name": "local" -"runner_type": "local-shell-script" -"description": "Action that executes an arbitrary Linux command on the localhost." -"enabled": true -"entry_point": "my_action.py" -"parameters": - "sudo": - "immutable": true diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias1.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias1.yaml deleted file mode 100644 index 00a1fa03c8..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias1.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "alias1" - pack: "dummy_pack_1" - description: "DON'T CARE" - action_ref: "core.local" - formats: - - "format1" - - "format2" \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias2.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias2.yaml deleted file mode 100644 index 0a0ef2881b..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias2.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "alias2" - pack: "dummy_pack_1" - description: "DON'T CARE" - action_ref: "core.local" - formats: - - "format1" - - "format2" \ No newline at end of file diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias_noaction_ref_reg.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias_noaction_ref_reg.yaml deleted file mode 100644 index 781628d3bd..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/aliases/alias_noaction_ref_reg.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "alias_ubuntu_harden" - pack: "dummy_pack_1" - description: "DON'T CARE" - action_ref: "ubuntu.hardening" - formats: - - "format1" - - "format2" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/config.schema.yaml deleted file mode 100644 index 54739ea4f7..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/config.schema.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- - api_key: - type: "string" - secret: true - required: true - api_secret: - type: "string" - secret: true - required: true - region: - type: "string" - required: true - default: "lon" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/generate_new_token.png b/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/generate_new_token.png deleted file mode 100755 index 63301dcfe8..0000000000 Binary files a/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/generate_new_token.png and /dev/null differ diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/permissions.png b/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/permissions.png deleted file mode 100755 index 2d7d422795..0000000000 Binary files a/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/permissions.png and /dev/null differ diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/travisci.png b/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/travisci.png deleted file mode 100755 index 1343d2b2b6..0000000000 Binary files a/st2tests/st2tests/fixtures/packs/dummy_pack_1/etc/travisci.png and /dev/null differ diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/icon.png b/st2tests/st2tests/fixtures/packs/dummy_pack_1/icon.png deleted file mode 100644 index f017906e07..0000000000 Binary files a/st2tests/st2tests/fixtures/packs/dummy_pack_1/icon.png and /dev/null differ diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/pack.yaml deleted file mode 100644 index 45a71b9bc6..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/pack.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -name : dummy_pack_1 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com -contributors: - - "John Doe1 " - - "John Doe2 " diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_1.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_1.yaml deleted file mode 100644 index 83b12d40be..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_1.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -# Valid policy -name: test_policy_1 -pack: dummy_pack_1 -description: Limits the concurrent executions for the fake action. -enabled: true -resource_ref: dummy_pack_1.local -policy_type: action.concurrency -parameters: - threshold: 3 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_2.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_2.yaml deleted file mode 100644 index 01c38edfb2..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_2.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Policy which referens an inexistent policy type -name: test_policy_2 -pack: dummy_pack_1 -description: Raises an exception. -enabled: true -resource_ref: dummy_pack_1.local -policy_type: action.mock_policy_error diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_3.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_3.yaml deleted file mode 100644 index e2351b0d41..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/policies/policy_3.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: test_policy_3 -pack: dummy_pack_1 -description: Test policy. -enabled: true -resource_ref: dummy_pack_1.local -policy_type: action.retry -parameters: - retry_on: timeout - max_retry_count: 5 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/rules/rule_with_webhook_trigger.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/rules/rule_with_webhook_trigger.yaml deleted file mode 100644 index 7b8bf36849..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/rules/rule_with_webhook_trigger.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- - name: "rule_with_webhook_trigger" - description: "Sample rule dumping webhook payload to a file." - enabled: true - - trigger: - type: "core.st2.webhook" - parameters: - url: "sample" - - criteria: - trigger.body.name: - pattern: "st2" - type: "equals" - - action: - ref: "core.local" - parameters: - cmd: "echo \"{{trigger.body}}\" >> /tmp/st2.webhook_sample.out" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor.py b/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor.py deleted file mode 100644 index 63a3f71af4..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor.yaml deleted file mode 100644 index 3bd9eda09a..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- - class_name: "SampleSensor" - entry_point: "my_sensor.py" - description: "Sample sensor that emits triggers." - trigger_types: - - - name: "event" - description: "An example trigger." - payload_schema: - type: "object" - properties: - executed_at: - type: "string" - format: "date-time" - default: "2014-07-30 05:04:24.578325" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor_2.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor_2.yaml deleted file mode 100644 index ba4e00be5c..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor_2.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- - class_name: "SampleSensor2" - entry_point: "my_sensor.py" - description: "Sample sensor that emits triggers." - trigger_types: - - - name: "event" - description: "An example trigger." - payload_schema: - type: "object" - properties: - executed_at: - type: "string" - format: "date-time" - default: "2014-07-30 05:04:24.578325" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor_3.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor_3.yaml deleted file mode 100644 index ae035f1bb0..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/sensors/my_sensor_3.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- - class_name: "SampleSensor3" - entry_point: "my_sensor.py" - enabled: false - description: "Sample sensor that emits triggers." - trigger_types: - - - name: "event3" - description: "An example trigger." - payload_schema: - type: "object" - properties: - executed_at: - type: "string" - format: "date-time" - default: "2014-07-30 05:04:24.578325" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/triggers/event_handler.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/triggers/event_handler.yaml deleted file mode 100644 index d825732f62..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/triggers/event_handler.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -name: event_handler -pack: dummy_pack_1 -description: 'Trigger type for check_mk events' diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_1/triggers/git_commit.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_1/triggers/git_commit.yaml deleted file mode 100644 index 6475793967..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_1/triggers/git_commit.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: "head_sha_monitor" -description: "Trigger which indicates that a new commit has been detected" -payload_schema: - type: "object" - properties: - author: - type: "string" - author_email: - type: "string" - authored_date: - type: "string" - author_tz_offset: - type: "string" - committer: - type: "string" - committer_email: - type: "string" - committed_date: - type: "string" - committer_tz_offset: - type: "string" - revision: - type: "string" - branch: - type: "string" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_10/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_10/pack.yaml deleted file mode 100644 index 57b0ccb5a6..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_10/pack.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -name : dummy_pack_10_wrong_deps -description : dummy pack with wrong dependencies -version : 0.1.0 -stackstorm_version : wrongstackstormversion -author : st2-dev -email : info@stackstorm.com -dependencies : - - core=0.2.0 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_11/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_11/config.schema.yaml deleted file mode 100644 index 7cbb5cd8be..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_11/config.schema.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- - api_key: - type: "string" - secret: true - required: true diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_11/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_11/pack.yaml deleted file mode 100644 index cbf3207ff0..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_11/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_11 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_12/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_12/pack.yaml deleted file mode 100644 index 20ada1ebe6..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_12/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_12 -description : dummy pack -version : 0.1.2.3.4 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_13/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_13/pack.yaml deleted file mode 100644 index 642bae1969..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_13/pack.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -ref: invalid-has-dash -name : dummy_pack_13 -description : dummy pack -version : 0.1.2 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_14/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_14/pack.yaml deleted file mode 100644 index 26dd052e21..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_14/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy pack 14 -description : dummy pack -version : 0.1.2 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_15/actions/my_action.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_15/actions/my_action.yaml deleted file mode 100644 index c1c63102eb..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_15/actions/my_action.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -"name": "local" -"runner_type": "local-shell-script" -"description": "Action that executes an arbitrary Linux command on the localhost." -"enabled": true -"entry_point": "my_action.py" -"parameters": - "param": - "type": "stringa" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_15/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_15/pack.yaml deleted file mode 100644 index bff9fe536c..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_15/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_15 -description : dummy pack -version : 0.1.2 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_16/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_16/pack.yaml deleted file mode 100644 index 263fc36b61..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_16/pack.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -ref: dummy_pack_16 -name : Dummy Pack 16 Wooo -description : dummy pack -version : 0.1.2 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_17/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_17/config.schema.yaml deleted file mode 100644 index 180bf85cfa..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_17/config.schema.yaml +++ /dev/null @@ -1,51 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - private_key_path: - type: "string" - required: false - region: - type: "string" - required: true - default: "default-region-value" - key_with_default_falsy_value_1: - type: "boolean" - required: True - default: False - key_with_default_falsy_value_2: - type: "boolean" - required: True - default: null - key_with_default_falsy_value_3: - type: "object" - required: True - default: {} - key_with_default_falsy_value_4: - type: "string" - required: True - default: "" - key_with_default_falsy_value_5: - type: "number" - required: True - default: 0 - key_with_default_falsy_value_6: - type: "object" - required: True - properties: - key_1: - type: "boolean" - required: true - default: False - key_2: - type: "integer" - required: true - default: 0 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_17/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_17/pack.yaml deleted file mode 100644 index d99c3eadc6..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_17/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : Dummy Pack 17 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_18/__init__.py b/st2tests/st2tests/fixtures/packs/dummy_pack_18/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_18/config.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_18/config.yaml deleted file mode 100644 index 5a72847a5a..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_18/config.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- - section1: - key1: "测试" - diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_18/icon.png b/st2tests/st2tests/fixtures/packs/dummy_pack_18/icon.png deleted file mode 100644 index f017906e07..0000000000 Binary files a/st2tests/st2tests/fixtures/packs/dummy_pack_18/icon.png and /dev/null differ diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_18/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_18/pack.yaml deleted file mode 100644 index a8ad2a1c85..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_18/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : Dummy Pack 18 -description : dummy pack -version : 0.1.0 -author : xuliang -email : sumkire@live.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_19/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_19/config.schema.yaml deleted file mode 100644 index 61671c45f7..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_19/config.schema.yaml +++ /dev/null @@ -1,27 +0,0 @@ ---- - instances: - type: "array" - required: false - items: - type: "object" - properties: - uid: - description: "a unique id for this instance" - type: "string" - required: false - secret: false - alias: - description: "an alias for this instance" - type: "string" - required: true - secret: false - base_url: - description: "Base Url" - type: "string" - secret: false - required: true - token: - description: "token" - type: "string" - secret: true - required: true diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_19/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_19/pack.yaml deleted file mode 100644 index 633663c733..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_19/pack.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -ref: dummy_pack_19_ref -name : dummy_pack_19 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/__init__.py b/st2tests/st2tests/fixtures/packs/dummy_pack_2/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/__init__.py b/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/my_action.py b/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/my_action.py deleted file mode 100644 index 2af7b59725..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/my_action.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -from st2common.runners.base_action import Action - - -class MyAction(Action): - def run(self): - pass diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/my_action.yml b/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/my_action.yml deleted file mode 100644 index 1efcaf3523..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_2/actions/my_action.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -"name": "local" -"runner_type": "local-shell-script" -"description": "Action that executes an arbitrary Linux command on the localhost." -"enabled": true -"entry_point": "my_action.py" -"parameters": - "sudo": - "immutable": true diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/config.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_2/config.yaml deleted file mode 100644 index 07adefeaa5..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_2/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - section1: - key1: "value1" - key2: "value2" - - section2: - key10: "value10" - key11: "value11" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/icon.png b/st2tests/st2tests/fixtures/packs/dummy_pack_2/icon.png deleted file mode 100644 index f017906e07..0000000000 Binary files a/st2tests/st2tests/fixtures/packs/dummy_pack_2/icon.png and /dev/null differ diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_2/pack.yaml deleted file mode 100644 index 154fd52819..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_2/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_2 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/policies/policy_3.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_2/policies/policy_3.yaml deleted file mode 100644 index 60600f7a12..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_2/policies/policy_3.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -# Policy where parameters fail schema validation -name: test_policy_3 -pack: dummy_pack_2 -description: Test policy. -enabled: true -resource_ref: dummy_pack_1.local -policy_type: action.retry -parameters: - retry_on: timeout - max_retry_count: 100 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/requirements.txt b/st2tests/st2tests/fixtures/packs/dummy_pack_2/requirements.txt deleted file mode 100644 index ffe2fce498..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_2/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -six diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_2/sensors/my_sensor.py b/st2tests/st2tests/fixtures/packs/dummy_pack_2/sensors/my_sensor.py deleted file mode 100644 index 63a3f71af4..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_2/sensors/my_sensor.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_20/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_20/pack.yaml deleted file mode 100644 index c99661eb7c..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_20/pack.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -ref: dummy_pack_20_ref -name : dummy_pack_20 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com -attribute1: value1 -attribute2: value2 -attribute3: value3 -attribute: 4 -some: - - "feature" - - value diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_21/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_21/pack.yaml deleted file mode 100644 index c3e90e8440..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_21/pack.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -ref: dummy_pack_21_ref -name : dummy_pack_21 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com -python_versions: - - "4" - - "5" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_22/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_22/config.schema.yaml deleted file mode 100644 index 19551a7e5b..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_22/config.schema.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - wrong_key_with_invalid_default_value: - type: "string" - secret: true - required: true - default: "{{st2kv.user.api_key | decrypt_kv}}" - key_with_no_secret_and_no_default: - type: "string" - diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_22/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_22/pack.yaml deleted file mode 100644 index 05d2011e33..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_22/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_22 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/__init__.py b/st2tests/st2tests/fixtures/packs/dummy_pack_3/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/__init__.py b/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/my_action.py b/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/my_action.py deleted file mode 100644 index 2af7b59725..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/my_action.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -from st2common.runners.base_action import Action - - -class MyAction(Action): - def run(self): - pass diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/my_action.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/my_action.yaml deleted file mode 100644 index 19b7700100..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_3/actions/my_action.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -description: Action that executes an arbitrary Linux command on the localhost. -enabled: true -entry_point: my_action.py -name: local -parameters: - sudo: - immutable: true -runner_type: "local-shell-cmd" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/config.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_3/config.yaml deleted file mode 100644 index 07adefeaa5..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_3/config.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - section1: - key1: "value1" - key2: "value2" - - section2: - key10: "value10" - key11: "value11" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/icon.png b/st2tests/st2tests/fixtures/packs/dummy_pack_3/icon.png deleted file mode 100644 index f017906e07..0000000000 Binary files a/st2tests/st2tests/fixtures/packs/dummy_pack_3/icon.png and /dev/null differ diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_3/pack.yaml deleted file mode 100644 index 9a7c5ed122..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_3/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_3 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_3/sensors/my_sensor.py b/st2tests/st2tests/fixtures/packs/dummy_pack_3/sensors/my_sensor.py deleted file mode 100644 index 63a3f71af4..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_3/sensors/my_sensor.py +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_4/actions/invalid.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_4/actions/invalid.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_4/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_4/config.schema.yaml deleted file mode 100644 index 7769f413a6..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_4/config.schema.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- - api_key: - type: "string" - secret: true - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - private_key_path: - type: "string" - required: false diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_4/config.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_4/config.yaml deleted file mode 100644 index 7985ce645e..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_4/config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" -private_key_path: null diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_4/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_4/pack.yaml deleted file mode 100644 index ddad08b20d..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_4/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_4 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_5/actions/invalid.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_5/actions/invalid.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_5/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_5/config.schema.yaml deleted file mode 100644 index 1fda20f4ca..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_5/config.schema.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - private_key_path: - type: "string" - required: false - region: - type: "string" - required: true - default: "default-region-value" - non_required_with_default_value: - type: "string" - required: false - default: "some default value" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_5/config.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_5/config.yaml deleted file mode 100644 index 7985ce645e..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_5/config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" -private_key_path: null diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_5/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_5/pack.yaml deleted file mode 100644 index 2f945e9e1e..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_5/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_5 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_6/actions/invalid.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_6/actions/invalid.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_6/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_6/config.schema.yaml deleted file mode 100644 index f35fed695d..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_6/config.schema.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - private_key_path: - type: "string" - required: false - region: - type: "string" - required: true - default: "default-region-value" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_6/config.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_6/config.yaml deleted file mode 100644 index 7985ce645e..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_6/config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" -private_key_path: null diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_6/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_6/pack.yaml deleted file mode 100644 index ddcc1da6ed..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_6/pack.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -ref: dummy_pack_6_ref -name : dummy_pack_6 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/render_config_context.py b/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/render_config_context.py deleted file mode 100644 index fd4c7be472..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/render_config_context.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from st2common.runners.base_action import Action - - -class PrintPythonVersionAction(Action): - - def run(self, value1): - return {"context_value": value1} diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/render_config_context.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/render_config_context.yaml deleted file mode 100644 index e67d323c65..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_7/actions/render_config_context.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: render_config_context -runner_type: python-script -description: Action that uses config context -enabled: true -entry_point: render_config_context.py -parameters: - value1: - description: Input for render_config_context. Defaults to config_context value. - required: false - type: "string" - default: "{{ config_context.config_item_one }}" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_7/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_7/config.schema.yaml deleted file mode 100644 index 731f42d98c..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_7/config.schema.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -config_item_one: - description: "Item use to test config context." - type: "string" - required: true diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_7/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_7/pack.yaml deleted file mode 100644 index 4a7b215a6a..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_7/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_7_name -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_8/actions/invalid.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_8/actions/invalid.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_8/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_8/config.schema.yaml deleted file mode 100644 index f35fed695d..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_8/config.schema.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - private_key_path: - type: "string" - required: false - region: - type: "string" - required: true - default: "default-region-value" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_8/config.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_8/config.yaml deleted file mode 100644 index 7985ce645e..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_8/config.yaml +++ /dev/null @@ -1,6 +0,0 @@ -api_key: "" -api_secret: "" -regions: - - "us-west-1" - - "us-east-1" -private_key_path: null diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_8/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_8/pack.yaml deleted file mode 100644 index f4f151cd59..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_8/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : Dummy Pack 8 Invalid Name -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/invalid_syntax.py b/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/invalid_syntax.py deleted file mode 100644 index 065f7c68f4..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/invalid_syntax.py +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -from invalid import Invalid # noqa - - -class Foo(): - pass diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/list_repos.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/list_repos.yaml deleted file mode 100644 index b336ee2467..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_9/actions/list_repos.yaml +++ /dev/null @@ -1,6 +0,0 @@ -name: list_repos -runner_type: python-script -description: List repositories. -enabled: true -entry_point: list_repos_doesnt_exist.py -parameters: {} diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_9/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_9/pack.yaml deleted file mode 100644 index 070b3d00ec..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_9/pack.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -name : dummy_pack_9_deps -description : dummy pack with pack and engine dependencies -version : 0.1.0 -stackstorm_version : ">=1.6.0, <2.2.0" -author : st2-dev -email : info@stackstorm.com -dependencies : - - core=0.2.0 -system : - centos : - foo: ">= 1.0" -this : - is : a - test : of -future : arguments -python_versions: - - "2" - - "3" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/config.schema.yaml deleted file mode 100644 index 2d7233d341..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/config.schema.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - auth_settings: - type: "object" - required: false - additionalProperties: false - properties: - host: - type: "string" - required: true - default: "127.0.0.3" - port: - type: "integer" - required: true - default: 8080 - device_uids: - type: "array" - description: "A list of device UIDs to poll metrics for." - items: - type: "string" - required: true - default: - - "a" - - "b" - - "c" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/pack.yaml deleted file mode 100644 index d823bf35c3..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_1/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_schema_with_nested_object_1 -description : dummy pack with nested object config -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/config.schema.yaml deleted file mode 100644 index 2d7233d341..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/config.schema.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - auth_settings: - type: "object" - required: false - additionalProperties: false - properties: - host: - type: "string" - required: true - default: "127.0.0.3" - port: - type: "integer" - required: true - default: 8080 - device_uids: - type: "array" - description: "A list of device UIDs to poll metrics for." - items: - type: "string" - required: true - default: - - "a" - - "b" - - "c" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/pack.yaml deleted file mode 100644 index 5b61ae8102..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_2/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_schema_with_nested_object_2 -description : dummy pack with nested object config -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/config.schema.yaml deleted file mode 100644 index 862441b566..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/config.schema.yaml +++ /dev/null @@ -1,38 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - auth_settings: - type: "object" - required: false - additionalProperties: false - properties: - host: - type: "string" - required: true - default: "127.0.0.3" - port: - type: "integer" - required: true - default: 8080 - device_uids: - type: "array" - description: "A list of device UIDs to poll metrics for." - items: - type: "string" - required: true - default: - - "a" - - "b" - - "c" - token: - type: "string" - required: true diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/pack.yaml deleted file mode 100644 index 401cf2281a..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_3/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_schema_with_nested_object_3 -description : dummy pack with nested object config -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/config.schema.yaml deleted file mode 100644 index f74b49a125..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/config.schema.yaml +++ /dev/null @@ -1,39 +0,0 @@ ---- - api_key: - type: "string" - required: true - api_secret: - type: "string" - secret: true - required: true - regions: - type: "array" - required: true - default: "us-east-1" - auth_settings: - type: "object" - required: false - additionalProperties: false - properties: - host: - type: "string" - required: true - default: "127.0.0.3" - port: - type: "integer" - required: true - default: 8080 - device_uids: - type: "array" - description: "A list of device UIDs to poll metrics for." - items: - type: "string" - required: true - default: - - "a" - - "b" - - "c" - token: - type: "string" - required: true - secret: true diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/pack.yaml deleted file mode 100644 index eb897a629d..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_4/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_schema_with_nested_object_4 -description : dummy pack with nested object config -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/config.schema.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/config.schema.yaml deleted file mode 100644 index 077ba8cb49..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/config.schema.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- - level0_key: - type: "string" - level0_object: - type: "object" - required: false - additionalProperties: false - properties: - level1_key: - type: "string" - level1_object: - type: "object" - required: false - additionalProperties: false - properties: - level2_key: - type: "string" diff --git a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/pack.yaml b/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/pack.yaml deleted file mode 100644 index c0a96db602..0000000000 --- a/st2tests/st2tests/fixtures/packs/dummy_pack_schema_with_nested_object_5/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_schema_with_nested_object_5 -description : dummy pack with nested object config -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/executions/__init__.py b/st2tests/st2tests/fixtures/packs/executions/__init__.py deleted file mode 100644 index 2945c4eb49..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/__init__.py +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -import os -import bson -import glob -import yaml -import six - - -PATH = os.path.dirname(os.path.realpath(__file__)) -FILES = glob.glob('%s/*.yaml' % PATH) -ARTIFACTS = {} - - -for f in FILES: - f_name = os.path.split(f)[1] - name = six.text_type(os.path.splitext(f_name)[0]) - with open(f, 'r') as fd: - ARTIFACTS[name] = yaml.safe_load(fd) - if isinstance(ARTIFACTS[name], dict): - ARTIFACTS[name][u'id'] = six.text_type(bson.ObjectId()) - elif isinstance(ARTIFACTS[name], list): - for item in ARTIFACTS[name]: - item[u'id'] = six.text_type(bson.ObjectId()) diff --git a/st2tests/st2tests/fixtures/packs/executions/actions.yaml b/st2tests/st2tests/fixtures/packs/executions/actions.yaml deleted file mode 100644 index b32665bab0..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/actions.yaml +++ /dev/null @@ -1,71 +0,0 @@ ---- -action-immutable-param-no-default: - enabled: true - name: action-immutable-param-no-default - pack: executions - parameters: - foo: - immutable: true - ref: executions.action-immutable-param-no-default - runner_type: local-shell-cmd -action-immutable-runner-param-no-default: - enabled: true - name: action-immutable-param-no-default - pack: executions - parameters: - sudo: - immutable: true - ref: executions.action-immutable-param-no-default - runner_type: local-shell-cmd -action-with-invalid-runner: - enabled: true - name: action-with-invalid-runner - pack: executions - parameters: - hosts: - immutable: false - ref: executions.action-with-invalid-runner - runner_type: invalid-runner -chain: - enabled: true - name: chain - pack: executions - ref: executions.chain - runner_type: action-chain -local: - enabled: true - name: local - pack: executions - ref: executions.local - runner_type: local-shell-cmd -remote-override-runner-immutable: - enabled: true - name: remote-override-runner-immutable - pack: executions - parameters: - dir: - immutable: false - ref: executions.remote-override-runner-immutable - runner_type: remote-shell-cmd -action-with-non-unique-positions: - enabled: true - name: position-test - pack: executions - ref: executions.position-test - parameters: - one: - position: 0 - two: - position: 0 - runner_type: local-shell-cmd -action-with-non-contiguous-positions: - enabled: true - name: position-test-cont - pack: executions - ref: executions.position-test-cont - parameters: - one: - position: 0 - two: - position: 3 - runner_type: local-shell-cmd diff --git a/st2tests/st2tests/fixtures/packs/executions/chain.yaml b/st2tests/st2tests/fixtures/packs/executions/chain.yaml deleted file mode 100644 index 9f42c099a7..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/chain.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -chain: -- name: a1 - on-success: a2 - params: - cmd: uname -a - ref: executions.local -- name: a2 - params: - cmd: pwd - ref: executions.local -default: a1 diff --git a/st2tests/st2tests/fixtures/packs/executions/context.yaml b/st2tests/st2tests/fixtures/packs/executions/context.yaml deleted file mode 100644 index 49b200af20..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/context.yaml +++ /dev/null @@ -1,2 +0,0 @@ ---- -user: system diff --git a/st2tests/st2tests/fixtures/packs/executions/liveactions.yaml b/st2tests/st2tests/fixtures/packs/executions/liveactions.yaml deleted file mode 100644 index 6f87578650..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/liveactions.yaml +++ /dev/null @@ -1,45 +0,0 @@ ---- -task1: - action: executions.local - callback: {} - end_timestamp: '2014-09-01T00:00:05.000000Z' - parameters: - cmd: 'echo "{u"foo": u"bar"}"' - hosts: localhost - parallel: false - sudo: false - result: - localhost: - failed: false - return_code: 0 - stderr: '' - stdout: '{u"foo": u"bar"}' - succeeded: true - start_timestamp: '2014-09-01T00:00:02.000000Z' - status: succeeded -task2: - action: executions.local - callback: {} - end_timestamp: '2014-09-01T00:00:05.000000Z' - parameters: - cmd: 'echo "{u"name": u"Joe"}"' - hosts: localhost - parallel: false - sudo: false - result: - localhost: - failed: false - return_code: 0 - stderr: '' - stdout: '{u"name": u"Joe"}' - succeeded: true - start_timestamp: '2014-09-01T00:00:03.000000Z' - status: succeeded -workflow: - action: executions.chain - callback: {} - end_timestamp: '2014-09-01T00:00:05.000000Z' - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: succeeded diff --git a/st2tests/st2tests/fixtures/packs/executions/rule.yaml b/st2tests/st2tests/fixtures/packs/executions/rule.yaml deleted file mode 100644 index f3339c47bc..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/rule.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- -action: - parameters: - cmd: echo "{{trigger}}" >> /tmp/st2.persons.out - ref: executions.local -criteria: - trigger.name: - pattern: Joe - type: equals -enabled: true -name: st2.person.joe -pack: executions -trigger: - parameters: - url: person - type: st2.webhook diff --git a/st2tests/st2tests/fixtures/packs/executions/runners.yaml b/st2tests/st2tests/fixtures/packs/executions/runners.yaml deleted file mode 100644 index f276dab7c7..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/runners.yaml +++ /dev/null @@ -1,23 +0,0 @@ ---- -action-chain: - description: A runner for launching linear action chains. - enabled: true - name: action-chain - runner_module: action_chain_runner - runner_parameters: {} -run-local: - description: A runner to execute local actions as a fixed user. - enabled: true - name: run-local - runner_package: local_runner - runner_module: local_shell_command_runner - runner_parameters: - cmd: - type: string - hosts: - default: localhost - immutable: true - type: string - sudo: - default: false - type: boolean diff --git a/st2tests/st2tests/fixtures/packs/executions/trigger.yaml b/st2tests/st2tests/fixtures/packs/executions/trigger.yaml deleted file mode 100644 index 10476e2744..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/trigger.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name: 46f67652-20cd-4bab-94e2-4615baa846d0 -pack: dummy_pack_1 -parameters: - url: person -type: dummy_pack_1.st2.webhook diff --git a/st2tests/st2tests/fixtures/packs/executions/trigger_instance.yaml b/st2tests/st2tests/fixtures/packs/executions/trigger_instance.yaml deleted file mode 100644 index 015d51d90e..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/trigger_instance.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -id: 556cd0a0b353414b9708a51a -occurrence_time: '2014-09-01T00:00:01.000000Z' -payload: - foo: bar - name: Joe -trigger: dummy_pack_1.46f67652-20cd-4bab-94e2-4615baa846d0 -status: processed diff --git a/st2tests/st2tests/fixtures/packs/executions/trigger_type.yaml b/st2tests/st2tests/fixtures/packs/executions/trigger_type.yaml deleted file mode 100644 index ae538b1f64..0000000000 --- a/st2tests/st2tests/fixtures/packs/executions/trigger_type.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: st2.webhook -pack: dummy_pack_1 -parameters_schema: - additionalProperties: false - properties: - url: - type: string - required: true - type: object -payload_schema: - type: object diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2.yaml deleted file mode 100644 index 223883c021..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workbook_v2.yaml -name: workbook_v2 -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string -runner_type: mistral-v2 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_call_workflow_action.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_call_workflow_action.yaml deleted file mode 100644 index cc28341eca..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_call_workflow_action.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: workbook_v2_call_workflow_action -pack: mistral_tests -description: Say hi to friend! -enabled: true -runner_type: mistral-v2 -entry_point: workflows/workbook_v2_call_workflow_action.yaml -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_many_workflows.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_many_workflows.yaml deleted file mode 100644 index 915987f198..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_many_workflows.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workbook_v2_many_workflows.yaml -name: workbook_v2_many_workflows -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string - workflow: - default: generic.workbook_v2_many_workflows.main - immutable: true -runner_type: mistral-v2 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_many_workflows_no_default.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_many_workflows_no_default.yaml deleted file mode 100644 index a1fc91bd90..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_many_workflows_no_default.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workbook_v2_many_workflows_no_default.yaml -name: workbook_v2_many_workflows_no_default -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string -runner_type: mistral-v2 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_name_mismatch.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_name_mismatch.yaml deleted file mode 100644 index b21856e6ca..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workbook_v2_name_mismatch.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workbook_v2.yaml -name: workbook_v2_name_mismatch -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string -runner_type: mistral-v2 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2.yaml deleted file mode 100644 index 245213848f..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workflow_v2.yaml -name: workflow_v2 -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string -runner_type: mistral-v2 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_call_workflow_action.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_call_workflow_action.yaml deleted file mode 100644 index bc4b749321..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_call_workflow_action.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: workflow_v2_call_workflow_action -pack: mistral_tests -description: Say hi to friend! -enabled: true -runner_type: mistral-v2 -entry_point: workflows/workflow_v2_call_workflow_action.yaml -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_many_workflows.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_many_workflows.yaml deleted file mode 100644 index 3eca03d3bd..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_many_workflows.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workflow_v2_many_workflows.yaml -name: workflow_v2_many_workflows -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string -runner_type: mistral-v2 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_name_mismatch.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_name_mismatch.yaml deleted file mode 100644 index a3df8899d1..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_name_mismatch.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workflow_v2.yaml -name: workflow_v2_name_mismatch -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string -runner_type: mistral-v2 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_reverse.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_reverse.yaml deleted file mode 100644 index 6fbf820ecf..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflow_v2_reverse.yaml +++ /dev/null @@ -1,19 +0,0 @@ ---- -description: Say hi to friend! -enabled: true -entry_point: workflows/workflow_v2_reverse.yaml -name: workflow_v2_reverse -pack: mistral_tests -parameters: - count: - default: '3' - type: string - friend: - required: true - type: string - task_name: - immutable: true - default: say-friend - type: string -runner_type: mistral-v2 - diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2.yaml deleted file mode 100644 index f2febda69b..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: 'mistral_tests.workbook_v2' -version: '2.0' - -workflows: - - workflow-v2: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: core.local - input: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: core.local - input: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_call_workflow_action.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_call_workflow_action.yaml deleted file mode 100644 index 56e5f1f351..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_call_workflow_action.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: 'mistral_tests.workbook_v2_call_workflow_action' -version: '2.0' - -workflows: - - main: - type: direct - input: - - count - - friend - tasks: - task1: - action: mistral_tests.workflow_v2 - input: - count: <% $.count %> - friend: <% $.friend %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_many_workflows.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_many_workflows.yaml deleted file mode 100644 index 2e04ed0cb6..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_many_workflows.yaml +++ /dev/null @@ -1,38 +0,0 @@ -name: 'mistral_tests.workbook_v2_many_workflows' -version: '2.0' - -workflows: - - main: - type: direct - input: - - count - - friend - tasks: - greet: - workflow: subflow1 count=<% $.count %> friend=<% $.friend %> - publish: - towhom: <% task(greet).result.towhom %> - - subflow1: - type: direct - input: - - count - - friend - output: - towhom: <% $.towhom %> - tasks: - say-greeting: - action: core.local - input: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: core.local - input: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_many_workflows_no_default.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_many_workflows_no_default.yaml deleted file mode 100644 index a5fd4802b9..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workbook_v2_many_workflows_no_default.yaml +++ /dev/null @@ -1,49 +0,0 @@ -name: 'mistral_tests.workbook_v2_many_workflows_no_default' -version: '2.0' - -workflows: - - main1: - type: direct - input: - - count - - friend - tasks: - greet: - workflow: subflow1 count=<% $.count %> friend=<% $.friend %> - publish: - towhom: <% task(greet).result.towhom %> - - main2: - type: direct - input: - - count - - friend - tasks: - greet: - workflow: subflow1 count=<% $.count %> friend=<% $.friend %> - publish: - towhom: <% task(greet).result.towhom %> - - subflow1: - type: direct - input: - - count - - friend - output: - towhom: <% $.towhom %> - tasks: - say-greeting: - action: core.local - input: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: core.local - input: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2.yaml deleted file mode 100644 index 3e5bbe8255..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2.yaml +++ /dev/null @@ -1,22 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: core.local - input: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: core.local - input: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_call_workflow_action.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_call_workflow_action.yaml deleted file mode 100644 index ffec31e9d6..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_call_workflow_action.yaml +++ /dev/null @@ -1,13 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2_call_workflow_action: - type: direct - input: - - count - - friend - tasks: - task1: - action: mistral_tests.workflow_v2 - input: - count: <% $.count %> - friend: <% $.friend %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_many_workflows.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_many_workflows.yaml deleted file mode 100644 index 27cc651ada..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_many_workflows.yaml +++ /dev/null @@ -1,43 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2_many_workflows.main1: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: core.local - input: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: core.local - input: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> - -mistral_tests.workflow_v2_many_workflows.main2: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: core.local - input: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: core.local - input: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_reverse.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_reverse.yaml deleted file mode 100644 index 53f325b48b..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/workflow_v2_reverse.yaml +++ /dev/null @@ -1,21 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2_reverse: - type: reverse - input: - - count - - friend - tasks: - say-greeting: - action: core.local - input: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - say-friend: - requires: [say-greeting] - action: core.local - input: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2.yaml deleted file mode 100644 index 8f6c955ed3..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2.yaml +++ /dev/null @@ -1,29 +0,0 @@ -name: 'mistral_tests.workbook_v2' -version: '2.0' - -workflows: - - workflow-v2: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_call_workflow_action.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_call_workflow_action.yaml deleted file mode 100644 index 112782ecc7..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_call_workflow_action.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: 'mistral_tests.workbook_v2_call_workflow_action' -version: '2.0' - -workflows: - - main: - type: direct - input: - - count - - friend - tasks: - task1: - action: st2.action - input: - ref: mistral_tests.workflow_v2 - parameters: - count: <% $.count %> - friend: <% $.friend %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_many_workflows.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_many_workflows.yaml deleted file mode 100644 index 0fdace7c18..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_many_workflows.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: 'mistral_tests.workbook_v2_many_workflows' -version: '2.0' - -workflows: - - main: - type: direct - input: - - count - - friend - tasks: - greet: - workflow: subflow1 count=<% $.count %> friend=<% $.friend %> - publish: - towhom: <% task(greet).result.towhom %> - - subflow1: - type: direct - input: - - count - - friend - output: - towhom: <% $.towhom %> - tasks: - say-greeting: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_many_workflows_no_default.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_many_workflows_no_default.yaml deleted file mode 100644 index 2e576516fa..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workbook_v2_many_workflows_no_default.yaml +++ /dev/null @@ -1,53 +0,0 @@ -name: 'mistral_tests.workbook_v2_many_workflows_no_default' -version: '2.0' - -workflows: - - main1: - type: direct - input: - - count - - friend - tasks: - greet: - workflow: subflow1 count=<% $.count %> friend=<% $.friend %> - publish: - towhom: <% task(greet).result.towhom %> - - main2: - type: direct - input: - - count - - friend - tasks: - greet: - workflow: subflow1 count=<% $.count %> friend=<% $.friend %> - publish: - towhom: <% task(greet).result.towhom %> - - subflow1: - type: direct - input: - - count - - friend - output: - towhom: <% $.towhom %> - tasks: - say-greeting: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2.yaml deleted file mode 100644 index c1a2fd0660..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2.yaml +++ /dev/null @@ -1,26 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_call_workflow_action.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_call_workflow_action.yaml deleted file mode 100644 index ccf4c03388..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_call_workflow_action.yaml +++ /dev/null @@ -1,15 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2_call_workflow_action: - type: direct - input: - - count - - friend - tasks: - task1: - action: st2.action - input: - ref: mistral_tests.workflow_v2 - parameters: - count: <% $.count %> - friend: <% $.friend %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_many_workflows.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_many_workflows.yaml deleted file mode 100644 index 87c8921843..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_many_workflows.yaml +++ /dev/null @@ -1,51 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2_many_workflows.main1: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> - -mistral_tests.workflow_v2_many_workflows.main2: - type: direct - input: - - count - - friend - tasks: - say-greeting: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - on-success: - - say-friend - say-friend: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_reverse.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_reverse.yaml deleted file mode 100644 index a9a63eb6af..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/actions/workflows/xformed_workflow_v2_reverse.yaml +++ /dev/null @@ -1,25 +0,0 @@ -version: '2.0' - -mistral_tests.workflow_v2_reverse: - type: reverse - input: - - count - - friend - tasks: - say-greeting: - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.count %> - publish: - greet: <% task(say-greeting).result.stdout %> - say-friend: - requires: [say-greeting] - action: st2.action - input: - ref: core.local - parameters: - cmd: <% $.friend %> - publish: - towhom: <% task(say-friend).result.stdout %> diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/pack.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/pack.yaml deleted file mode 100644 index 6bbc5e04e5..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : mistral_tests -description : Content pack for mistral tests -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/policies/cancel_on_concurrency.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/policies/cancel_on_concurrency.yaml deleted file mode 100644 index 3ab80939c0..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/policies/cancel_on_concurrency.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: cancel_on_concurrency -pack: mistral_tests -description: Cancels the execution when the concurrent threshold is reached -enabled: true -resource_ref: mistral_tests.workflow_v2 -policy_type: action.concurrency -parameters: - action: cancel - threshold: 3 diff --git a/st2tests/st2tests/fixtures/packs/mistral_tests/policies/cancel_on_concurrency_by_attr.yaml b/st2tests/st2tests/fixtures/packs/mistral_tests/policies/cancel_on_concurrency_by_attr.yaml deleted file mode 100644 index 5428bcc033..0000000000 --- a/st2tests/st2tests/fixtures/packs/mistral_tests/policies/cancel_on_concurrency_by_attr.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: cancel_on_concurrency_by_attr -pack: mistral_tests -description: Cancels the execution when the concurrent threshold is reached -enabled: true -resource_ref: mistral_tests.workflow_v2 -policy_type: action.concurrency.attr -parameters: - action: cancel - threshold: 1 - attributes: - - friend diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/action-less-tasks.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/action-less-tasks.yaml deleted file mode 100644 index a5eee1b317..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/action-less-tasks.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: action-less-tasks -description: A basic sequential workflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/action-less-tasks.yaml -enabled: true -parameters: - name: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-approval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-approval.yaml deleted file mode 100644 index 22b1ef0885..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-approval.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: ask-approval -description: A basic workflow that demonstrates inquiry. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/ask-approval.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-consecutive-approvals.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-consecutive-approvals.yaml deleted file mode 100644 index 4d381588cb..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-consecutive-approvals.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: ask-consecutive-approvals -description: A basic workflow that demonstrates consecutive inquiries. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/ask-consecutive-approvals.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-nested-approval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-nested-approval.yaml deleted file mode 100644 index 18821b15ed..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-nested-approval.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: ask-nested-approval -description: A basic workflow that demonstrates inquiry nested in a subworkflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/ask-nested-approval.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-parallel-approvals.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-parallel-approvals.yaml deleted file mode 100644 index 5b6c0302f8..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/ask-parallel-approvals.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: ask-parallel-approvals -description: A basic workflow that demonstrates parallel inquiries. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/ask-parallel-approvals.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/config-context-action.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/config-context-action.yaml deleted file mode 100644 index 1e1dc53aa1..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/config-context-action.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - name: "config-context-action" - runner_type: "local-shell-cmd" - enabled: true - entry_point: "" - parameters: - cmd: - immutable: true - default: "echo \"{{ config_context.config_key_a }}\"" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/config-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/config-context.yaml deleted file mode 100644 index 8c1c5dca72..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/config-context.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: config-context -description: Workflow which tests {{ config_context.foo }} notation works default parameter values for workflow actions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/config-context.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/data-flow.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/data-flow.yaml deleted file mode 100644 index 589e966e94..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/data-flow.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: data-flow -description: A basic workflow to demonstrate data flow options. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/data-flow.yaml -enabled: true -parameters: - a1: - required: true - type: string diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/default-value-from-action-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/default-value-from-action-context.yaml deleted file mode 100644 index ef0e7c015c..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/default-value-from-action-context.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: default-value-from-action-context -description: A basic sequential workflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/sequential.yaml -enabled: true -parameters: - who: - required: true - type: string - default: "{{ 'api_user' in action_context and action_context.api_user or action_context.user }}" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/delay.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/delay.yaml deleted file mode 100644 index a9c52d63b1..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/delay.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: delay -description: A basic workflow with a task delay. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/delay.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley - delay: - required: true - type: integer diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-input-rendering.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-input-rendering.yaml deleted file mode 100644 index 48c85c559a..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-input-rendering.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: fail-input-rendering -description: A basic workflow with error while evaluating input. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-input-rendering.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-action-db.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-action-db.yaml deleted file mode 100644 index cccfc25af0..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-action-db.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-inspection-action-db -description: A basic sequential workflow with inspection error(s). -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-inspection-action-db.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-action-ref.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-action-ref.yaml deleted file mode 100644 index 1f0c622f73..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-action-ref.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-inspection-action-ref -description: A basic sequential workflow with inspection error(s). -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-inspection-action-ref.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-missing-required-action-param.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-missing-required-action-param.yaml deleted file mode 100644 index 8c7205b340..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-missing-required-action-param.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-inspection-missing-required-action-param -description: A basic sequential workflow with inspection error(s). -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-inspection-missing-required-action-param.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-unexpected-action-param.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-unexpected-action-param.yaml deleted file mode 100644 index 4ea62bdc86..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection-unexpected-action-param.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-inspection-unexpected-action-param -description: A basic sequential workflow with inspection error(s). -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-inspection-unexpected-action-param.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection.yaml deleted file mode 100644 index af550508bb..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-inspection.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: fail-inspection -description: A basic sequential workflow with syntax errors. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-inspection.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-manually-with-recovery-failure.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-manually-with-recovery-failure.yaml deleted file mode 100644 index d70575384d..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-manually-with-recovery-failure.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: fail-manually-with-recovery-failure -description: A workflow to test task failure after workflow already failed manually. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-manually-with-recovery-failure.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-manually.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-manually.yaml deleted file mode 100644 index 6b645111d8..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-manually.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: fail-manually -description: A workflow that demonstrates how to fail manually. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-manually.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-output-rendering.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-output-rendering.yaml deleted file mode 100644 index 24331b53a5..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-output-rendering.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-output-rendering -description: A basic workflow with error while evaluating output. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-output-rendering.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-action.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-action.yaml deleted file mode 100644 index ecda5d1d2e..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-action.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-start-task-action -description: A basic workflow with error on action evaluation in the starting task. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-start-task-action.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-input-expr-eval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-input-expr-eval.yaml deleted file mode 100644 index 791387c033..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-input-expr-eval.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-start-task-input-expr-eval -description: A basic workflow with error on input evaluation in the starting task. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-start-task-input-expr-eval.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-input-value-type.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-input-value-type.yaml deleted file mode 100644 index 4e4cffe087..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-start-task-input-value-type.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: fail-start-task-input-value-type -description: A basic workflow with error on passing value of wrong type to input of the starting task. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-start-task-input-value-type.yaml -enabled: true -parameters: - var1: - required: true - type: object diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-action.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-action.yaml deleted file mode 100644 index b7a4e3f1b9..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-action.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-task-action -description: A basic workflow with error on action evaluation in one of the tasks. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-task-action.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-execution.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-execution.yaml deleted file mode 100644 index 7d93a3bb8b..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-execution.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: fail-task-execution -description: A basic workflow that fails task execution. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-task-execution.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-input-expr-eval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-input-expr-eval.yaml deleted file mode 100644 index f52ebdc7a4..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-input-expr-eval.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-task-input-epxr-eval -description: A basic workflow with error on input evaluation in one of the tasks. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-task-input-expr-eval.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-input-value-type.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-input-value-type.yaml deleted file mode 100644 index 6e45f08549..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-input-value-type.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- -name: fail-task-input-value-type -description: A basic workflow with error on passing value of wrong type to input in one of the tasks. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-task-input-value-type.yaml -enabled: true -parameters: - var1: - required: true - type: object diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-publish.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-publish.yaml deleted file mode 100644 index 38d29dc8be..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-publish.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-task-publish -description: A basic sequential workflow with error(s) in publish. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-task-publish.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-transition.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-transition.yaml deleted file mode 100644 index 92946286c2..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-task-transition.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-task-transition -description: A basic workflow with error while evaluating task transition. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-task-transition.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-vars-rendering.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-vars-rendering.yaml deleted file mode 100644 index f9be983b23..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/fail-vars-rendering.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: fail-vars-rendering -description: A basic workflow with error while evaluating vars. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/fail-vars-rendering.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-data-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-data-functions.yaml deleted file mode 100644 index dc5b267043..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-data-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: jinja-data-functions -description: A basic workflow testing data related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/jinja-data-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-path-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-path-functions.yaml deleted file mode 100644 index 375bd61ead..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-path-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: jinja-path-functions -description: A basic workflow testing path related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/jinja-path-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-regex-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-regex-functions.yaml deleted file mode 100644 index 8d5762dbad..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-regex-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: jinja-regex-functions -description: A basic workflow testing regex related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/jinja-regex-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-task-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-task-functions.yaml deleted file mode 100644 index ad8a43f67a..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-task-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: jinja-task-functions -description: A basic workflow testing task related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/jinja-task-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-task-nonexistent.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-task-nonexistent.yaml deleted file mode 100644 index 099df392d2..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-task-nonexistent.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: jinja-task-nonexistent -description: A basic workflow testing task related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/jinja-task-nonexistent.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-time-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-time-functions.yaml deleted file mode 100644 index 2107403b31..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-time-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: jinja-time-functions -description: A basic workflow testing time related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/jinja-time-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-version-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-version-functions.yaml deleted file mode 100644 index 7cc3f6ddd7..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/jinja-version-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: jinja-version-functions -description: A basic workflow testing version related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/jinja-version-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/join.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/join.yaml deleted file mode 100644 index f1d6d020d9..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/join.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: join -description: A basic workflow that demonstrate branching and join. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/join.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/notify.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/notify.yaml deleted file mode 100644 index 08a2852f91..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/notify.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: notify -description: A basic sequential workflow with notify enabled. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/sequential.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley - notify: - type: array - default: - - task1 - - task2 - - task3 diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/output-on-error.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/output-on-error.yaml deleted file mode 100644 index 132e9eaf8f..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/output-on-error.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: output-on-error -description: A workflow demonstrating output on error. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/output-on-error.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/render_config_context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/render_config_context.yaml deleted file mode 100644 index 2f720cfd25..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/render_config_context.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: render_config_context -pack: orquesta_tests -description: Run render config context workflow -runner_type: orquesta -entry_point: workflows/render_config_context.yaml -enabled: true -parameters: {} diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/runtime-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/runtime-context.yaml deleted file mode 100644 index 1f769c6fe1..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/runtime-context.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: runtime-context -description: A workflow to test access of st2 runtime context at various locations. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/runtime-context.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential.yaml deleted file mode 100644 index b93212bdbd..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: sequential -description: A basic sequential workflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/sequential.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential_with_broken_schema.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential_with_broken_schema.yaml deleted file mode 100644 index 81b3a38289..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential_with_broken_schema.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: sequential_with_broken_schema -description: A basic sequential workflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/sequential.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley -output_schema: - notakey: - type: boolean diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential_with_schema.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential_with_schema.yaml deleted file mode 100644 index cd0d5b8b34..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/sequential_with_schema.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: sequential_with_schema -description: A basic sequential workflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/sequential.yaml -enabled: true -parameters: - who: - required: true - type: string - default: Stanley -output_schema: - msg: - type: string diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/source-channel-from-action-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/source-channel-from-action-context.yaml deleted file mode 100644 index dd5ea84155..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/source-channel-from-action-context.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -name: source-channel-from-action-context -description: Test getting source_channel from context if provided -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/sequential.yaml -enabled: true -parameters: - who: - required: true - type: string - default: "{{ 'source_channel' in action_context and action_context.source_channel or 'no_channel' }}" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow-default-value-from-action-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow-default-value-from-action-context.yaml deleted file mode 100644 index 7f3e3d7d35..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow-default-value-from-action-context.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: subworkflow-default-value-from-action-context.yaml -description: A sample workflow that calls another subworkflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/subworkflow-default-value-from-action-context.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow-source-channel-from-action-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow-source-channel-from-action-context.yaml deleted file mode 100644 index b707410bd5..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow-source-channel-from-action-context.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: subworkflow-source-channel-from-action-context.yaml -description: A sample workflow that calls another subworkflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/subworkflow-source-channel-from-action-context.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow.yaml deleted file mode 100644 index 04e599ac79..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflow.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: subworkflow -description: A sample workflow that calls another subworkflow. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/subworkflow.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflows.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflows.yaml deleted file mode 100644 index 42a7609534..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/subworkflows.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: subworkflows -description: A sample workflow that calls multiple subworkflows. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/subworkflows.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-concurrency-delay.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-concurrency-delay.yaml deleted file mode 100644 index 293b4a1b06..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-concurrency-delay.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: with-items-concurrency-delay -description: A workflow with a task delay for a with items task. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/with-items-concurrency-delay.yaml -enabled: true -parameters: - members: - required: true - type: array - default: - - Lakshmi - - Lindsay - - Tomaz - concurrency: - type: integer - delay: - required: true - type: integer diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-concurrency.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-concurrency.yaml deleted file mode 100644 index de1f73d926..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-concurrency.yaml +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: with-items-concurrency -description: A workflow demonstrating with items and concurrent processing. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/with-items-concurrency.yaml -enabled: true -parameters: - members: - required: true - type: array - default: - - Lakshmi - - Lindsay - - Tomaz - concurrency: - type: integer diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-delay.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-delay.yaml deleted file mode 100644 index 8a341656f9..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-delay.yaml +++ /dev/null @@ -1,18 +0,0 @@ ---- -name: with-items-delay -description: A workflow with a task delay for a with items task. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/with-items-delay.yaml -enabled: true -parameters: - members: - required: true - type: array - default: - - Lakshmi - - Lindsay - - Tomaz - delay: - required: true - type: integer diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-failure.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-failure.yaml deleted file mode 100644 index 6104ec0248..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items-failure.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: with-items-failure -description: A workflow demonstrating items failure. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/with-items-failure.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items.yaml deleted file mode 100644 index a98e9a5432..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/with-items.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -name: with-items -description: A workflow demonstrating with items. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/with-items.yaml -enabled: true -parameters: - members: - required: true - type: array - default: - - Lakshmi - - Lindsay - - Tomaz diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/action-less-tasks.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/action-less-tasks.yaml deleted file mode 100644 index 478068f9f1..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/action-less-tasks.yaml +++ /dev/null @@ -1,38 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow. - -input: - - name - -output: - - greeting: <% ctx(greeting) %> - -tasks: - task1: - next: - - publish: greeting=<% ctx(name) %> - do: task2 - task2: - action: core.echo message=<% ctx(greeting) %> - next: - - when: <% succeeded() %> - publish: greeting=<% result().stdout %> - do: task3 - task3: - action: core.echo - input: - message: "All your base are belong to us!" - next: - - when: <% succeeded() %> - publish: greeting="<% ctx(greeting) %>, <% result().stdout %>" - do: task4 - task4: - next: - - publish: greeting=<% ctx(greeting).toUpper() %> - do: task5 - task5: - action: core.echo message=<% ctx(greeting) %> - next: - - when: <% succeeded() %> - publish: greeting=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-approval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-approval.yaml deleted file mode 100644 index 97a95ad63b..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-approval.yaml +++ /dev/null @@ -1,34 +0,0 @@ -version: 1.0 - -description: A basic workflow that demonstrates inquiry. - -tasks: - start: - action: core.echo message="Automation started." - next: - - when: <% succeeded() %> - do: get_approval - - get_approval: - action: core.ask - input: - schema: - type: object - properties: - approved: - type: boolean - description: "Continue?" - required: True - next: - - when: <% succeeded() %> - do: finish - - when: <% failed() %> - do: stop - - finish: - action: core.echo message="Automation completed." - - stop: - action: core.echo message="Automation stopped." - next: - - do: fail diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-consecutive-approvals.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-consecutive-approvals.yaml deleted file mode 100644 index beddda6d23..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-consecutive-approvals.yaml +++ /dev/null @@ -1,50 +0,0 @@ -version: 1.0 - -description: A basic workflow that demonstrates consecutive inquiries. - -tasks: - start: - action: core.echo message="Automation started." - next: - - when: <% succeeded() %> - do: get_approval - - get_approval: - action: core.ask - input: - schema: - type: object - properties: - approved: - type: boolean - description: "Continue?" - required: True - next: - - when: <% succeeded() %> - do: get_confirmation - - when: <% failed() %> - do: stop - - get_confirmation: - action: core.ask - input: - schema: - type: object - properties: - approved: - type: boolean - description: "Really?" - required: True - next: - - when: <% succeeded() %> - do: finish - - when: <% failed() %> - do: stop - - finish: - action: core.echo message="Automation completed." - - stop: - action: core.echo message="Automation stopped." - next: - - do: fail diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-nested-approval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-nested-approval.yaml deleted file mode 100644 index 21b7e07ee9..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-nested-approval.yaml +++ /dev/null @@ -1,26 +0,0 @@ -version: 1.0 - -description: A basic workflow that demonstrates inquiry nested in a subworkflow. - -tasks: - start: - action: core.echo message="Automation started." - next: - - when: <% succeeded() %> - do: get_approval - - get_approval: - action: orquesta_tests.ask-approval - next: - - when: <% succeeded() %> - do: finish - - when: <% failed() %> - do: stop - - finish: - action: core.echo message="Automation completed." - - stop: - action: core.echo message="Automation stopped." - next: - - do: fail diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-parallel-approvals.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-parallel-approvals.yaml deleted file mode 100644 index e383eaafef..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/ask-parallel-approvals.yaml +++ /dev/null @@ -1,53 +0,0 @@ -version: 1.0 - -description: A basic workflow that demonstrates parallel inquiries. - -tasks: - start: - action: core.echo message="Automation started." - next: - - when: <% succeeded() %> - do: - - ask_jack - - ask_jill - - ask_jack: - action: core.ask - input: - schema: - type: object - properties: - approved: - type: boolean - description: "Jill?" - required: True - next: - - when: <% succeeded() %> - do: finish - - when: <% failed() %> - do: stop - - ask_jill: - action: core.ask - input: - schema: - type: object - properties: - approved: - type: boolean - description: "Jack?" - required: True - next: - - when: <% succeeded() %> - do: finish - - when: <% failed() %> - do: stop - - finish: - join: all - action: core.echo message="Automation completed." - - stop: - action: core.echo message="Automation stopped." - next: - - do: fail diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/config-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/config-context.yaml deleted file mode 100644 index 796b80e3ff..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/config-context.yaml +++ /dev/null @@ -1,13 +0,0 @@ -version: 1.0 - -description: Workflow which tests {{ config_context }} functionality. - -output: - - msg: <% ctx().message %> - -tasks: - task1: - action: orquesta_tests.config-context-action - next: - - when: <% succeeded() %> - publish: message=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/data-flow.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/data-flow.yaml deleted file mode 100644 index 7660d02cb5..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/data-flow.yaml +++ /dev/null @@ -1,35 +0,0 @@ -version: 1.0 - -description: A basic workflow to demonstrate data flow options. - -input: - - a1 - - b1: <% ctx().a1 %> - -vars: - - a2: <% ctx().b1 %> - - b2: <% ctx().a2 %> - -output: - - a5: <% ctx().b4 %> - - b5: <% ctx().a5 %> - -tasks: - task1: - action: core.echo - input: - message: <% ctx().b2 %> - next: - - when: <% succeeded() %> - publish: - - a3: <% result().stdout %> - - b3: <% ctx().a3 %> - do: task2 - task2: - action: core.echo message=<% ctx().b3 %> - next: - - when: <% succeeded() %> - publish: a4=<% result().stdout %> b4=<% ctx().a4 %> - do: task3 - task3: - action: core.noop diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/delay.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/delay.yaml deleted file mode 100644 index 8fd5def444..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/delay.yaml +++ /dev/null @@ -1,40 +0,0 @@ -version: 1.0 - -description: A basic workflow with a task delay. - -input: - - who - - delay - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -output: - - msg: <% ctx().message %> - -tasks: - task1: - delay: <% ctx().delay %> - action: core.echo - input: - message: <% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: - - task2 - task2: - action: core.echo - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> - next: - - when: <% succeeded() %> - publish: message=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-input-rendering.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-input-rendering.yaml deleted file mode 100644 index 048c57547f..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-input-rendering.yaml +++ /dev/null @@ -1,27 +0,0 @@ -version: 1.0 - -description: A basic workflow with error while evaluating input. - -input: - - who: <% abs(4).value %> - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: core.echo message=<% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: task2 - task2: - action: core.echo message=<% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% $.who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-action-db.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-action-db.yaml deleted file mode 100644 index d773b5b8de..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-action-db.yaml +++ /dev/null @@ -1,38 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -output: - - msg: <% ctx().message %> - -tasks: - task1: - action: core.echoz - input: - message: <% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: - - task2 - task2: - action: core.echo - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> - next: - - when: <% succeeded() %> - publish: message=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-action-ref.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-action-ref.yaml deleted file mode 100644 index c9c489b594..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-action-ref.yaml +++ /dev/null @@ -1,38 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -output: - - msg: <% ctx().message %> - -tasks: - task1: - action: echo - input: - message: <% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: - - task2 - task2: - action: core.echo - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> - next: - - when: <% succeeded() %> - publish: message=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-missing-required-action-param.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-missing-required-action-param.yaml deleted file mode 100644 index 4de4d79e43..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-missing-required-action-param.yaml +++ /dev/null @@ -1,36 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -output: - - msg: <% ctx().message %> - -tasks: - task1: - action: core.echo - next: - - when: <% succeeded() %> - do: - - task2 - task2: - action: core.echo - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> - next: - - when: <% succeeded() %> - publish: message=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-unexpected-action-param.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-unexpected-action-param.yaml deleted file mode 100644 index eb3f73fa86..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection-unexpected-action-param.yaml +++ /dev/null @@ -1,38 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -output: - - msg: <% ctx().message %> - -tasks: - task1: - action: core.echo - input: - messages: <% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: - - task2 - task2: - action: core.echo - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> - next: - - when: <% succeeded() %> - publish: message=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection.yaml deleted file mode 100644 index e1feba1760..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-inspection.yaml +++ /dev/null @@ -1,23 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow. - -vars: - - macro: polo - -tasks: - task1: - action: core.local cmd=<% ctx().foobar %> - next: - - when: <% succeeded() %> - do: - - task2 - task2: - action: core.local - input: - - cmd: echo <% ctx().macro %> - next: - - when: <% <% succeeded() %> - do: task3 - task3: - action: std.noop diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-manually-with-recovery-failure.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-manually-with-recovery-failure.yaml deleted file mode 100644 index 395830a5c0..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-manually-with-recovery-failure.yaml +++ /dev/null @@ -1,18 +0,0 @@ -version: 1.0 - -description: A workflow to test task failure after workflow already failed manually. - -tasks: - task1: - action: core.local cmd="exit 1" - next: - - when: <% failed() %> - publish: - - task_name: <% task().task_name %> - - task_exit_code: <% task().result.stdout %> - do: - - recover - - fail - - recover: - action: core.local cmd="exit 1" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-manually.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-manually.yaml deleted file mode 100644 index 62cd4597b9..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-manually.yaml +++ /dev/null @@ -1,22 +0,0 @@ -version: 1.0 - -description: A workflow that demonstrates how to fail manually. - -tasks: - # On task failure, we want to run a task that - # logs the error before failing the workflow. - task1: - action: core.local cmd="exit 1" - next: - - when: <% failed() %> - publish: - - task_name: <% task().task_name %> - - task_exit_code: <% task().result.stdout %> - do: - - log - - fail - - log: - action: core.echo - input: - message: "<% ctx().task_name %> failed with exit code: <% ctx().task_exit_code %>" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-output-rendering.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-output-rendering.yaml deleted file mode 100644 index a8c2434898..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-output-rendering.yaml +++ /dev/null @@ -1,15 +0,0 @@ -version: 1.0 - -description: A basic workflow with error while evaluating output. - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -output: - - messages: <% abs(4).value %> - -tasks: - task1: - action: core.echo message=<% ctx().msg1 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-action.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-action.yaml deleted file mode 100644 index 96c34c235e..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-action.yaml +++ /dev/null @@ -1,30 +0,0 @@ -version: 1.0 - -description: A basic workflow with error on action evaluation in the starting task. - -input: - - who - -vars: - - func: "core.echo" - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: <% ctx().func.value %> - input: - message: <% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: task2 - task2: - action: core.echo message=<% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-input-expr-eval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-input-expr-eval.yaml deleted file mode 100644 index f1e4e99ec4..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-input-expr-eval.yaml +++ /dev/null @@ -1,27 +0,0 @@ -version: 1.0 - -description: A basic workflow with error on input evaluation in the starting task. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: core.echo message=<% ctx().msg1.value %> - next: - - when: <% succeeded() %> - do: task2 - task2: - action: core.echo message=<% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-input-value-type.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-input-value-type.yaml deleted file mode 100644 index 989212d95b..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-start-task-input-value-type.yaml +++ /dev/null @@ -1,12 +0,0 @@ -version: 1.0 - -description: A basic workflow with error on passing value of wrong type to input of the starting task. - -input: - - var1 - -tasks: - task1: - action: core.echo - input: - message: <% ctx().var1 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-action.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-action.yaml deleted file mode 100644 index 0e27b2f967..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-action.yaml +++ /dev/null @@ -1,30 +0,0 @@ -version: 1.0 - -description: A basic workflow with error on action evaluation in one of the tasks. - -input: - - who - -vars: - - func: "core.echo" - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: core.echo message=<% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: task2 - task2: - action: <% ctx().func.value %> - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-execution.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-execution.yaml deleted file mode 100644 index 6fb8fb1f78..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-execution.yaml +++ /dev/null @@ -1,9 +0,0 @@ -version: 1.0 - -description: A basic workflow that fails task execution. - -tasks: - task1: - action: core.local - input: - cmd: '>&2 echo "boom!"; exit 1' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-input-expr-eval.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-input-expr-eval.yaml deleted file mode 100644 index e97d2b62c5..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-input-expr-eval.yaml +++ /dev/null @@ -1,27 +0,0 @@ -version: 1.0 - -description: A basic workflow with error on input evaluation in one of the tasks. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: core.echo message=<% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: task2 - task2: - action: core.echo message=<% ctx().msg2.value %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-input-value-type.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-input-value-type.yaml deleted file mode 100644 index 59a3ab610b..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-input-value-type.yaml +++ /dev/null @@ -1,17 +0,0 @@ -version: 1.0 - -description: A basic workflow with error on passing value of wrong type to input in one of the tasks. - -input: - - var1 - -tasks: - task1: - action: core.noop - next: - - when: <% succeeded() %> - do: task2 - task2: - action: core.echo - input: - message: <% ctx().var1 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-publish.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-publish.yaml deleted file mode 100644 index d6ddc33c34..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-publish.yaml +++ /dev/null @@ -1,34 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow with error(s) in publish. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: core.echo - input: - message: <% ctx().msg1 %> - next: - - when: <% succeeded() %> - publish: - - foobar: <% foobar() %> - do: - - task2 - task2: - action: core.echo - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-transition.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-transition.yaml deleted file mode 100644 index 31bba22c8d..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-task-transition.yaml +++ /dev/null @@ -1,27 +0,0 @@ -version: 1.0 - -description: A basic workflow with error while evaluating task transition. - -input: - - who - -vars: - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: core.echo message=<% ctx().msg1 %> - next: - - when: <% succeeded() and result().foobar %> - do: task2 - task2: - action: core.echo message=<% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-vars-rendering.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-vars-rendering.yaml deleted file mode 100644 index 2ba5f174af..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/fail-vars-rendering.yaml +++ /dev/null @@ -1,28 +0,0 @@ -version: 1.0 - -description: A basic workflow with error while evaluating vars. - -input: - - who - -vars: - - var1: <% abs(4).value %> - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -tasks: - task1: - action: core.echo message=<% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: task2 - task2: - action: core.echo message=<% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-data-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-data-functions.yaml deleted file mode 100644 index 2da66a18d9..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-data-functions.yaml +++ /dev/null @@ -1,38 +0,0 @@ -version: 1.0 - -description: A basic workflow testing data related functions. - -vars: - - data_json_str_1: '{"foo": {"bar": "foobar"}}' - - none: null - - data_list: - - a: 1 - b: 2 - - x: 3 - y: 4 - -tasks: - task1: - action: core.noop - -output: - - data_json_str_1: '{{ ctx("data_json_str_1") }}' - - data_json_obj_1: '{{ from_json_string(ctx("data_json_str_1")) }}' - - data_yaml_str_1: '{{ to_yaml_string(ctx("data_json_obj_1")) }}' - - data_json_obj_2: '{{ from_yaml_string(ctx("data_yaml_str_1")) }}' - - data_json_str_2: '{{ to_json_string(ctx("data_json_obj_2")) }}' - - data_query_1: '{{ jsonpath_query(ctx("data_json_obj_2"), "$.foo.bar") }}' - - data_pipe_str_1: '{{ - ctx("data_json_str_1") | - from_json_string() | - to_yaml_string() | - from_yaml_string() | - to_json_string() - }}' - - data_json_obj_3 : '{{ json_parse(ctx("data_json_str_1")) }}' - - data_yaml_str_2: '{{ yaml_dump(ctx("data_json_obj_3")) }}' - - data_json_obj_4: '{{ yaml_parse(ctx("data_yaml_str_2")) }}' - - data_json_str_3: '{{ json_dump(ctx("data_json_obj_4")) }}' - - data_none_str: '{{ use_none(ctx("none")) }}' - - data_str: '{{ use_none("foobar") }}' - - data_list_str: '{{ to_yaml_string(ctx("data_list")) }}' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-path-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-path-functions.yaml deleted file mode 100644 index 7f7c7851b2..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-path-functions.yaml +++ /dev/null @@ -1,11 +0,0 @@ -version: 1.0 - -description: A basic workflow testing path related functions. - -tasks: - task1: - action: core.noop - -output: - - basename: '{{ basename("/path/to/some/file.txt") }}' - - dirname: '{{ dirname("/path/to/some/file.txt") }}' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-regex-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-regex-functions.yaml deleted file mode 100644 index b80493318a..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-regex-functions.yaml +++ /dev/null @@ -1,13 +0,0 @@ -version: 1.0 - -description: A basic workflow testing regex related functions. - -tasks: - task1: - action: core.noop - -output: - - match: '{{ regex_match("xyz", "x") }}' - - replace: '{{ regex_replace("xyz", "x", "wx") }}' - - search: '{{ regex_search("xyz", "y") }}' - - substring: '{{ regex_substring("I live at 668 Infinite Dr", "([0-9]{3} \w+ (?:Ave|St|Dr))") }}' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-task-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-task-functions.yaml deleted file mode 100644 index ea80b4cedd..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-task-functions.yaml +++ /dev/null @@ -1,63 +0,0 @@ -version: 1.0 - -description: A basic workflow testing task related functions. - -vars: - - loop: True - -tasks: - # Test basic task function. - task1: - action: core.echo message="foobar" - next: - - publish: - - this_task_no_arg: '{{ task().task_id }}' - - this_task_by_name: '{{ task("task1").task_id }}' - do: task2 - task2: - action: core.noop - - # Test task function in a cycle. - task3: - action: core.noop - next: - - do: task4 - task4: - action: core.local - input: - cmd: 'echo "{{ ctx("loop") }}"; sleep 1' - next: - - when: '{{ ctx("loop") == true }}' - publish: - - loop: False - do: task4 - - when: '{{ ctx("loop") != true }}' - do: task5 - task5: - action: core.noop - - # Test task function in a reuse (split). - task6: - action: core.noop - next: - - do: task8 - task7: - action: core.noop - next: - - do: task8 - task8: - action: core.noop - next: - - do: task9 - task9: - action: core.echo - input: - message: '{{ task("task8").task_id + "__" + task("task8").route|string }}' - -output: - - this_task_no_arg: '{{ ctx("this_task_no_arg") }}' - - this_task_by_name: '{{ ctx("this_task_by_name") }}' - - that_task_by_name: '{{ task("task1").task_id }}' - - last_task4_result: '{{ task("task4").result.stdout }}' - - task9__1__parent: '{{ task("task9", route=1).result.stdout }}' - - task9__2__parent: '{{ task("task9", route=2).result.stdout }}' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-task-nonexistent.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-task-nonexistent.yaml deleted file mode 100644 index 822d8e3b14..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-task-nonexistent.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: 1.0 - -description: A basic workflow testing task related functions. - -tasks: - task1: - action: core.noop - next: - - publish: - - task: '{{ task("task0") }}' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-time-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-time-functions.yaml deleted file mode 100644 index b98b68fdf1..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-time-functions.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: 1.0 - -description: A basic workflow testing time related functions. - -tasks: - task1: - action: core.noop - -output: - - time: '{{ to_human_time_from_seconds(12345) }}' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-version-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-version-functions.yaml deleted file mode 100644 index 0d77ef8aef..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/jinja-version-functions.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: 1.0 - -description: A basic workflow testing version related functions. - -tasks: - task1: - action: core.noop - -output: - - compare_equal: '{{ version_compare("0.10.0", "0.10.0") }}' - - compare_more_than: '{{ version_compare("0.10.0", "0.10.1") }}' - - compare_less_than: '{{ version_compare("0.10.1", "0.10.0") }}' - - equal: '{{ version_equal("0.10.0", "0.10.0") }}' - - more_than: '{{ version_more_than("0.9.0", "0.10.0") }}' - - less_than: '{{ version_less_than("0.10.0", "0.9.0") }}' - - match: '{{ version_match("0.10.1", ">0.10.0") }}' - - bump_major: '{{ version_bump_major("0.10.0") }}' - - bump_minor: '{{ version_bump_minor("0.10.0") }}' - - bump_patch: '{{ version_bump_patch("0.10.0") }}' - - strip_patch: '{{ version_strip_patch("0.10.0") }}' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/join.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/join.yaml deleted file mode 100644 index 10e177b100..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/join.yaml +++ /dev/null @@ -1,44 +0,0 @@ -version: 1.0 - -description: A basic workflow that demonstrate branching and join. - -tasks: - task1: - action: core.noop - next: - - when: <% succeeded() %> - do: task2, task4 - - # branch 1 - task2: - action: core.noop - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.noop - next: - - when: <% succeeded() %> - do: task6 - - # branch 2 - task4: - action: core.noop - next: - - when: <% succeeded() %> - do: task5 - task5: - action: core.noop - next: - - when: <% succeeded() %> - do: task6 - - # converge branch 1 and 2 - task6: - join: all - action: core.noop - next: - - when: <% succeeded() %> - do: task7 - task7: - action: core.noop diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/output-on-error.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/output-on-error.yaml deleted file mode 100644 index a2a5450613..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/output-on-error.yaml +++ /dev/null @@ -1,41 +0,0 @@ -version: 1.0 - -description: A workflow demonstrating output on error. - -vars: - - progress: 0 - -output: - - progress: <% ctx().progress %> - -tasks: - task1: - action: core.noop - next: - - when: <% succeeded() %> - publish: - - progress: 25 - do: - - task2 - task2: - action: core.local cmd="exit 1" - next: - - when: <% succeeded() %> - publish: - - progress: 50 - do: - - task3 - task3: - action: core.noop - next: - - when: <% succeeded() %> - publish: - - progress: 75 - do: - - task4 - task4: - action: core.noop - next: - - when: <% succeeded() %> - publish: - - progress: 100 diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/render_config_context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/render_config_context.yaml deleted file mode 100644 index 5683cbe98f..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/render_config_context.yaml +++ /dev/null @@ -1,7 +0,0 @@ -version: 1.0 -description: Testing config context render". -tasks: - task1: - action: dummy_pack_7.render_config_context -output: - - context_value: <% task(task1).result.result.context_value %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/runtime-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/runtime-context.yaml deleted file mode 100644 index 4ccf6b4ac0..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/runtime-context.yaml +++ /dev/null @@ -1,22 +0,0 @@ -version: 1.0 - -description: A workflow to test access of st2 runtime context at various locations. - -input: - - st2_ctx_at_input: <% ctx().st2 %> - -vars: - - st2_ctx_at_vars: <% ctx().st2 %> - -output: - - st2_ctx_at_input: <% ctx().st2_ctx_at_input %> - - st2_ctx_at_vars: <% ctx().st2_ctx_at_vars %> - - st2_ctx_at_publish: <% ctx().st2_ctx_at_publish %> - - st2_ctx_at_output: <% ctx().st2 %> - -tasks: - task1: - action: core.noop - next: - - publish: - - st2_ctx_at_publish: <% ctx().st2 %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/sequential.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/sequential.yaml deleted file mode 100644 index 58fe5c6482..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/sequential.yaml +++ /dev/null @@ -1,39 +0,0 @@ -version: 1.0 - -description: A basic sequential workflow. - -input: - - who - -vars: - - message: null - - msg1: "Veni, vidi, vici." - - msg2: "Resistance is futile!" - - msg3: "All your base are belong to us!" - -output: - - msg: <% ctx().message %> - -tasks: - task1: - action: core.echo - input: - message: <% ctx().msg1 %> - next: - - when: <% succeeded() %> - do: - - task2 - task2: - action: core.echo - input: - message: <% ctx().msg2 %> - next: - - when: <% succeeded() %> - do: task3 - task3: - action: core.echo - input: - message: <% ctx().who %>, <% ctx().msg3 %> - next: - - when: <% succeeded() %> - publish: message=<% result().stdout %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow-default-value-from-action-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow-default-value-from-action-context.yaml deleted file mode 100644 index 90e3ac78ad..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow-default-value-from-action-context.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: 1.0 - -description: A sample workflow that calls another subworkflow. - -output: - - msg: <% task(task1).result.output.msg %> - -tasks: - task1: - action: orquesta_tests.default-value-from-action-context diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow-source-channel-from-action-context.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow-source-channel-from-action-context.yaml deleted file mode 100644 index eedc5b8c3e..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow-source-channel-from-action-context.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: 1.0 - -description: A sample workflow that calls another subworkflow. - -output: - - msg: <% task(task1).result.output.msg %> - -tasks: - task1: - action: orquesta_tests.source-channel-from-action-context diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow.yaml deleted file mode 100644 index 0a9878ccb2..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflow.yaml +++ /dev/null @@ -1,12 +0,0 @@ -version: 1.0 - -description: A sample workflow that calls another subworkflow. - -tasks: - task1: - action: orquesta_tests.sequential who="Lakshmi" - next: - - when: <% succeeded() %> - do: task2 - task2: - action: core.echo message="Yahoo!" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflows.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflows.yaml deleted file mode 100644 index 922fc7577b..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/subworkflows.yaml +++ /dev/null @@ -1,18 +0,0 @@ -version: 1.0 - -description: A sample workflow that calls multiple subworkflows. - -tasks: - task1: - action: orquesta_tests.sequential who="Jack" - next: - - when: <% succeeded() %> - do: task3 - task2: - action: orquesta_tests.sequential who="Jill" - next: - - when: <% succeeded() %> - do: task3 - task3: - join: all - action: core.echo message="Yahoo!" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-concurrency-delay.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-concurrency-delay.yaml deleted file mode 100644 index f1588b6f57..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-concurrency-delay.yaml +++ /dev/null @@ -1,19 +0,0 @@ -version: 1.0 - -description: A workflow with a task delay for a with items task. - -input: - - members - - concurrency: <% len(ctx(members)) %> - - delay - -tasks: - task1: - delay: <% ctx(delay) %> - with: - items: <% ctx(members) %> - concurrency: <% ctx(concurrency) %> - action: core.echo message="<% item() %>, resistance is futile!" - -output: - - items: <% task(task1).result.items.select($.result.stdout) %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-concurrency.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-concurrency.yaml deleted file mode 100644 index 5590aa6c62..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-concurrency.yaml +++ /dev/null @@ -1,17 +0,0 @@ -version: 1.0 - -description: A workflow demonstrating with items and concurrent processing. - -input: - - members - - concurrency: <% len(ctx(members)) %> - -tasks: - task1: - with: - items: <% ctx(members) %> - concurrency: <% ctx(concurrency) %> - action: core.echo message="<% item() %>, resistance is futile!" - -output: - - items: <% task(task1).result.items.select($.result.stdout) %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-delay.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-delay.yaml deleted file mode 100644 index 58d4e4f679..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-delay.yaml +++ /dev/null @@ -1,16 +0,0 @@ -version: 1.0 - -description: A workflow with a task delay for a with items task. - -input: - - members - - delay - -tasks: - task1: - delay: <% ctx(delay) %> - with: <% ctx(members) %> - action: core.echo message="<% item() %>, resistance is futile!" - -output: - - items: <% task(task1).result.items.select($.result.stdout) %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-failure.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-failure.yaml deleted file mode 100644 index 9299660c5d..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items-failure.yaml +++ /dev/null @@ -1,6 +0,0 @@ -version: 1.0 - -tasks: - task1: - with: <% range(0,10) %> - action: core.local cmd="exit $((<% item() %> % 2))" diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items.yaml deleted file mode 100644 index 5833e27051..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/with-items.yaml +++ /dev/null @@ -1,14 +0,0 @@ -version: 1.0 - -description: A workflow demonstrating with items. - -input: - - members - -tasks: - task1: - with: <% ctx(members) %> - action: core.echo message="<% item() %>, resistance is futile!" - -output: - - items: <% task(task1).result.items.select($.result.stdout) %> diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-data-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-data-functions.yaml deleted file mode 100644 index 9817b34eb9..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-data-functions.yaml +++ /dev/null @@ -1,25 +0,0 @@ -version: 1.0 - -description: A basic workflow testing data related functions. - -vars: - - data_json_str_1: '{"foo": {"bar": "foobar"}}' - - none: null - -tasks: - task1: - action: core.noop - -output: - - data_json_str_1: '<% ctx("data_json_str_1") %>' - - data_json_obj_1: '<% from_json_string(ctx("data_json_str_1")) %>' - - data_yaml_str_1: '<% to_yaml_string(ctx("data_json_obj_1")) %>' - - data_json_obj_2: '<% from_yaml_string(ctx("data_yaml_str_1")) %>' - - data_json_str_2: '<% to_json_string(ctx("data_json_obj_2")) %>' - - data_query_1: '<% jsonpath_query(ctx("data_json_obj_2"), "$.foo.bar") %>' - - data_json_obj_3 : '<% json_parse(ctx("data_json_str_1")) %>' - - data_yaml_str_2: '<% yaml_dump(ctx("data_json_obj_3")) %>' - - data_json_obj_4: '<% yaml_parse(ctx("data_yaml_str_2")) %>' - - data_json_str_3: '<% json_dump(ctx("data_json_obj_4")) %>' - - data_none_str: '<% use_none(ctx("none")) %>' - - data_str: '<% use_none("foobar") %>' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-path-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-path-functions.yaml deleted file mode 100644 index 229a0ed161..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-path-functions.yaml +++ /dev/null @@ -1,11 +0,0 @@ -version: 1.0 - -description: A basic workflow testing path related functions. - -tasks: - task1: - action: core.noop - -output: - - basename: '<% basename("/path/to/some/file.txt") %>' - - dirname: '<% dirname("/path/to/some/file.txt") %>' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-regex-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-regex-functions.yaml deleted file mode 100644 index e65806dd48..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-regex-functions.yaml +++ /dev/null @@ -1,13 +0,0 @@ -version: 1.0 - -description: A basic workflow testing regex related functions. - -tasks: - task1: - action: core.noop - -output: - - match: '<% regex_match("xyz", "x") %>' - - replace: '<% regex_replace("xyz", "x", "wx") %>' - - search: '<% regex_search("xyz", "y") %>' - - substring: '<% regex_substring("I live at 668 Infinite Dr", "([0-9]{3} \w+ (?:Ave|St|Dr))") %>' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-task-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-task-functions.yaml deleted file mode 100644 index e59b50833b..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-task-functions.yaml +++ /dev/null @@ -1,63 +0,0 @@ -version: 1.0 - -description: A basic workflow testing task related functions. - -vars: - - loop: True - -tasks: - # Test basic task function. - task1: - action: core.echo message="foobar" - next: - - publish: - - this_task_no_arg: '<% task().task_id %>' - - this_task_by_name: '<% task("task1").task_id %>' - do: task2 - task2: - action: core.noop - - # Test task function in a cycle. - task3: - action: core.noop - next: - - do: task4 - task4: - action: core.local - input: - cmd: 'echo "<% ctx("loop") %>"; sleep 1' - next: - - when: '<% ctx("loop") = true %>' - publish: - - loop: False - do: task4 - - when: '<% ctx("loop") != true %>' - do: task5 - task5: - action: core.noop - - # Test task function in a reuse (split). - task6: - action: core.noop - next: - - do: task8 - task7: - action: core.noop - next: - - do: task8 - task8: - action: core.noop - next: - - do: task9 - task9: - action: core.echo - input: - message: '<% task("task8").task_id + "__" + str(task("task8").route) %>' - -output: - - this_task_no_arg: '<% ctx("this_task_no_arg") %>' - - this_task_by_name: '<% ctx("this_task_by_name") %>' - - that_task_by_name: '<% task("task1").task_id %>' - - last_task4_result: '<% task("task4").result.stdout %>' - - task9__1__parent: '<% task("task9", route=>1).result.stdout %>' - - task9__2__parent: '<% task("task9", route=>2).result.stdout %>' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-task-nonexistent.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-task-nonexistent.yaml deleted file mode 100644 index c0ceeb2d27..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-task-nonexistent.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: 1.0 - -description: A basic workflow testing task related functions. - -tasks: - task1: - action: core.noop - next: - - publish: - - data: '<% task("task0") %>' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-time-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-time-functions.yaml deleted file mode 100644 index a080c6bc25..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-time-functions.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: 1.0 - -description: A basic workflow testing time related functions. - -tasks: - task1: - action: core.noop - -output: - - time: '<% to_human_time_from_seconds(12345) %>' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-version-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-version-functions.yaml deleted file mode 100644 index cce350c46c..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/workflows/yaql-version-functions.yaml +++ /dev/null @@ -1,20 +0,0 @@ -version: 1.0 - -description: A basic workflow testing version related functions. - -tasks: - task1: - action: core.noop - -output: - - compare_equal: '<% version_compare("0.10.0", "0.10.0") %>' - - compare_more_than: '<% version_compare("0.10.0", "0.10.1") %>' - - compare_less_than: '<% version_compare("0.10.1", "0.10.0") %>' - - equal: '<% version_equal("0.10.0", "0.10.0") %>' - - more_than: '<% version_more_than("0.9.0", "0.10.0") %>' - - less_than: '<% version_less_than("0.10.0", "0.9.0") %>' - - match: '<% version_match("0.10.1", ">0.10.0") %>' - - bump_major: '<% version_bump_major("0.10.0") %>' - - bump_minor: '<% version_bump_minor("0.10.0") %>' - - bump_patch: '<% version_bump_patch("0.10.0") %>' - - strip_patch: '<% version_strip_patch("0.10.0") %>' diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-data-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-data-functions.yaml deleted file mode 100644 index 8bb7aca107..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-data-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: yaql-data-functions -description: A basic workflow testing data related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/yaql-data-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-path-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-path-functions.yaml deleted file mode 100644 index 1a7b839ebe..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-path-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: yaql-path-functions -description: A basic workflow testing path related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/yaql-path-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-regex-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-regex-functions.yaml deleted file mode 100644 index 550dd7ea9e..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-regex-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: yaql-regex-functions -description: A basic workflow testing regex related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/yaql-regex-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-task-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-task-functions.yaml deleted file mode 100644 index 635eb43e2c..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-task-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: yaql-task-functions -description: A basic workflow testing task related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/yaql-task-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-task-nonexistent.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-task-nonexistent.yaml deleted file mode 100644 index 968b040432..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-task-nonexistent.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: yaql-task-nonexistent -description: A basic workflow testing task related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/yaql-task-nonexistent.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-time-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-time-functions.yaml deleted file mode 100644 index e461093a2d..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-time-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: yaql-time-functions -description: A basic workflow testing time related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/yaql-time-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-version-functions.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-version-functions.yaml deleted file mode 100644 index a113401c5b..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/actions/yaql-version-functions.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: yaql-version-functions -description: A basic workflow testing version related functions. -pack: orquesta_tests -runner_type: orquesta -entry_point: workflows/yaql-version-functions.yaml -enabled: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/config.schema.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/config.schema.yaml deleted file mode 100644 index 35f7289000..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/config.schema.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -config_key_a: - description: "Sample config key." - type: "string" - default: "value of config key a" - required: true diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/pack.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/pack.yaml deleted file mode 100644 index 4be84dd0a3..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : orquesta_tests -description : Content pack for orquesta tests -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/orquesta_tests/policies/retry_sequential_on_failure.yaml b/st2tests/st2tests/fixtures/packs/orquesta_tests/policies/retry_sequential_on_failure.yaml deleted file mode 100644 index f728b846b0..0000000000 --- a/st2tests/st2tests/fixtures/packs/orquesta_tests/policies/retry_sequential_on_failure.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -name: sequential.retry_on_failure -pack: orquesta_tests -description: Retry the orquesta_tests.sequential workflow on failure. -enabled: true -resource_ref: orquesta_tests.sequential -policy_type: action.retry -parameters: - retry_on: failure - max_retry_count: 1 diff --git a/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/aliases/alias1.yaml b/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/aliases/alias1.yaml deleted file mode 100644 index ee07a1945b..0000000000 --- a/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/aliases/alias1.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- - name: "alias1" - pack: "pack_name_not_the_same_as_dir_name" - description: "DON'T CARE" - action_ref: "wolfpack.action1" - formats: - - "Lorem ipsum {{param1}} dolor sit {{param2}} amet." - ack: - extra: - color: "red" - result: - extra: - color: "red" diff --git a/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/pack.yaml b/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/pack.yaml deleted file mode 100644 index f313e2613e..0000000000 --- a/st2tests/st2tests/fixtures/packs/pack_dir_name_doesnt_match_ref/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ -ref: pack_name_not_the_same_as_dir_name -name: pack_name_not_the_same_as_dir_name -description: "test pack" -author: Dummy -email: "dev@stackstorm.com" -version: 0.1.1 diff --git a/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/actions/invalid.yaml b/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/actions/invalid.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/pack.yaml b/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/pack.yaml deleted file mode 100644 index f8ff401e75..0000000000 --- a/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : pack_invalid_requirements -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/requirements.txt b/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/requirements.txt deleted file mode 100644 index f43d9068bf..0000000000 --- a/st2tests/st2tests/fixtures/packs/pack_invalid_requirements/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -someinvalidname==invalid.version.specifier diff --git a/st2tests/st2tests/fixtures/packs/runners/__init__.py b/st2tests/st2tests/fixtures/packs/runners/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/runners/test_async_runner/test_async_runner.py b/st2tests/st2tests/fixtures/packs/runners/test_async_runner/test_async_runner.py deleted file mode 100644 index 35e2925a25..0000000000 --- a/st2tests/st2tests/fixtures/packs/runners/test_async_runner/test_async_runner.py +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -try: - import simplejson as json -except: - import json - -from st2common.runners.base import AsyncActionRunner -from st2common.constants.action import (LIVEACTION_STATUS_RUNNING) - -RAISE_PROPERTY = 'raise' - - -def get_runner(): - return AsyncTestRunner() - - -class AsyncTestRunner(AsyncActionRunner): - def __init__(self): - super(AsyncTestRunner, self).__init__(runner_id='1') - self.pre_run_called = False - self.run_called = False - self.post_run_called = False - - def pre_run(self): - self.pre_run_called = True - - def run(self, action_params): - self.run_called = True - result = {} - if self.runner_parameters.get(RAISE_PROPERTY, False): - raise Exception('Raise required.') - else: - result = { - 'ran': True, - 'action_params': action_params - } - - return (LIVEACTION_STATUS_RUNNING, json.dumps(result), {'id': 'foo'}) - - def post_run(self, status, result): - self.post_run_called = True diff --git a/st2tests/st2tests/fixtures/packs/runners/test_polling_async_runner/test_polling_async_runner.py b/st2tests/st2tests/fixtures/packs/runners/test_polling_async_runner/test_polling_async_runner.py deleted file mode 100644 index 19dc1874a6..0000000000 --- a/st2tests/st2tests/fixtures/packs/runners/test_polling_async_runner/test_polling_async_runner.py +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -try: - import simplejson as json -except: - import json - -from st2common.runners.base import PollingAsyncActionRunner -from st2common.constants.action import (LIVEACTION_STATUS_RUNNING) - -RAISE_PROPERTY = 'raise' - - -def get_runner(): - return PollingAsyncTestRunner() - - -class PollingAsyncTestRunner(PollingAsyncActionRunner): - def __init__(self): - super(PollingAsyncTestRunner, self).__init__(runner_id='1') - self.pre_run_called = False - self.run_called = False - self.post_run_called = False - - def pre_run(self): - self.pre_run_called = True - - def run(self, action_params): - self.run_called = True - result = {} - if self.runner_parameters.get(RAISE_PROPERTY, False): - raise Exception('Raise required.') - else: - result = { - 'ran': True, - 'action_params': action_params - } - - return (LIVEACTION_STATUS_RUNNING, json.dumps(result), {'id': 'foo'}) - - def post_run(self, status, result): - self.post_run_called = True diff --git a/st2tests/st2tests/fixtures/packs/runners/test_querymodule/__init__.py b/st2tests/st2tests/fixtures/packs/runners/test_querymodule/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/runners/test_querymodule/callback/__init__.py b/st2tests/st2tests/fixtures/packs/runners/test_querymodule/callback/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/runners/test_querymodule/callback/test_querymodule.py b/st2tests/st2tests/fixtures/packs/runners/test_querymodule/callback/test_querymodule.py deleted file mode 100644 index f0b2975ec3..0000000000 --- a/st2tests/st2tests/fixtures/packs/runners/test_querymodule/callback/test_querymodule.py +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -from st2common import log as logging -from st2common.callback import base as callback - - -LOG = logging.getLogger(__name__) - - -def get_instance(): - return MockRunnerCallbackHandler - - -class MockRunnerCallbackHandler(callback.AsyncActionExecutionCallbackHandler): - - @classmethod - def callback(cls, url, context, status, result): - pass diff --git a/st2tests/st2tests/fixtures/packs/runners/test_querymodule/query/__init__.py b/st2tests/st2tests/fixtures/packs/runners/test_querymodule/query/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs/runners/test_querymodule/query/test_querymodule.py b/st2tests/st2tests/fixtures/packs/runners/test_querymodule/query/test_querymodule.py deleted file mode 100644 index 73cea351ef..0000000000 --- a/st2tests/st2tests/fixtures/packs/runners/test_querymodule/query/test_querymodule.py +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from __future__ import absolute_import -from st2common.query.base import Querier -from st2common.constants.action import LIVEACTION_STATUS_SUCCEEDED - - -class TestQuerier(Querier): - def __init__(self, *args, **kwargs): - super(TestQuerier, self).__init__(*args, **kwargs) - - def query(self, execution_id, query_context, last_query_time=None): - return (LIVEACTION_STATUS_SUCCEEDED, {'called_with': {execution_id: query_context}}) - - -def get_instance(): - return TestQuerier() diff --git a/st2tests/st2tests/fixtures/packs/test_library_dependencies/actions/get_library_path.py b/st2tests/st2tests/fixtures/packs/test_library_dependencies/actions/get_library_path.py deleted file mode 100644 index aa03157eb8..0000000000 --- a/st2tests/st2tests/fixtures/packs/test_library_dependencies/actions/get_library_path.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2019 Extreme Networks, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -from st2actions.runners.pythonrunner import Action - -__all__ = [ - 'GetLibraryPathAction' -] - - -class GetLibraryPathAction(Action): - def run(self, module): - return __import__(module).__file__ diff --git a/st2tests/st2tests/fixtures/packs/test_library_dependencies/pack.yaml b/st2tests/st2tests/fixtures/packs/test_library_dependencies/pack.yaml deleted file mode 100644 index 8d677ed96e..0000000000 --- a/st2tests/st2tests/fixtures/packs/test_library_dependencies/pack.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -name: test_library_dependencies -description: A test pack to check library dependencies when an action was called. -keywords: - - test -version: 0.1.0 -author: st2-dev -email: info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs/test_library_dependencies/requirements.txt b/st2tests/st2tests/fixtures/packs/test_library_dependencies/requirements.txt deleted file mode 100644 index ffe2fce498..0000000000 --- a/st2tests/st2tests/fixtures/packs/test_library_dependencies/requirements.txt +++ /dev/null @@ -1 +0,0 @@ -six diff --git a/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/actions/invalid.yaml b/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/actions/invalid.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/pack.yaml b/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/pack.yaml deleted file mode 100644 index ddad08b20d..0000000000 --- a/st2tests/st2tests/fixtures/packs_1/dummy_pack_4/pack.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -name : dummy_pack_4 -description : dummy pack -version : 0.1.0 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/config.schema.yaml b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/config.schema.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/pack.yaml b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/pack.yaml deleted file mode 100644 index 8f5afe118b..0000000000 --- a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_17/pack.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -ref: dummy_pack_17 -name : Dummy Pack 17 Wooo -description : dummy pack -version : 0.1.2 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/config.schema.yaml b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/config.schema.yaml deleted file mode 100644 index afa681d327..0000000000 --- a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/config.schema.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - api_key: - description: "API key" - type: "string" - secret: true - required: true - invalid: "value" diff --git a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/pack.yaml b/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/pack.yaml deleted file mode 100644 index b1de7e4e64..0000000000 --- a/st2tests/st2tests/fixtures/packs_invalid/dummy_pack_18/pack.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -ref: dummy_pack_18 -name : Dummy Pack 18 Wooo -description : dummy pack -version : 0.1.2 -author : st2-dev -email : info@stackstorm.com diff --git a/st2tests/st2tests/fixtures/rbac/assignments/user1.yaml b/st2tests/st2tests/fixtures/rbac/assignments/user1.yaml deleted file mode 100644 index 2820386a1b..0000000000 --- a/st2tests/st2tests/fixtures/rbac/assignments/user1.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- - username: "user1" - roles: - - "role_one" - - "role_two" diff --git a/st2tests/st2tests/fixtures/rbac/assignments/user2.yaml b/st2tests/st2tests/fixtures/rbac/assignments/user2.yaml deleted file mode 100644 index d91acc96db..0000000000 --- a/st2tests/st2tests/fixtures/rbac/assignments/user2.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- - username: "user2" - description: "Assignment description" - roles: - - "role_two" diff --git a/st2tests/st2tests/fixtures/rbac/assignments/user3.yaml b/st2tests/st2tests/fixtures/rbac/assignments/user3.yaml deleted file mode 100644 index 700d9dc752..0000000000 --- a/st2tests/st2tests/fixtures/rbac/assignments/user3.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- - username: "user3" - description: "Observer assignments" - roles: - - "observer" diff --git a/st2tests/st2tests/fixtures/rbac/assignments/user4.yaml b/st2tests/st2tests/fixtures/rbac/assignments/user4.yaml deleted file mode 100644 index fc60cb5aa7..0000000000 --- a/st2tests/st2tests/fixtures/rbac/assignments/user4.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- - username: "user4" - roles: - - "role_one" - - "observer" diff --git a/st2tests/st2tests/fixtures/rbac/assignments/user_disabled.yaml b/st2tests/st2tests/fixtures/rbac/assignments/user_disabled.yaml deleted file mode 100644 index 5448b42b12..0000000000 --- a/st2tests/st2tests/fixtures/rbac/assignments/user_disabled.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- - username: "user_disabled" - enabled: false - roles: - - "role_one" - - "observer" diff --git a/st2tests/st2tests/fixtures/rbac/assignments/user_sample.yaml b/st2tests/st2tests/fixtures/rbac/assignments/user_sample.yaml deleted file mode 100644 index 2628e2fe9e..0000000000 --- a/st2tests/st2tests/fixtures/rbac/assignments/user_sample.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - username: "stackstorm_user" - description: "User role assignment file which servers for demonstration purposes" - enabled: false - roles: - - "observer" - - "my_custom_role" diff --git a/st2tests/st2tests/fixtures/rbac/mappings/mapping_one.yaml b/st2tests/st2tests/fixtures/rbac/mappings/mapping_one.yaml deleted file mode 100644 index 2d32c2b76e..0000000000 --- a/st2tests/st2tests/fixtures/rbac/mappings/mapping_one.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- - group: "some ldap group" - roles: - - "pack_admin" diff --git a/st2tests/st2tests/fixtures/rbac/mappings/mapping_three.yaml b/st2tests/st2tests/fixtures/rbac/mappings/mapping_three.yaml deleted file mode 100644 index 2f66a09acd..0000000000 --- a/st2tests/st2tests/fixtures/rbac/mappings/mapping_three.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- - group: "CN=qa,OU=groups,DC=stackstorm,DC=net" - description: "Grant 1 roles to qa stormers group members" - enabled: false - roles: - - "observer" diff --git a/st2tests/st2tests/fixtures/rbac/mappings/mapping_two.yaml b/st2tests/st2tests/fixtures/rbac/mappings/mapping_two.yaml deleted file mode 100644 index 47e3ef95b2..0000000000 --- a/st2tests/st2tests/fixtures/rbac/mappings/mapping_two.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - group: "CN=stormers,OU=groups,DC=stackstorm,DC=net" - description: "Grant 3 roles to stormers group members" - enabled: false - roles: - - "role_one" - - "role_two" - - "role_three" diff --git a/st2tests/st2tests/fixtures/rbac/mappings/stormers.yaml b/st2tests/st2tests/fixtures/rbac/mappings/stormers.yaml deleted file mode 100644 index fa78345088..0000000000 --- a/st2tests/st2tests/fixtures/rbac/mappings/stormers.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- - group: "CN=stormers,OU=groups,DC=stackstorm,DC=net" - description: "Automatically grant admin role to all stormers group members." - roles: - - "admin" diff --git a/st2tests/st2tests/fixtures/rbac/mappings/testers.yaml b/st2tests/st2tests/fixtures/rbac/mappings/testers.yaml deleted file mode 100644 index ab4f289c6b..0000000000 --- a/st2tests/st2tests/fixtures/rbac/mappings/testers.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- - group: "CN=testers,OU=groups,DC=stackstorm,DC=net" - description: "Automatically grant observer and qa_admin role to all testers group members." - roles: - - "observer" - - "qa_admin" diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_disabled.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_disabled.yaml deleted file mode 100644 index ea58b840c3..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_disabled.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- - name: "role_disabled" - description: "Role which is disabled" - enabled: false diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_five.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_five.yaml deleted file mode 100644 index dec9866848..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_five.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "role_five" - description: "Role which grants execute permission to my_action_1" - permission_grants: - - - resource_uid: "action:dummy_pack_1:my_action_1" - permission_types: - - "action_execute" diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_one.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_one.yaml deleted file mode 100644 index c9b4b52dc0..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_one.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "role_one" - description: "Role which grants all the pack permissions on pack dummy_pack_1" - permission_grants: - - - resource_uid: "pack:dummy_pack_1" - permission_types: - - "pack_all" diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_sample.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_sample.yaml deleted file mode 100644 index e9d57ebf20..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_sample.yaml +++ /dev/null @@ -1,77 +0,0 @@ ---- - name: "sample" - description: "Role which contains many different permission grants and serves for demonstration purposes" - enabled: false - permission_grants: - - - # Here we grant "pack_all" to "dummy_pack_1" pack which means user can perform all the - # operations on this pack. - resource_uid: "pack:dummy_pack_1" - permission_types: - - "pack_all" - - - # Here we grant "action_view" and "rule_view" to "dummy_pack_1" pack which means user - # can view (list) all the actions and rules inside this pack. - resource_uid: "pack:dummy_pack_1" - permission_types: - - "action_view" - - "rule_view" - - - # Here we grant "rule_create" to "dummy_pack_1" pack which means user can create new - # rules inside this pack. - # Note: To be able to create a rule user also needs to have an "action_execute" permission - # on the action used inside the rule. In case the rule trigger type is a webhook, user also - # needs to have "webhook_create" permission on the corresponding webhook. - resource_uid: "pack:dummy_pack_1" - permission_types: - - "rule_create" - - - # Here we grant "webhook_create" which allows user to create a webhook with a name of - # "my_sample_webhook". - # Keep in mind that webhooks have no parent resource so the permission grant is - # directly on the webhook you want to allow a user to create. - resource_uid: "webhook:my_sample_webhook" - permission_types: - - "webhook_create" - - - # Here we grant "action_execute" to "dummy_pack_2" which means user can execute (run) - # all the actions inside this pack. Execute permission also grants "execution_re_run" - # and "execution_stop" which means user can also re-run and stop (cancel) all the - # executions which are triggered for the actions which belong to this pack. - resource_uid: "pack:dummy_pack_2" - permission_types: - - "action_execute" - - - # Here we grant "action_all" to action "my_action_1" inside "dummy_pack_2" which means - # user can perform all the operations (view, modify, execute and delete) on the - # specified action. - resource_uid: "action:dummy_pack_2:my_action_1" - permission_types: - - "action_all" - - - # Here we grant "action_execute" to action "my_action_2" inside "dummy_pack_2" allowing - # user to execute (run) this particular action. - resource_uid: "action:dummy_pack_2:my_action_2" - permission_types: - - "action_execute" - - - # Here we grant "rule_view" and "rule_modify" to rule "my_rule_1" inside "dummy_pack_2" allowing - # user to view and modify (but not delete) this particular rule. - resource_uid: "rule:dummy_pack_2:my_rule_1" - permission_types: - - "rule_view" - - "rule_modify" - - - # Here we grant "webhook_send" to a webhook named "st2" (that's a generic webhook which exists - # by default in every installation) allowing user to POST triggers to this particular webhook. - # Keep in mind that the user needs to have "webhook_create" permissions on a particular webhook - # if you want to allow user to create / register a new webhook via rule. - resource_uid: "webhook:st2" - permission_types: - - "webhook_send" - - - # Here we grant "action_list" and "rule_list" allowing user to view / list all the actions and - # rules - permission_types: - - "action_list" - - "rule_list" diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_seven.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_seven.yaml deleted file mode 100644 index 64c2b0793d..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_seven.yaml +++ /dev/null @@ -1,16 +0,0 @@ ---- - name: "role_seven" - description: "Role which grants all the available global permissions" - permission_grants: - - - permission_types: - - "pack_list" - - "action_list" - - "pack_create" - - "pack_install" - - "pack_uninstall" - - "pack_register" - - "pack_search" - - "pack_views_index_health" - - "action_alias_match" - - "action_alias_help" diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_six.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_six.yaml deleted file mode 100644 index 9f1ae37b7e..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_six.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- - name: "role_six" - description: "Role which grants execute permission to my_action_2" - permission_grants: - - - resource_uid: "action:dummy_pack_1:my_action_2" - permission_types: - - "action_execute" diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_three.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_three.yaml deleted file mode 100644 index f4f8d0135c..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_three.yaml +++ /dev/null @@ -1,22 +0,0 @@ ---- - name: "role_three" - description: "Role which grants all the pack permissions on pack dummy_pack_1 and some permissions on dummy_pack_2" - permission_grants: - - - resource_uid: "pack:dummy_pack_1" - permission_types: - - "pack_all" - - - resource_uid: "pack:dummy_pack_2" - permission_types: - - "action_view" - - "action_create" - - "rule_view" - - - resource_uid: "action:dummy_pack_2:my_action" - permission_types: - - "action_execute" - - - permission_types: - - "action_list" - - "rule_list" diff --git a/st2tests/st2tests/fixtures/rbac/roles/role_two.yaml b/st2tests/st2tests/fixtures/rbac/roles/role_two.yaml deleted file mode 100644 index 847012cb62..0000000000 --- a/st2tests/st2tests/fixtures/rbac/roles/role_two.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- - name: "role_two" - description: "Role which grants action permissions on action dummy_pack_1.my_action" - permission_grants: - - - resource_uid: "action:dummy_pack_1:my_action" - permission_types: - - "action_view" - - "action_create" - - "action_modify" - - "action_delete" - - "action_execute" diff --git a/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_empty.yaml b/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_empty.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_foo1.yaml b/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_foo1.yaml deleted file mode 100644 index 6ce682f977..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_foo1.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- - username: "userfoo" - roles: - - "observer" diff --git a/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_foo2.yaml b/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_foo2.yaml deleted file mode 100644 index 6ce682f977..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/assignments/user_foo2.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- - username: "userfoo" - roles: - - "observer" diff --git a/st2tests/st2tests/fixtures/rbac_invalid/mappings/empty.yaml b/st2tests/st2tests/fixtures/rbac_invalid/mappings/empty.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/rbac_invalid/mappings/mapping_one_missing_roles.yaml b/st2tests/st2tests/fixtures/rbac_invalid/mappings/mapping_one_missing_roles.yaml deleted file mode 100644 index cc7def567d..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/mappings/mapping_one_missing_roles.yaml +++ /dev/null @@ -1,3 +0,0 @@ ---- - # Mapping which is missing mandatory "roles" attribute - group: "some group" diff --git a/st2tests/st2tests/fixtures/rbac_invalid/mappings/mapping_two_missing_group.yaml b/st2tests/st2tests/fixtures/rbac_invalid/mappings/mapping_two_missing_group.yaml deleted file mode 100644 index ea17c56f2d..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/mappings/mapping_two_missing_group.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- - # Mapping which is missing mandatory "group" attribute - roles: - - "role_one" diff --git a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_empty.yaml b/st2tests/st2tests/fixtures/rbac_invalid/roles/role_empty.yaml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_four.yaml b/st2tests/st2tests/fixtures/rbac_invalid/roles/role_four.yaml deleted file mode 100644 index 8c57bec1ad..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_four.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- - name: "role_four_invalid_permission_type_for_no_resource_id" - permission_grants: - - - permission_types: - - "action_create" # Invalid permision, can only be used in combination with resource_uid diff --git a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_one.yaml b/st2tests/st2tests/fixtures/rbac_invalid/roles/role_one.yaml deleted file mode 100644 index f7b3a948ad..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_one.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - name: "role_one_invalid_resource_permission_type" - permission_grants: - - - resource_uid: "action:dummy_pack_1:action_1" - permission_types: - - "rule_all" # Invalid permission granted on action resource diff --git a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_three1.yaml b/st2tests/st2tests/fixtures/rbac_invalid/roles/role_three1.yaml deleted file mode 100644 index b238802192..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_three1.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - name: "role_three_name_conflict" - permission_grants: - - - resource_uid: "action:dummy_pack_1:action_1" - permission_types: - - "action_execute" diff --git a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_three2.yaml b/st2tests/st2tests/fixtures/rbac_invalid/roles/role_three2.yaml deleted file mode 100644 index b238802192..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_three2.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - name: "role_three_name_conflict" - permission_grants: - - - resource_uid: "action:dummy_pack_1:action_1" - permission_types: - - "action_execute" diff --git a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_two.yaml b/st2tests/st2tests/fixtures/rbac_invalid/roles/role_two.yaml deleted file mode 100644 index e9640401c3..0000000000 --- a/st2tests/st2tests/fixtures/rbac_invalid/roles/role_two.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- - name: "role_two_invalid_permission_type" - permission_grants: - - - resource_uid: "action:dummy_pack_1:action_1" - permission_types: - - "action_foo_bar_invalid" # Invalid permision which doesnt exist diff --git a/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement1.yaml b/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement1.yaml deleted file mode 100644 index d514a340fe..0000000000 --- a/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - enforced_at: "2015-12-01T21:49:02.418822Z" - execution_id: "565e15ce32ed350857dfa626" - id: "565e15ce32ed350857dfa627" - rule: - id: "565e15c032ed35086c54f331" - ref: "git.st2.webhook.github.pulls.merge.sample" - uid: "rule:git:st2.webhook.github.pulls.merge.sample" - trigger_instance_id: "565e15ce32ed350857dfa623" diff --git a/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement2.yaml b/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement2.yaml deleted file mode 100644 index 0f1379cae4..0000000000 --- a/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement2.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - enforced_at: "2015-12-01T21:49:01.245671Z" - execution_id: "565e15cd32ed350857dfa620" - id: "565e15cd32ed350857dfa621" - rule: - id: "565e15c032ed35086c54f332" - ref: "wolfpack.golden_rule" - uid: "rule:wolfpack:st2.webhook.github.pulls.merge.sample" - trigger_instance_id: "565e15cd32ed350857dfa61d" diff --git a/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement3.yaml b/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement3.yaml deleted file mode 100644 index 7b594ef4be..0000000000 --- a/st2tests/st2tests/fixtures/rule_enforcements/enforcements/enforcement3.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - enforced_at: "2015-12-01T21:48:58.830648Z" - execution_id: "565e15ca32ed350857dfa60e" - id: "565e15ca32ed350857dfa60f" - rule: - id: "565e15c032ed35086c54f331" - ref: "git.st2.webhook.github.pulls.merge.sample" - uid: "rule:git:st2.webhook.github.pulls.merge.sample" - trigger_instance_id: "565e15ca32ed350857dfa60b" diff --git a/st2tests/st2tests/fixtures/rule_enforcements/executions/execution1.yaml b/st2tests/st2tests/fixtures/rule_enforcements/executions/execution1.yaml deleted file mode 100644 index b76bd99d57..0000000000 --- a/st2tests/st2tests/fixtures/rule_enforcements/executions/execution1.yaml +++ /dev/null @@ -1,40 +0,0 @@ ---- -action: - enabled: true - entry_point: '' - id: 54c6bb640640fd5211edef0c - uid: action:core:local - ref: core.local - name: local - pack: core - parameters: - sudo: - immutable: true - runner_type: run-local -end_timestamp: '2014-09-01T00:00:05.000000Z' -id: 565e15ce32ed350857dfa626 -liveaction: - action: core.someworkflow - callback: {} - context: - user: system - end_timestamp: '2014-09-01T00:00:05.000000Z' - id: 54c6b6d60640fd4f5354e74a - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: scheduled -parameters: - cmd: echo bar -result: {} -runner: - description: A runner for launching linear action chains. - enabled: true - id: 54c6bb640640fd5211edef0b - name: action-chain - runner_module: action_chain_runner - runner_parameters: - foo: - type: "string" -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: scheduled diff --git a/st2tests/st2tests/fixtures/rule_enforcements/triggerinstances/trigger_instance_1.yaml b/st2tests/st2tests/fixtures/rule_enforcements/triggerinstances/trigger_instance_1.yaml deleted file mode 100644 index 9b81e8312e..0000000000 --- a/st2tests/st2tests/fixtures/rule_enforcements/triggerinstances/trigger_instance_1.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -id: 565e15ce32ed350857dfa623 -occurrence_time: '2014-09-01T00:00:01.000000Z' -payload: - foo: bar - name: Joe -trigger: dummy_pack_1.46f67652-20cd-4bab-94e2-4615baa846d0 -status: processed diff --git a/st2tests/st2tests/fixtures/ssl_certs/README.md b/st2tests/st2tests/fixtures/ssl_certs/README.md deleted file mode 100644 index d54f4f1e6b..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# SSL certificates Used for Testing - -This directory contains self signed server and client certificates which are -used by the tests. - -Those certificates are issues and signed by a custom CA which is contained in the ca/ directory. - -Certificate passphrase is ``MySecretPassword``. - -NOTE: Those cerificates will expire on ``notAfter=Feb 11 15:58:38 2024 GMT``. diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/ca_certificate_bundle.cer b/st2tests/st2tests/fixtures/ssl_certs/ca/ca_certificate_bundle.cer deleted file mode 100644 index 94557aa645..0000000000 Binary files a/st2tests/st2tests/fixtures/ssl_certs/ca/ca_certificate_bundle.cer and /dev/null differ diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/ca_certificate_bundle.pem b/st2tests/st2tests/fixtures/ssl_certs/ca/ca_certificate_bundle.pem deleted file mode 100644 index a194ec97df..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/ca_certificate_bundle.pem +++ /dev/null @@ -1,17 +0,0 @@ ------BEGIN CERTIFICATE----- -MIICxjCCAa6gAwIBAgIJALjUApUWLemKMA0GCSqGSIb3DQEBCwUAMBMxETAPBgNV -BAMMCE15VGVzdENBMB4XDTE5MDIxMjE1NTcwM1oXDTI0MDIxMTE1NTcwM1owEzER -MA8GA1UEAwwITXlUZXN0Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB -AQDxVR7nSFKXUMET0WTtVNjsgD1HDdvIZcDyPGFEMNhtftPv4RmkxeFnKNumHbIu -s2eox6MCT7wK9CKG+38szyMMDkCObYkGCKzZG2yejkjs6Kv74hvML8p+NIz3Cxch -WEuD6ubnSoKl35cVt4/LUTM/IFG36H6f7Q47NYYsWIBMaXUvY5Wbg5SqxD4LMKkx -uDFzITyrA38xvwb96mTkXT/OJEyswAAeWjjoKHWdirknhiFvKXi1T9jdmJTwBnGz -lFUS1Aavkj/Og7el9JjoL6S83mclDPbcD68/kWUliHHr8l1wfAP/oObOm7wpXViU -64nFnHP0/WtTM50urnWjFYjVAgMBAAGjHTAbMAwGA1UdEwQFMAMBAf8wCwYDVR0P -BAQDAgEGMA0GCSqGSIb3DQEBCwUAA4IBAQDwqchOuO85hfRb25LMeB9T0iEpwQdY -cKCD1ASg42Sp/mzlscPmODxILnvm3BItEKbq6mrG2s9i42FRmXu+6D2Bm7k1jDnh -FW/hI5KG5ULQWfkFqgUAWyeSKTF7oK9FRAfROY3K9E/MXxsO10e+ibgZPZjY8RTC -eUihRw3LvIFj3mY3OQ+sBQ4OTh/nPd66trzAJee15ATC0nK0YJTVhLv576DmxOyb -yuESg2l8qvjXI0C/W+MyLCO4sH1hhg+5pjEwiXH3Z1Sk59l7qag21kp53xhvjL7W -+zisXvuZC08wfCPc3RJ6ThRb8MZZKeFpOffVVHBtgv9Aes7IOyVG15XA ------END CERTIFICATE----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/certs/01.pem b/st2tests/st2tests/fixtures/ssl_certs/ca/certs/01.pem deleted file mode 100644 index 17c4490f8b..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/certs/01.pem +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIC4jCCAcqgAwIBAgIBATANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhNeVRl -c3RDQTAeFw0xOTAyMTIxNTU4MDdaFw0yNDAyMTExNTU4MDdaMCUxEjAQBgNVBAMM -CWxvY2FsaG9zdDEPMA0GA1UECgwGc2VydmVyMIIBIjANBgkqhkiG9w0BAQEFAAOC -AQ8AMIIBCgKCAQEAuLLUdbHqOsUiRnkv2S0fiadrqwfdgaZgVImvMyorVYzoJ5W7 -anJSyWPnV/ly/rjL7toiPhBcVgDuCGkf7CjPN4E5tdxI9ylYk/UHEtMG1ll6kDiF -8hWfHDdktdqnQvuLkUMAA5xgIFfX+UMBuTZk7VowrjnOuljN5eVN89y2fYXXtqC1 -91HilG9VwLewYKQd/Ishb4p2WfxiBIVO+cQpnYB6quvrEYC1XPcRbJuXdrc7KcYn -dWdoj6M7aT1zOnHJrdLtv7F7dkYgV9vqwN7w3ud7uNaEbsHvWz0i+6qjX/uE755N -ZoJ8O8Dx5ug/1lxplnXlfmadIibYPBJatRsSiwIDAQABoy8wLTAJBgNVHRMEAjAA -MAsGA1UdDwQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATANBgkqhkiG9w0BAQsF -AAOCAQEAnhmIUhZwweCqdzGNeoNXXkuXyBf2fFvajHlG2a2pZ8r6/fyQbbJgzo04 -ajjWoUoSW+XB+AfJvT6CTZuMWsGkxYvFAxOoXtLpW0OKqEh55q8diMSb/gOxxwND -vHVb1+VjZBhzxxt0TbXeFngMnBSgVhipKQe49pe0H+rDDYptultl81n2zFLzBKUe -h927CnTJ7cpZe4Di2tMJfVsDJB6piuwPu6GnWhT38Q12I+ryL2xbihIw1B4qDtq6 -nq4lYGnpJCNNXg5JR5S1HeYiQtP0sHgU6SvpgMtzDdbCJ0Nu7EpR5J3ChdQWooGf -uTOThX41qx1p47ho4TA9Ac4K/GRcLg== ------END CERTIFICATE----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/certs/02.pem b/st2tests/st2tests/fixtures/ssl_certs/ca/certs/02.pem deleted file mode 100644 index a10ae91143..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/certs/02.pem +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIC4jCCAcqgAwIBAgIBAjANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhNeVRl -c3RDQTAeFw0xOTAyMTIxNTU4MzhaFw0yNDAyMTExNTU4MzhaMCUxEjAQBgNVBAMM -CWxvY2FsaG9zdDEPMA0GA1UECgwGY2xpZW50MIIBIjANBgkqhkiG9w0BAQEFAAOC -AQ8AMIIBCgKCAQEA4HxkZw50MGiWYmlrwJBHAjwsD7lfft9gHrRAeP8iEI0oLIJm -/MmUUIyA2DSDGJCIsP+grkmZawLmu7D0vJIVIUo+OBNUQ/3mACWH9z15AW5s/Ig/ -FZErhBg3RFZS+hXVT639U94uKne+mjh/G4Ej7OYHhBywn+EKakIJuUTs10sF0kW/ -4h1Gx9+Ph3tfYSagNdMDXXft0Knn/X8vMwLF5Eg8ZHKnty30wJRr4r2bqTeSCPS5 -k3bfpcxOAnaSpTDuIoxIp7w9pjwLVAVWvbjqDlU5DrPxpsn29i8STNpJ7My7+12/ -C/QJDrlCJCav1ma04G2QZbyAri3ax/MCeonFsQIDAQABoy8wLTAJBgNVHRMEAjAA -MAsGA1UdDwQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDAjANBgkqhkiG9w0BAQsF -AAOCAQEAI+PgF1gsQckqTh71CxqKimM0h5pIGh6H09bSa+9LFLFa60E1zR8rmygw -AD+u6sI5foFbSdUiIDJBmHizvwMmIptGSRw0Znzi/jjbjBmZSNLnk+Vird5grjF4 -Pf7Vkgi/NKzXTS3Y2TUUhk5OZZ6OmszHZ0eGJlUcz6Qa13hcalVHc3FmikeAu5/h -XQuthOQDXJBabgexQ+1K6ft6DDImdQCFcZhYXSb30cRHS9lqIVZbI7Rtk6UqwkvE -hYU0g8BVeVBpL7xYBqfrpdy+vBb28rrLT6Dvgf0giQ3F07S+RAivDWjM53Wyhb7T -6o3h8l49IkcEW1mns9Mj2bPNFSOhSA== ------END CERTIFICATE----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt b/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt deleted file mode 100644 index ad058db53d..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt +++ /dev/null @@ -1,2 +0,0 @@ -V 240211155807Z 01 unknown /CN=localhost/O=server -V 240211155838Z 02 unknown /CN=localhost/O=client diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.attr b/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.attr deleted file mode 100644 index 8f7e63a347..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.attr +++ /dev/null @@ -1 +0,0 @@ -unique_subject = yes diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.attr.old b/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.attr.old deleted file mode 100644 index 8f7e63a347..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.attr.old +++ /dev/null @@ -1 +0,0 @@ -unique_subject = yes diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.old b/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.old deleted file mode 100644 index 970c83b368..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/index.txt.old +++ /dev/null @@ -1 +0,0 @@ -V 240211155807Z 01 unknown /CN=localhost/O=server diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/openssl.cnf b/st2tests/st2tests/fixtures/ssl_certs/ca/openssl.cnf deleted file mode 100644 index a8348fbf15..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/openssl.cnf +++ /dev/null @@ -1,54 +0,0 @@ -[ ca ] -default_ca = testca - -[ testca ] -dir = . -certificate = $dir/ca_certificate_bundle.pem -database = $dir/index.txt -new_certs_dir = $dir/certs -private_key = $dir/private/ca_private_key.pem -serial = $dir/serial - -default_crl_days = 7 -default_days = 1825 -default_md = sha256 - -policy = testca_policy -x509_extensions = certificate_extensions - -[ testca_policy ] -commonName = supplied -stateOrProvinceName = optional -countryName = optional -emailAddress = optional -organizationName = optional -organizationalUnitName = optional -domainComponent = optional - -[ certificate_extensions ] -basicConstraints = CA:false - -[ req ] -default_bits = 2048 -default_keyfile = ./private/ca_private_key.pem -default_md = sha256 -prompt = yes -distinguished_name = root_ca_distinguished_name -x509_extensions = root_ca_extensions - -[ root_ca_distinguished_name ] -commonName = hostname - -[ root_ca_extensions ] -basicConstraints = CA:true -keyUsage = keyCertSign, cRLSign - -[ client_ca_extensions ] -basicConstraints = CA:false -keyUsage = digitalSignature,keyEncipherment -extendedKeyUsage = 1.3.6.1.5.5.7.3.2 - -[ server_ca_extensions ] -basicConstraints = CA:false -keyUsage = digitalSignature,keyEncipherment -extendedKeyUsage = 1.3.6.1.5.5.7.3.1 diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/private/ca_private_key.pem b/st2tests/st2tests/fixtures/ssl_certs/ca/private/ca_private_key.pem deleted file mode 100644 index e54d4958cd..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/private/ca_private_key.pem +++ /dev/null @@ -1,28 +0,0 @@ ------BEGIN PRIVATE KEY----- -MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDxVR7nSFKXUMET -0WTtVNjsgD1HDdvIZcDyPGFEMNhtftPv4RmkxeFnKNumHbIus2eox6MCT7wK9CKG -+38szyMMDkCObYkGCKzZG2yejkjs6Kv74hvML8p+NIz3CxchWEuD6ubnSoKl35cV -t4/LUTM/IFG36H6f7Q47NYYsWIBMaXUvY5Wbg5SqxD4LMKkxuDFzITyrA38xvwb9 -6mTkXT/OJEyswAAeWjjoKHWdirknhiFvKXi1T9jdmJTwBnGzlFUS1Aavkj/Og7el -9JjoL6S83mclDPbcD68/kWUliHHr8l1wfAP/oObOm7wpXViU64nFnHP0/WtTM50u -rnWjFYjVAgMBAAECggEBAN14Pz8CyQCiFD5KqHOArP4FBbciSbMTZkknDiAVL1j0 -zixSiEUFb8BK55//mphu/c8PPlINuETZHKKBRIlrof8bSTUr4laOOYmYOEsdymDX -eZVTQC1XIl5FfaPtIpHwRITQWoyhfVoZ4b4FUcnFP+FLmJLMov/C/Y9qpDIoGb2E -NbcMEnIz0i573+Ci1k+OLAdthbCigUvwvJ1iLv5m3s1XrRvIu6TDsERXdB/02pFu -XXNgyidR6XVr/MVov898PB5B0eJbX6Iir7avzpS1V/q5kq2pgFFZk8Vfhvw2k07C -l89peWIo+1h8djem/1n1FLD7aRKzFTb6HULS4uoxCDUCgYEA/o23BbC1/LRTq0IW -7I8BqTCe70cnuvWCUtWiTNWzX3INK4Hsxdeztfiu/W5dTiDndZ4CzMAoXt/rxXkw -Dc449FB1wVKCKShZRyeyyboOCpfzW1040JhjmGU4ZBn6T4U2cpaJyLGtcfkFZSeq -2nOiUntVJcPq6vWF2sdJysGSWucCgYEA8rQsf5RaHM6yRFpKrbb+SC8PAEqAZF9N -XZvl64GLHi9PSK/n68iZw1c7j4VjnCC89PH0flpQfkngrffLiy2pi+JdYo7qBKeT -3IFOiQAvylpxCiQMvFqsxz9mhoj3jJdyNGvKXJeQ5PuxRatZOHwpMP+tpQ7uF2zm -DzReoxqZ4uMCgYB1XNFthjPh9yI8a5Q2LRkO8KPWnm/q+xbDKkxSMJUrBGKeFKEd -9n2dALNtlVzfkLwmtluEG3SBiawit+U3+ES6H/6qy2fHohrHe74q0+V1bOl+zlRL -mHcS5FhDjtaho0GfQ1jzdzgIvE+Ie+mCHp5QeRyg9NtyyRCV9hxHp0fbMQKBgQDr -Cqn9c8JBG7twjrC7wvhHF6vDcGMe0VyvRwdHJ9F+jfqOPiywHzkqABTiTR/GV74m -yRsqMnS5mPpKACvSwYnsunANvrHLiC6d4WwZKWEe6q+GTps23eltnGzB5Ws3cINd -WPZE7VOZLlbjTam+FiAeH74el3LkpMW3+9OayWw2WQKBgQD0S0L5OoRjVY6SRPe1 -oKqTwSlay2uzqoAhGQqGeb4SaBaImEfLMQzYQpJ5JWAnAzwHhA7x7iDm3QzB93Fg -id1rdsbfzdlZC40T0IslTYLT/mawiOcAHupDuszgnn1ycFV35915zP9Ijzqaojsn -DRI3H6XpQSJyHUNZo1pCZBXyhg== ------END PRIVATE KEY----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/serial b/st2tests/st2tests/fixtures/ssl_certs/ca/serial deleted file mode 100644 index 75016ea362..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/serial +++ /dev/null @@ -1 +0,0 @@ -03 diff --git a/st2tests/st2tests/fixtures/ssl_certs/ca/serial.old b/st2tests/st2tests/fixtures/ssl_certs/ca/serial.old deleted file mode 100644 index 9e22bcb8e3..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/ca/serial.old +++ /dev/null @@ -1 +0,0 @@ -02 diff --git a/st2tests/st2tests/fixtures/ssl_certs/client/client_certificate.p12 b/st2tests/st2tests/fixtures/ssl_certs/client/client_certificate.p12 deleted file mode 100644 index 7feead70f4..0000000000 Binary files a/st2tests/st2tests/fixtures/ssl_certs/client/client_certificate.p12 and /dev/null differ diff --git a/st2tests/st2tests/fixtures/ssl_certs/client/client_certificate.pem b/st2tests/st2tests/fixtures/ssl_certs/client/client_certificate.pem deleted file mode 100644 index a10ae91143..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/client/client_certificate.pem +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIC4jCCAcqgAwIBAgIBAjANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhNeVRl -c3RDQTAeFw0xOTAyMTIxNTU4MzhaFw0yNDAyMTExNTU4MzhaMCUxEjAQBgNVBAMM -CWxvY2FsaG9zdDEPMA0GA1UECgwGY2xpZW50MIIBIjANBgkqhkiG9w0BAQEFAAOC -AQ8AMIIBCgKCAQEA4HxkZw50MGiWYmlrwJBHAjwsD7lfft9gHrRAeP8iEI0oLIJm -/MmUUIyA2DSDGJCIsP+grkmZawLmu7D0vJIVIUo+OBNUQ/3mACWH9z15AW5s/Ig/ -FZErhBg3RFZS+hXVT639U94uKne+mjh/G4Ej7OYHhBywn+EKakIJuUTs10sF0kW/ -4h1Gx9+Ph3tfYSagNdMDXXft0Knn/X8vMwLF5Eg8ZHKnty30wJRr4r2bqTeSCPS5 -k3bfpcxOAnaSpTDuIoxIp7w9pjwLVAVWvbjqDlU5DrPxpsn29i8STNpJ7My7+12/ -C/QJDrlCJCav1ma04G2QZbyAri3ax/MCeonFsQIDAQABoy8wLTAJBgNVHRMEAjAA -MAsGA1UdDwQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDAjANBgkqhkiG9w0BAQsF -AAOCAQEAI+PgF1gsQckqTh71CxqKimM0h5pIGh6H09bSa+9LFLFa60E1zR8rmygw -AD+u6sI5foFbSdUiIDJBmHizvwMmIptGSRw0Znzi/jjbjBmZSNLnk+Vird5grjF4 -Pf7Vkgi/NKzXTS3Y2TUUhk5OZZ6OmszHZ0eGJlUcz6Qa13hcalVHc3FmikeAu5/h -XQuthOQDXJBabgexQ+1K6ft6DDImdQCFcZhYXSb30cRHS9lqIVZbI7Rtk6UqwkvE -hYU0g8BVeVBpL7xYBqfrpdy+vBb28rrLT6Dvgf0giQ3F07S+RAivDWjM53Wyhb7T -6o3h8l49IkcEW1mns9Mj2bPNFSOhSA== ------END CERTIFICATE----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/client/private_key.pem b/st2tests/st2tests/fixtures/ssl_certs/client/private_key.pem deleted file mode 100644 index 7ddd509e15..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/client/private_key.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEA4HxkZw50MGiWYmlrwJBHAjwsD7lfft9gHrRAeP8iEI0oLIJm -/MmUUIyA2DSDGJCIsP+grkmZawLmu7D0vJIVIUo+OBNUQ/3mACWH9z15AW5s/Ig/ -FZErhBg3RFZS+hXVT639U94uKne+mjh/G4Ej7OYHhBywn+EKakIJuUTs10sF0kW/ -4h1Gx9+Ph3tfYSagNdMDXXft0Knn/X8vMwLF5Eg8ZHKnty30wJRr4r2bqTeSCPS5 -k3bfpcxOAnaSpTDuIoxIp7w9pjwLVAVWvbjqDlU5DrPxpsn29i8STNpJ7My7+12/ -C/QJDrlCJCav1ma04G2QZbyAri3ax/MCeonFsQIDAQABAoIBAFjujqwRGtCOrn0A -PJLF1Yu6IM595qoRfjfLuvr0QB+EfFTduEUO6rXaY7TDYOgbYjuUmahSOfgd5yCW -Iu6NhNdyXSHD7o8dB8ApHitBbC23/G8y3qMBptam7UYiWK8AdUgiqohOLcXfOGBK -X3ia+YuBOZsJ7qL3+TNNRCLkfltvfA4pkCMgfdZUecJcc0jFNMoCBiyk61CnNhLL -uy1oMS7JzqPRM1ySWCdBJFkV1omDHgrgBx7VmympFUJHb6kVUSh/mnPTejTcM1ds -BkNecBbS/w2X9Gb9PSZzLCAEwmJ8J0hRkgDiahN7Q/kNsQ3ca3r03iocJALecBsW -3sujeH0CgYEA+5ewcq9M/sxdZnuZy69v7T2j8Q/FGGF7IQHlT67r80cEtXeAjlrN -0D9I3+cOrvz57Eay0n2hGLWzhyex6TTX9pZozTjcMuqRkB2ztPp3HkjRucpVhGz4 -pbADvO+ZgO87AGW13E8BBDN8BsWHPFpWpwpHvEcp05sFeUdeGqJfcHsCgYEA5Gsj -dndnmxX63it2Fa3I05MynAiqnt9MNm6zcNqPMKauK6xaawZv5FvQSd5MUQa9sj3s -VgYKr9e61u7WMaHqNwn6BUOwMKv26lwjkXW/wV3QMNzn5bzS2CyjWJEjdPq0WqoH -RRvR455mAlhTVFSyOJ279WXUWoPxqDbd/Y+1yMMCgYAlDqmxqrpniUh0kN4NT1Do -G70rA4yfU7RkHzhcbUJZuesqo2hvD1bjRn8AY7MY+TACqkMql9CDqDfCP4mH9P2e -V3cmSyq74SsBlC5lCMNE1ar2d6Py9m4FUZCrYos0n4gMPe70fTqEGOU6xhtuO0wq -HGyGgeDaRyoeO/HTcHkoQwKBgQCFqaQw2KKKAAyzIV+SRAV2uXYuFGwzV5uzZoge -i+aqo37cE5k9c6DaUlfKQgkKiRVMTiwUEqkCSQ0OZOh2VrdFydLCbd+WO6rbbVtq -7SpursT7MumIaDxBP62+UAAdne8X9tMWP7dMqQ4sZR8uA/neY37vlMz0wq0QsDqq -/AN2HQKBgQDZQIZuZwS12f2Mt/E/27I8lyDiVEj59zwxeayxFq8SzUtbWnWeepes -vtsdF19dWXzwI8MjTDhGo45YyKwtNXMp+uiMA0QFo4R07D68VrxAUDYGgnhhAxlZ -Wmq8OapkJUp69GeDgnG0F72eMhrQu6fJN1dpvNAkfZiuyT2BGBc6cA== ------END RSA PRIVATE KEY----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/client/req.pem b/st2tests/st2tests/fixtures/ssl_certs/client/req.pem deleted file mode 100644 index 58e270e22a..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/client/req.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIICajCCAVICAQAwJTESMBAGA1UEAwwJbG9jYWxob3N0MQ8wDQYDVQQKDAZjbGll -bnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDgfGRnDnQwaJZiaWvA -kEcCPCwPuV9+32AetEB4/yIQjSgsgmb8yZRQjIDYNIMYkIiw/6CuSZlrAua7sPS8 -khUhSj44E1RD/eYAJYf3PXkBbmz8iD8VkSuEGDdEVlL6FdVPrf1T3i4qd76aOH8b -gSPs5geEHLCf4QpqQgm5ROzXSwXSRb/iHUbH34+He19hJqA10wNdd+3Qqef9fy8z -AsXkSDxkcqe3LfTAlGvivZupN5II9LmTdt+lzE4CdpKlMO4ijEinvD2mPAtUBVa9 -uOoOVTkOs/Gmyfb2LxJM2knszLv7Xb8L9AkOuUIkJq/WZrTgbZBlvICuLdrH8wJ6 -icWxAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAQEApuP6zTVRGLa69IXIyGIqDzb6 -NjQxyTbB5SzbtgqvdcBs5EuntsFTmS11umKwzoqT0+Kf3JtwO8pu8rQbX3C/EWOP -/eWqFPnGTCRk0AE+m08XxiAgQrgOxiMj483ka6Qr3OdT7zjW6xUyE0ObD+auD+fx -9siygGy8P9X0x0PqpWQoZm17x3bUfERiIl+oI/BltuUmAfPgELtEIBjcz+Xrslgl -5iV8Rn/+srFwMT80QLt9iypt0Me8IkbKTWpDUVQYEaXA3svCvGuthzeukImmmAPZ -rpcXR6WvYVdb2HekgqZtgvDg4FDeLidK164uTeOlCC/CRLPKyJu9VJpTQamC6g== ------END CERTIFICATE REQUEST----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/server/private_key.pem b/st2tests/st2tests/fixtures/ssl_certs/server/private_key.pem deleted file mode 100644 index 05924ec179..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/server/private_key.pem +++ /dev/null @@ -1,27 +0,0 @@ ------BEGIN RSA PRIVATE KEY----- -MIIEowIBAAKCAQEAuLLUdbHqOsUiRnkv2S0fiadrqwfdgaZgVImvMyorVYzoJ5W7 -anJSyWPnV/ly/rjL7toiPhBcVgDuCGkf7CjPN4E5tdxI9ylYk/UHEtMG1ll6kDiF -8hWfHDdktdqnQvuLkUMAA5xgIFfX+UMBuTZk7VowrjnOuljN5eVN89y2fYXXtqC1 -91HilG9VwLewYKQd/Ishb4p2WfxiBIVO+cQpnYB6quvrEYC1XPcRbJuXdrc7KcYn -dWdoj6M7aT1zOnHJrdLtv7F7dkYgV9vqwN7w3ud7uNaEbsHvWz0i+6qjX/uE755N -ZoJ8O8Dx5ug/1lxplnXlfmadIibYPBJatRsSiwIDAQABAoIBAQC0UxytYCvwfyFs -rsrxfWWqLsQm8oHoH/ky8E4WZRhz6SOL6ltVnRKIvzpSISCN4vxwUZZXBAAyk6vS -mFhraJiPd2JR1SWD8mEh63uhfFjTk/7eqeDUrxluIgL4rebZtd/YzhJIdDdBvKIH -Ic2f96RoO8MFhzj3pNY5mzwVWCrvtsEY4ygrblQrweqNbcaowJ/YQPPkgvXb6dC3 -IXjBL5IzOwTlnIYhFkuZY736Z8GOw9rcyGxITHAKavWOJkE72drh0gv5rBnu2NLz -Lgta6o+p6/DU1tjq2LRllq1HDL7uy5yGxBtB+uXly22Ur/rQzYBKeRHkj2OqZKlV -kNiyKBipAoGBAOMkqqTu9dd8xPCgu8iQWHlKVwL6gp4Ij/0PCpXL5v5cktyoAvd9 -fb22UGeFLbbdUuctO711oMfMXl8nULafT54WbnSCG2f+oiRacupJQ/QLPQ8nV8Gy -K9+H/rYZ+ggLNkNqjvM5xQZ6/AxZxWEv+qNJfPF0fG1iCWmYh0OrmfDdAoGBANAp -vma47lG3dnQfga88//SJCeuluwumjXvN8gQJvwU1ofaGjRdKxtexWBuZG6BPXnCv -yRm5tWYJnxj+zUF+ImMsd7sd/Iy1PW7gdZtMtjIW4Qmys0IKK3zkwGygayFrnyhg -WU0t63OEiKEJ7mQzvOAmnTG+H7fZ6WWm3gxi+WaHAoGAYDda9YynpMUcY1Wi1d2X -LKG54/AbvjegTrC9aiC6U4sBRukAgLeuuNruijtW1vw/rt9xS9r05U2DuEjeHs2z -GyMjXMT0OQQayM1rmiS43TqZfb7LpKgFf6WK1raAPEILlVkg/pS9Cfa0p8KrInUB -dYOeomUWg/sgQ5Ox0I9zIR0CgYAYxl8a6reykhtPBtDwgloUSJsdqMPyRwhfy8sa -H+7UN+Xm6WyxcPzpfvn1juty0P90efd9UFT+p/Z/ixPyz4hYNVqqso70UD3XjG9y -5FZq774o4VPkcEFsw+0DALS/bYerzovSW7zCKuv3/q6Yzm+UXgQnf3FW+GCG8K1M -3BrC0QKBgC6srVlHBF9FI1D/9yjjx3JIVmKKS7YleAl36t05zCfR46FDPPa7J4/+ -1UzBkEFkn0/Ven8bbkOKr9v7wBjxszCnvZPxDm9oGU8l8TjrZYiuwi0euF+4r61v -HYueOtTDjtOYSPXbQcypA0FjdeHPE5XY6O4I8ti9URyV+M80vijk ------END RSA PRIVATE KEY----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/server/req.pem b/st2tests/st2tests/fixtures/ssl_certs/server/req.pem deleted file mode 100644 index 5135c2cc33..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/server/req.pem +++ /dev/null @@ -1,15 +0,0 @@ ------BEGIN CERTIFICATE REQUEST----- -MIICajCCAVICAQAwJTESMBAGA1UEAwwJbG9jYWxob3N0MQ8wDQYDVQQKDAZzZXJ2 -ZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC4stR1seo6xSJGeS/Z -LR+Jp2urB92BpmBUia8zKitVjOgnlbtqclLJY+dX+XL+uMvu2iI+EFxWAO4IaR/s -KM83gTm13Ej3KViT9QcS0wbWWXqQOIXyFZ8cN2S12qdC+4uRQwADnGAgV9f5QwG5 -NmTtWjCuOc66WM3l5U3z3LZ9hde2oLX3UeKUb1XAt7BgpB38iyFvinZZ/GIEhU75 -xCmdgHqq6+sRgLVc9xFsm5d2tzspxid1Z2iPoztpPXM6ccmt0u2/sXt2RiBX2+rA -3vDe53u41oRuwe9bPSL7qqNf+4Tvnk1mgnw7wPHm6D/WXGmWdeV+Zp0iJtg8Elq1 -GxKLAgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAQEAmgj0lyN0I+pik9xQnmt7RhC1 -r+5ivX9ndnMmpeN8jI0RqUOEU3CewSsxKihiVpVHqUGJhHKJmsnEh/aiD2dPorK+ -I0NGWXGexk3TfHq/Ey1lwyZc1O9+vOYo/6k3zDhJZg0BekNkYciTsMFpI4h8cDr2 -yV3gzRdFPug2wwBPuKumiJuI6ZQU3G3FjgbUIOox91ZZctH1X3PRFmHjZKiHauwE -3FEzyoJUXPhP/HFGooZ6M81nm5VotozqUbj+pslLGjPdX2stduFfhZOriwH/mKll -7seOwR7GpqOhMDSCfs1gBAZkkyGX+z1hk+hccFJHSO0PLg+32Wtzu1kepBw4kA== ------END CERTIFICATE REQUEST----- diff --git a/st2tests/st2tests/fixtures/ssl_certs/server/server_certificate.p12 b/st2tests/st2tests/fixtures/ssl_certs/server/server_certificate.p12 deleted file mode 100644 index 7a937f220b..0000000000 Binary files a/st2tests/st2tests/fixtures/ssl_certs/server/server_certificate.p12 and /dev/null differ diff --git a/st2tests/st2tests/fixtures/ssl_certs/server/server_certificate.pem b/st2tests/st2tests/fixtures/ssl_certs/server/server_certificate.pem deleted file mode 100644 index 17c4490f8b..0000000000 --- a/st2tests/st2tests/fixtures/ssl_certs/server/server_certificate.pem +++ /dev/null @@ -1,18 +0,0 @@ ------BEGIN CERTIFICATE----- -MIIC4jCCAcqgAwIBAgIBATANBgkqhkiG9w0BAQsFADATMREwDwYDVQQDDAhNeVRl -c3RDQTAeFw0xOTAyMTIxNTU4MDdaFw0yNDAyMTExNTU4MDdaMCUxEjAQBgNVBAMM -CWxvY2FsaG9zdDEPMA0GA1UECgwGc2VydmVyMIIBIjANBgkqhkiG9w0BAQEFAAOC -AQ8AMIIBCgKCAQEAuLLUdbHqOsUiRnkv2S0fiadrqwfdgaZgVImvMyorVYzoJ5W7 -anJSyWPnV/ly/rjL7toiPhBcVgDuCGkf7CjPN4E5tdxI9ylYk/UHEtMG1ll6kDiF -8hWfHDdktdqnQvuLkUMAA5xgIFfX+UMBuTZk7VowrjnOuljN5eVN89y2fYXXtqC1 -91HilG9VwLewYKQd/Ishb4p2WfxiBIVO+cQpnYB6quvrEYC1XPcRbJuXdrc7KcYn -dWdoj6M7aT1zOnHJrdLtv7F7dkYgV9vqwN7w3ud7uNaEbsHvWz0i+6qjX/uE755N -ZoJ8O8Dx5ug/1lxplnXlfmadIibYPBJatRsSiwIDAQABoy8wLTAJBgNVHRMEAjAA -MAsGA1UdDwQEAwIFoDATBgNVHSUEDDAKBggrBgEFBQcDATANBgkqhkiG9w0BAQsF -AAOCAQEAnhmIUhZwweCqdzGNeoNXXkuXyBf2fFvajHlG2a2pZ8r6/fyQbbJgzo04 -ajjWoUoSW+XB+AfJvT6CTZuMWsGkxYvFAxOoXtLpW0OKqEh55q8diMSb/gOxxwND -vHVb1+VjZBhzxxt0TbXeFngMnBSgVhipKQe49pe0H+rDDYptultl81n2zFLzBKUe -h927CnTJ7cpZe4Di2tMJfVsDJB6piuwPu6GnWhT38Q12I+ryL2xbihIw1B4qDtq6 -nq4lYGnpJCNNXg5JR5S1HeYiQtP0sHgU6SvpgMtzDdbCJ0Nu7EpR5J3ChdQWooGf -uTOThX41qx1p47ho4TA9Ac4K/GRcLg== ------END CERTIFICATE----- diff --git a/st2tests/st2tests/fixtures/timers/triggers/cron1.yaml b/st2tests/st2tests/fixtures/timers/triggers/cron1.yaml deleted file mode 100644 index 55d98c31cf..0000000000 --- a/st2tests/st2tests/fixtures/timers/triggers/cron1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - id: 58090c48d9d7ed55d3a378e8 - name: d7ea7abf-29d9-4e4f-84dd-39a53982d394 - uid: trigger:core:d7ea7abf-29d9-4e4f-84dd-39a53982d394:68764760e4f98f5f619aaa27b60edf8 - pack: core - parameters: - minute: 0 - second : 0 - type: core.st2.CronTimer diff --git a/st2tests/st2tests/fixtures/timers/triggers/date1.yaml b/st2tests/st2tests/fixtures/timers/triggers/date1.yaml deleted file mode 100644 index fb4fcbf071..0000000000 --- a/st2tests/st2tests/fixtures/timers/triggers/date1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - id: 58090c48d9d7ed55d3a378e9 - name: d7ea7abf-29d9-4e4f-84dd-39a53982d395 - uid: trigger:core:d7ea7abf-29d9-4e4f-84dd-39a53982d395:68764760e4f98f5f619aaa27b60edf9 - pack: core - parameters: - timezone: pdt - date : "2016-10-22T11:22:33.567890" - type: core.st2.DateTimer diff --git a/st2tests/st2tests/fixtures/timers/triggers/interval1.yaml b/st2tests/st2tests/fixtures/timers/triggers/interval1.yaml deleted file mode 100644 index 124571757e..0000000000 --- a/st2tests/st2tests/fixtures/timers/triggers/interval1.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - id: 58090c48d9d7ed55d3a378f0 - name: d7ea7abf-29d9-4e4f-84dd-39a53982d396 - uid: trigger:core:d7ea7abf-29d9-4e4f-84dd-39a53982d396:68764760e4f98f5f619aaa27b60eda0 - pack: core - parameters: - delta: 5 - unit : seconds - type: core.st2.IntervalTimer diff --git a/st2tests/st2tests/fixtures/timers/triggers/interval2.yaml b/st2tests/st2tests/fixtures/timers/triggers/interval2.yaml deleted file mode 100644 index db7dcd8040..0000000000 --- a/st2tests/st2tests/fixtures/timers/triggers/interval2.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - id: 58090c48d9d7ed55d3a378f1 - name: d7ea7abf-29d9-4e4f-84dd-39a53982d397 - uid: trigger:core:d7ea7abf-29d9-4e4f-84dd-39a53982d397:68764760e4f98f5f619aaa27b60eda1 - pack: core - parameters: - delta: 3 - unit : seconds - type: core.st2.IntervalTimer diff --git a/st2tests/st2tests/fixtures/timers/triggers/interval3.yaml b/st2tests/st2tests/fixtures/timers/triggers/interval3.yaml deleted file mode 100644 index 8ea280b7a7..0000000000 --- a/st2tests/st2tests/fixtures/timers/triggers/interval3.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- - id: 58090c48d9d7ed55d3a378f2 - name: d7ea7abf-29d9-4e4f-84dd-39a53982d398 - uid: trigger:core:d7ea7abf-29d9-4e4f-84dd-39a53982d398:68764760e4f98f5f619aaa27b60eda2 - pack: core - parameters: - delta: 7 - unit : seconds - type: core.st2.IntervalTimer diff --git a/st2tests/st2tests/fixtures/traces/actions/chain1.yaml b/st2tests/st2tests/fixtures/traces/actions/chain1.yaml deleted file mode 100644 index a8e6c36c29..0000000000 --- a/st2tests/st2tests/fixtures/traces/actions/chain1.yaml +++ /dev/null @@ -1,15 +0,0 @@ ---- -description: Awesome action chain - 1 -enabled: true -entry_point: 'chains/chain1.yaml' -name: someworkflow -pack: traces -parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number -runner_type: action-chain diff --git a/st2tests/st2tests/fixtures/traces/executions/execution_with_parent.yaml b/st2tests/st2tests/fixtures/traces/executions/execution_with_parent.yaml deleted file mode 100644 index d627ef3777..0000000000 --- a/st2tests/st2tests/fixtures/traces/executions/execution_with_parent.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -action: - enabled: true - entry_point: '' - id: 54c6bb640640fd5211edef0c - name: someworkflow - pack: traces - ref: traces.someworkflow - parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - runner_type: action-chain -end_timestamp: '2014-09-01T00:00:05.000000Z' -id: 54c6bb640640fd5211edef3d -liveaction: - action: traces.someworkflow - callback: {} - context: - user: system - end_timestamp: '2014-09-01T00:00:05.000000Z' - id: 54c6b6d60640fd4f5354e75a - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: scheduled -parameters: {} -result: {} -runner: - description: A runner for launching linear action chains. - enabled: true - id: 54c6bb640640fd5211edef0b - name: action-chain - runner_module: action_chain_runner - runner_parameters: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: scheduled diff --git a/st2tests/st2tests/fixtures/traces/executions/rule_fired_execution.yaml b/st2tests/st2tests/fixtures/traces/executions/rule_fired_execution.yaml deleted file mode 100644 index 9e5f3af967..0000000000 --- a/st2tests/st2tests/fixtures/traces/executions/rule_fired_execution.yaml +++ /dev/null @@ -1,45 +0,0 @@ ---- -action: - enabled: true - entry_point: '' - id: 54c6bb640640fd5211edef0c - name: someworkflow - pack: traces - ref: traces.someworkflow - parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - runner_type: action-chain -end_timestamp: '2014-09-01T00:00:05.000000Z' -id: 54c6bb640640fd5211edef0d -liveaction: - action: traces.someworkflow - callback: {} - context: - user: system - end_timestamp: '2014-09-01T00:00:05.000000Z' - id: 54c6b6d60640fd4f5354e74a - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: scheduled -parameters: {} -result: {} -runner: - description: A runner for launching linear action chains. - enabled: true - id: 54c6bb640640fd5211edef0b - name: action-chain - runner_module: action_chain_runner - runner_parameters: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: scheduled -rule: - id: 54c6bb640640fd5211edef1c -trigger_instance: - id: 54c6bb640640fd5211edef2c diff --git a/st2tests/st2tests/fixtures/traces/executions/traceable_execution.yaml b/st2tests/st2tests/fixtures/traces/executions/traceable_execution.yaml deleted file mode 100644 index 55d7d404fa..0000000000 --- a/st2tests/st2tests/fixtures/traces/executions/traceable_execution.yaml +++ /dev/null @@ -1,41 +0,0 @@ ---- -action: - enabled: true - entry_point: '' - id: 54c6bb640640fd5211edef0c - name: someworkflow - pack: traces - ref: traces.someworkflow - parameters: - actionimmutable: - default: actionimmutable - immutable: true - type: string - actionint: - default: 10 - type: number - runner_type: action-chain -end_timestamp: '2014-09-01T00:00:05.000000Z' -id: 54c6bb640640fd5211edef0d -liveaction: - action: traces.someworkflow - callback: {} - context: - user: system - end_timestamp: '2014-09-01T00:00:05.000000Z' - id: 54c6b6d60640fd4f5354e74a - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: scheduled -parameters: {} -result: {} -runner: - description: A runner for launching linear action chains. - enabled: true - id: 54c6bb640640fd5211edef0b - name: action-chain - runner_module: action_chain_runner - runner_parameters: {} -start_timestamp: '2014-09-01T00:00:01.000000Z' -status: scheduled diff --git a/st2tests/st2tests/fixtures/traces/liveactions/liveaction_with_parent.yaml b/st2tests/st2tests/fixtures/traces/liveactions/liveaction_with_parent.yaml deleted file mode 100644 index 134b2258dd..0000000000 --- a/st2tests/st2tests/fixtures/traces/liveactions/liveaction_with_parent.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- - action: traces.someworkflow - callback: {} - context: - user: system - parent: - execution_id: 54c6b6d60640fd4f5354e71a - end_timestamp: '2014-09-01T00:00:05.000000Z' - id: 54c6b6d60640fd4f5354e75a - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: scheduled diff --git a/st2tests/st2tests/fixtures/traces/liveactions/traceable_liveaction.yaml b/st2tests/st2tests/fixtures/traces/liveactions/traceable_liveaction.yaml deleted file mode 100644 index 32a5c90ec8..0000000000 --- a/st2tests/st2tests/fixtures/traces/liveactions/traceable_liveaction.yaml +++ /dev/null @@ -1,11 +0,0 @@ ---- - action: traces.someworkflow - callback: {} - context: - user: system - end_timestamp: '2014-09-01T00:00:05.000000Z' - id: 54c6b6d60640fd4f5354e74a - parameters: {} - result: {} - start_timestamp: '2014-09-01T00:00:01.000000Z' - status: scheduled diff --git a/st2tests/st2tests/fixtures/traces/rules/rule1.yaml b/st2tests/st2tests/fixtures/traces/rules/rule1.yaml deleted file mode 100644 index 7dfe6e6169..0000000000 --- a/st2tests/st2tests/fixtures/traces/rules/rule1.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -action: - parameters: - ip1: '{{trigger.t1_p}}' - ip2: '{{trigger}}' - ref: wolfpack.action-1 -criteria: - trigger.t1_p: - pattern: t1_p_v - type: equals -description: '' -enabled: true -name: rule1 -pack: traces -tags: -- name: tag1 - value: dont-care -- name: tag2 - value: dont-care -trigger: - type: traces.triggertype-1 diff --git a/st2tests/st2tests/fixtures/traces/runners/actionchain.yaml b/st2tests/st2tests/fixtures/traces/runners/actionchain.yaml deleted file mode 100644 index 935115ec83..0000000000 --- a/st2tests/st2tests/fixtures/traces/runners/actionchain.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -description: A runner for launching linear action chains. -enabled: true -name: action-chain -runner_module: action_chain_runner -runner_parameters: {} diff --git a/st2tests/st2tests/fixtures/traces/traces/trace_empty.yaml b/st2tests/st2tests/fixtures/traces/traces/trace_empty.yaml deleted file mode 100644 index 879e8d864f..0000000000 --- a/st2tests/st2tests/fixtures/traces/traces/trace_empty.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -trace_tag : test-trace-1 -action_executions : [] -rules : [] -trigger_instances : [] diff --git a/st2tests/st2tests/fixtures/traces/traces/trace_execution.yaml b/st2tests/st2tests/fixtures/traces/traces/trace_execution.yaml deleted file mode 100644 index 13d35347fe..0000000000 --- a/st2tests/st2tests/fixtures/traces/traces/trace_execution.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -trace_tag : traceable_execution -action_executions : - - object_id: 54c6bb640640fd5211edef0d - ref: core.local - updated_at : '2014-09-01T00:00:02.000000Z' -rules : [] -trigger_instances : [] diff --git a/st2tests/st2tests/fixtures/traces/traces/trace_multiple_components.yaml b/st2tests/st2tests/fixtures/traces/traces/trace_multiple_components.yaml deleted file mode 100644 index 61546be804..0000000000 --- a/st2tests/st2tests/fixtures/traces/traces/trace_multiple_components.yaml +++ /dev/null @@ -1,35 +0,0 @@ ---- -trace_tag : test-trace-3 -action_executions : - - object_id: '55d3a73332ed3534d41fc7b7' - ref: core.local - updated_at: '2014-09-01T00:00:02.000000Z' - - object_id: '55d3a73332ed3534d41fc7b8' - ref: core.remote - updated_at: '2014-09-01T00:00:02.000000Z' - - object_id: '55d3a73332ed3534d41fc7b9' - ref: core.noop - updated_at: '2014-09-01T00:00:02.000000Z' -rules : - - object_id: '55d3a74b32ed3534d41fc7ba' - ref: pack1.rule1 - updated_at: '2014-09-01T00:00:02.000000Z' - - object_id: '55d3a74b32ed3534d41fc7bb' - ref: pack1.rule2 - updated_at: '2014-09-01T00:00:02.000000Z' - - object_id: '55d3a74b32ed3534d41fc7bc' - ref: pack1.rule3 - updated_at: '2014-09-01T00:00:02.000000Z' -trigger_instances : - - object_id: '55d3a76032ed3534d41fc7bd' - ref: pack1.trigger1 - updated_at: '2014-09-01T00:00:02.000000Z' - - object_id: '55d3a76032ed3534d41fc7be' - ref: pack1.trigger2 - updated_at: '2014-09-01T00:00:02.000000Z' - - object_id: '55d3a76032ed3534d41fc7bf' - ref: pack1.trigger3 - updated_at: '2014-09-01T00:00:02.000000Z' - - object_id: '55d3a76032ed3534d41fc7c0' - ref: pack1.trigger4 - updated_at: '2014-09-01T00:00:02.000000Z' diff --git a/st2tests/st2tests/fixtures/traces/traces/trace_one_each.yaml b/st2tests/st2tests/fixtures/traces/traces/trace_one_each.yaml deleted file mode 100644 index ef010ff1d9..0000000000 --- a/st2tests/st2tests/fixtures/traces/traces/trace_one_each.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -trace_tag : test-trace-2 -action_executions : - - object_id: '55d3a76032ed3534d41fc7c1' - ref: core.local - updated_at: '2014-09-01T00:00:02.000000Z' - causal_component: - id: '55d3a76032ed3534d41fc7c2:55d3a76032ed3534d41fc7c3' - type: 'rule' -rules : - - object_id: '55d3a76032ed3534d41fc7c2' - ref: pack1.rule1 - updated_at: '2014-09-01T00:00:02.000000Z' - causal_component: - id: '55d3a76032ed3534d41fc7c3' - type: 'trigger-instance' -trigger_instances : - - object_id: '55d3a76032ed3534d41fc7c3' - ref: pack1.trigger1 - updated_at: '2014-09-01T00:00:02.000000Z' - causal_component: {} diff --git a/st2tests/st2tests/fixtures/traces/traces/trace_one_each_dup.yaml b/st2tests/st2tests/fixtures/traces/traces/trace_one_each_dup.yaml deleted file mode 100644 index af06ef2ecc..0000000000 --- a/st2tests/st2tests/fixtures/traces/traces/trace_one_each_dup.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -trace_tag : test-trace-2 -action_executions : - - object_id: '55d3a76032ed3534d41fc7c1' - ref: core.local - updated_at: '2014-09-01T00:00:02.000000Z' -rules : - - object_id: '55d3a76032ed3534d41fc7c2' - ref: pack1.rule1 - updated_at: '2014-09-01T00:00:02.000000Z' -trigger_instances : - - object_id: '55d3a76032ed3534d41fc7c3' - ref: pack1.trigger1 - updated_at: '2014-09-01T00:00:02.000000Z' diff --git a/st2tests/st2tests/fixtures/traces/triggerinstances/action_trigger.yaml b/st2tests/st2tests/fixtures/traces/triggerinstances/action_trigger.yaml deleted file mode 100644 index 26a8318f42..0000000000 --- a/st2tests/st2tests/fixtures/traces/triggerinstances/action_trigger.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -occurrence_time: '2014-09-01T00:00:01.000000Z' -payload: - execution_id: 54c6bb640640fd5211edef0d -trigger: core.st2.generic.actiontrigger -status: processed diff --git a/st2tests/st2tests/fixtures/traces/triggerinstances/non_internal_trigger.yaml b/st2tests/st2tests/fixtures/traces/triggerinstances/non_internal_trigger.yaml deleted file mode 100644 index 3c03ec64ea..0000000000 --- a/st2tests/st2tests/fixtures/traces/triggerinstances/non_internal_trigger.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -occurrence_time: '2014-09-01T00:00:01.000000Z' -payload: - t1_p : magic8ball -trigger: wolfpack.triggertype-1 -status: processed diff --git a/st2tests/st2tests/fixtures/traces/triggerinstances/notify_trigger.yaml b/st2tests/st2tests/fixtures/traces/triggerinstances/notify_trigger.yaml deleted file mode 100644 index 28f9812ac2..0000000000 --- a/st2tests/st2tests/fixtures/traces/triggerinstances/notify_trigger.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- -occurrence_time: '2014-09-01T00:00:01.000000Z' -payload: - execution_id: 54c6bb640640fd5211edef0d -trigger: core.st2.generic.notifytrigger -status: processed diff --git a/st2tests/st2tests/fixtures/traces/triggers/trigger1.yaml b/st2tests/st2tests/fixtures/traces/triggers/trigger1.yaml deleted file mode 100644 index 75288e5ee4..0000000000 --- a/st2tests/st2tests/fixtures/traces/triggers/trigger1.yaml +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: triggertype-1 -pack: traces -parameters: {} -type: traces.triggertype-1