Skip to content
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

Update file upload endpoint #292

Merged
merged 2 commits into from
Nov 25, 2017

Conversation

snewcomer
Copy link
Collaborator

@snewcomer snewcomer commented Nov 21, 2017

  • update file upload endpoints
  • figure out file_upload tests'

Awaiting response to this issue: stripe/stripe-mock#35

file: "@/path/to/a/file.jpg",
purpose: "dispute_evidence"
})
assert_stripe_requested :post, "/v1/files"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joshsmith so perhaps these are failing is b/c it is files.stripe.com instead of api.stripe.com

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test file didn't exist before

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah found a request_file_upload method in Stripe.Request

@snewcomer snewcomer changed the title Update file upload endpoint Update file upload endpoint and minor fixup of plan tests. Nov 21, 2017
@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+1.7%) to 66.567% when pulling 6672a8f on snewcomer:file-endpoint into 6b38b2e on code-corps:2.0-beta.

@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+1.7%) to 66.567% when pulling 7cae938 on snewcomer:file-endpoint into 6b38b2e on code-corps:2.0-beta.

@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+3.6%) to 68.451% when pulling fea1cab on snewcomer:file-endpoint into 6b38b2e on code-corps:2.0-beta.

@snewcomer snewcomer changed the title Update file upload endpoint and minor fixup of plan tests. Update file upload endpoint Nov 21, 2017
@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+7.9%) to 72.776% when pulling c05ca29 on snewcomer:file-endpoint into 6b38b2e on code-corps:2.0-beta.

@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+4.9%) to 72.776% when pulling e9ad677 on snewcomer:file-endpoint into 7d9da23 on code-corps:2.0-beta.

@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+4.9%) to 72.776% when pulling 0f8f672 on snewcomer:file-endpoint into 7d9da23 on code-corps:2.0-beta.

@@ -183,7 +178,7 @@ defmodule Stripe.API do
|> add_default_options()
|> add_pool_option()

@http_module.request(method, req_url, req_headers, body, req_opts)
@http_module.request(method, req_url, req_headers, req_body, req_opts)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is returning a 404

{:ok, 404,
 [{"Stripe-Mock-Version", "master"}, {"Date", "Tue, 21 Nov 2017 06:05:38 GMT"},
  {"Content-Length", "11"}, {"Content-Type", "text/plain; charset=utf-8"}],
 "\"Not Found\""}

Hmmm. Wonder if the env variable is correct or actually need to reference a real file.

@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+4.7%) to 72.554% when pulling ca6b2b3 on snewcomer:file-endpoint into 7d9da23 on code-corps:2.0-beta.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.7%) to 72.554% when pulling ca6b2b3 on snewcomer:file-endpoint into 7d9da23 on code-corps:2.0-beta.

1 similar comment
@coveralls
Copy link

coveralls commented Nov 21, 2017

Coverage Status

Coverage increased (+4.7%) to 72.554% when pulling ca6b2b3 on snewcomer:file-endpoint into 7d9da23 on code-corps:2.0-beta.

@joshsmith
Copy link
Contributor

This is blocked until we can figure out how to get the FileUpload API working with the OpenAPI spec.

@joshsmith
Copy link
Contributor

@snewcomer you'll need to rebase. I might run the mix format using Elixir 1.6 before you do that, though.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.8%) to 78.273% when pulling 65ca32c on snewcomer:file-endpoint into c77ef86 on code-corps:2.0-beta.

6 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+4.8%) to 78.273% when pulling 65ca32c on snewcomer:file-endpoint into c77ef86 on code-corps:2.0-beta.

@coveralls
Copy link

coveralls commented Nov 22, 2017

Coverage Status

Coverage increased (+4.8%) to 78.273% when pulling 65ca32c on snewcomer:file-endpoint into c77ef86 on code-corps:2.0-beta.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.8%) to 78.273% when pulling 65ca32c on snewcomer:file-endpoint into c77ef86 on code-corps:2.0-beta.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.8%) to 78.273% when pulling 65ca32c on snewcomer:file-endpoint into c77ef86 on code-corps:2.0-beta.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.8%) to 78.273% when pulling 65ca32c on snewcomer:file-endpoint into c77ef86 on code-corps:2.0-beta.

@coveralls
Copy link

Coverage Status

Coverage increased (+4.8%) to 78.273% when pulling 65ca32c on snewcomer:file-endpoint into c77ef86 on code-corps:2.0-beta.

@coveralls
Copy link

coveralls commented Nov 22, 2017

Coverage Status

Coverage increased (+4.5%) to 79.109% when pulling eb4d66a on snewcomer:file-endpoint into e2e8bf5 on code-corps:2.0-beta.

@coveralls
Copy link

coveralls commented Nov 25, 2017

Coverage Status

Coverage decreased (-0.2%) to 75.134% when pulling b7ebc83 on snewcomer:file-endpoint into 9e99933 on code-corps:2.0-beta.

@joshsmith joshsmith merged commit 457f6b6 into beam-community:2.0-beta Nov 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants