Sha256: c93d987809d49ebe7b670a8f37d9be95ccac5f0e7581b53cfe809a9bb67a2fac

Contents?: true

Size: 1.23 KB

Versions: 4

Compression:

Stored size: 1.23 KB

Contents

Feature: Identify API endpoint
	Identify API allows for image identification.

	Background:
		Given httpthumbnailer server is running at http://localhost:3100/

	@identify
	Scenario: Identifying of image mime type
		Given test.jpg file content as request body
		When I do PUT request http://localhost:3100/identify
		Then response status should be 200
		And response content type should be application/json
		And response body should be JSON encoded
		And response JSON should contain key mimeType of value image/jpeg
		Given test.png file content as request body
		When I do PUT request http://localhost:3100/identify
		Then response status should be 200
		And response content type should be application/json
		And response body should be JSON encoded
		And response JSON should contain key mimeType of value image/png

	@identify
	Scenario: Identifying of image width and height
		Given test-large.jpg file content as request body
		When I do PUT request http://localhost:3100/identify
		Then response status should be 200
		And response content type should be application/json
		And response body should be JSON encoded
		And response JSON should contain key width of integer value 9911
		And response JSON should contain key height of integer value 14000

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
httpthumbnailer-1.2.0 features/identify.feature
httpthumbnailer-1.1.2 features/identify.feature
httpthumbnailer-1.1.1 features/identify.feature
httpthumbnailer-1.1.0 features/identify.feature