joppevos edited a comment on issue #8567:
URL: https://github.com/apache/airflow/issues/8567#issuecomment-625728535
@mik-laj thanks for asking. I got stuck at the system-test and I forgot/was
afraid to ask :)
How do I write a system test with a local YAML. Were should I place this or
what is the best practice for it.
I tested the implementation of accepting a build yaml config like this now. :
```
dct = '''
steps:
- name: 'ubuntu'
args: ['echo', 'hello airflow!']
'''
with open('/tmp/example.yaml', 'w+') as f:
f.write(dct)
CloudBuildCreateOperator(task_id='examplebuild',
body='/tmp/example.yaml',
dag=dag)
```
I understand it is probably not how it should be tested, would appreciate
if you can point me in the right direction on how to turn this into a good
looking system test.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]