-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIRFLOW-1695] Add RedshiftHook using boto3 #2717
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2717 +/- ##
==========================================
+ Coverage 72.48% 72.56% +0.08%
==========================================
Files 154 154
Lines 11843 11843
==========================================
+ Hits 8584 8594 +10
+ Misses 3259 3249 -10
Continue to review full report at Codecov.
|
Is this reviewable? If so, please fix your commit message to make it readable. See commit guidelines. Furthermore please make sure the tests actually can run, include the right packages for ci. |
thanks @andyxhadji more power to #airflow and #aws |
@bolkedebruin This is now reviewable, all tests are passing. Please take a look! |
This is one of the follow-ups to #2532 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nits. I don't think there is a need to touch aws_hook.py
airflow/contrib/hooks/aws_hook.py
Outdated
self.aws_conn_id = aws_conn_id | ||
self.region_name = region_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is obtained from the extra connectin parameters, why have it in the signature?
Please also make sure your commit message adheres to the layout (descr lines are too long) |
Adds RedshiftHook class, allowing for management of AWS Redshift clusters and snapshots using boto3 library. Also adds new test file and unit tests for class methods.
@bolkedebruin Fixed - re-running tests because of an unrelated failure (https://travis-ci.org/apache/incubator-airflow/builds/294151528). |
@bolkedebruin Tests passing! |
Your tests are not running as they are not prepended by "test_". Please verify in the travis that your tests run. |
@bolkedebruin Hmm, I'm not sure if I'm looking in the right place - the tests are prepended with "test_" and the tests run (screenshot from changed files & apache TravisCI below) Am I missing something in a file? I really appreciate the help. |
Apologies! I did do a search but I probably misspelled. |
Adds RedshiftHook class, allowing for management of AWS Redshift clusters and snapshots using boto3 library. Also adds new test file and unit tests for class methods. Closes #2717 from andyxhadji/1695 (cherry picked from commit 4fb7a90) Signed-off-by: Bolke de Bruin <[email protected]>
Not a problem! Thanks for the review!
…On Mon, Oct 30, 2017 at 3:36 PM, bolkedebruin ***@***.***> wrote:
Apologies! I did do a search but I probably misspelled.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2717 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADcMX-3XcYDbwjRSiW4LLMz9K8H455kGks5sxiUjgaJpZM4QCJxv>
.
|
Adds RedshiftHook class, allowing for management of AWS Redshift clusters and snapshots using boto3 library. Also adds new test file and unit tests for class methods. Closes apache#2717 from andyxhadji/1695
Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA
Description
Tests
Commits