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

POST form data #194

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

POST form data #194

wants to merge 6 commits into from

Conversation

torchingloom
Copy link

@torchingloom torchingloom commented Apr 21, 2016

This is simple and dirty send POST form realization
ex

- config:
  - testset: 'some test'

  - variable_binds: {
      url_prefix: 'api/v1',
      authorization_api_key: 'key',
      admin_username: 'ta',
      json_content_type: 'application/json',
      multipart_content_type: 'multipart/form-data',
      json_first_id: 'objects.0.id',
      geojson_first_id: 'features.0.properties.id',
      monument_id: 111
    }

- test:
  - url: {template: '$url_prefix/monument/image/'}
  - method: 'POST'
  - headers: {
        Content-Type: 'multipart/form-data;',
        template: {Authorization: 'ApiKey $admin_username:$authorization_api_key'}
    }
  - body: {
      form: {
        monument: $monument_id,
        file: '@static/img/upload-test-1.jpg'
      }
    }

@svanoort-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants