You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/08 09:28:26 UTC

[GitHub] [airflow] joppevos commented on issue #8567: Support YAML input for CloudBuildCreateOperator

joppevos commented 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


----------------------------------------------------------------
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:
users@infra.apache.org