[AIRFLOW-5631] Change way of running GCP system tests#6299
[AIRFLOW-5631] Change way of running GCP system tests#6299potiuk merged 5 commits intoapache:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6299 +/- ##
=========================================
- Coverage 83.96% 83.67% -0.3%
=========================================
Files 627 628 +1
Lines 36549 36608 +59
=========================================
- Hits 30689 30632 -57
- Misses 5860 5976 +116
Continue to review full report at Codecov.
|
eda9ccb to
c416361
Compare
c416361 to
444a805
Compare
|
Travis is sad. Can you fix it? |
98bded7 to
0a71e2d
Compare
There was a problem hiding this comment.
In other places, the helper is set as a class property. Do you have recommendations about it?
There was a problem hiding this comment.
I think the helpers need some more discussion. Many of them performs same thing like create a bucket or delete a bucket, so maybe it's worth to rethink our overall approach. If we are going to migrate to pytest then helpers should be replaced by fixtures.
There was a problem hiding this comment.
Ok. We can do it in separate PR.
There was a problem hiding this comment.
Ok. We can do it in separate PR.
There was a problem hiding this comment.
No, I should remove it ✅
550f118 to
fdca7ab
Compare
This commit proposes a new way of running GCP related system tests. It uses SystemTests base class and authentication is provided by a context manager thus it's easier to understand what's going on.
fdca7ab to
4d7f100
Compare
|
|
||
| @unittest.skipIf(TestDagGcpSystem.skip_check(GCP_BIGQUERY_KEY), SKIP_TEST_WARNING) | ||
| class BigQueryExampleDagsSystemTest(TestDagGcpSystem): | ||
| @skip_gcp_system(GCP_BIGQUERY_KEY, require_local_executor=True) |
There was a problem hiding this comment.
This parameters should not have require_local_executor set to True I think. I have problem with running this test.
There was a problem hiding this comment.
Yes, I agree. Can you make a PR with fix because I am on holidays?
There was a problem hiding this comment.
Sorry for late response. I will try to fix it but I have limited time due to my holidays :)
Make sure you have checked all steps below.
Jira
Description
This PR proposes a new way of running GCP related system tests.
It uses SystemTests base class and authentication is provided by a
context manager thus it's easier to understand what's going on.
Tests
Commits
Documentation