Pack testing with config.schema.yaml
Preranareddya opened this issue · 0 comments
SUMMARY
I am currently performing pack testing. In base.py file in the actions directory we call the config.schema.yaml file. But when testing this action I am seeing the following error
actions/lib/base.py line 8 in init
self.api_url = config['api_url']
TypeError: 'NoneType' object is not subscriptable
STACKSTORM VERSION
Paste the output of st2 --version
:
st2 3.8.0, on Python 3.8.10
OS, environment, install method
Post what OS you are running this on, along with any other relevant information/
- e.g. Docker, Vagrant, Kubernetes, etc. Describe how you installed ST2
- e.g. one-line install, custom install, etc -->
Docker, one-line install
Steps to reproduce the problem
Show how to reproduce the problem, using a minimal test-case. Make sure to include any content
(pack content - workflows, actions, etc.) which are needed to reproduce the problem.
Running the tests
st2-run-pack-tests -p
Expected Results
What did you expect to happen when running the steps above?
I except the tests to action to load the data from config.schema.yaml.
Actual Results
What happened? What output did you get?
actions/lib/base.py line 8 in init
self.api_url = config['api_url']
TypeError: 'NoneType' object is not subscriptable
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!