Sha256: 3ce59b188a595e0803efd0fa069ede95fd23050f941dc042f4b333c077b66d04

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

Feature: Original image and it's thumnails generation and storing on S2
	In order to store original image and it's thumbnails in configured S3 buckte
	A user must PUT image data to URI representing it's pathi with bucket
	The respons will be paths to files storred in S3

	Background:
		Given httpimagestore server is running at http://localhost:3000/ with the following configuration
		"""
		s3_key 'AKIAJMUYVYOSACNXLPTQ', 'MAeGhvW+clN7kzK3NboASf3/kZ6a81PRtvwMZj4Y'
		s3_bucket 'rhthumbnails'

		thumbnail_class 'small', 'crop', 128, 128
		thumbnail_class 'tiny', 'crop', 32, 32
		"""
		Given httpthumbnailer server is running at http://localhost:3100/

	Scenario: Putting thumbnails and original to S3 bucket
		Given test.jpg file content as request body
		When I do PUT request http://localhost:3000/thumbnail/small,tiny/test/image/test.jpg
		Then I will get the following response body
		"""
		http://rhthumbnails.s3.amazonaws.com/test/image/4006450256177f4a/test.jpg
		http://rhthumbnails.s3.amazonaws.com/test/image/4006450256177f4a/test-small.jpg
		http://rhthumbnails.s3.amazonaws.com/test/image/4006450256177f4a/test-tiny.jpg
		"""

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
httpimagestore-0.0.2 features/httpimagestore.feature
httpimagestore-0.0.1 features/httpimagestore.feature