summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/s3/amazon.test
blob: bc9439ab2cc07c3509276eddd96b219914809cb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
--source include/have_s3.inc

if (`SELECT @@s3_host_name NOT LIKE "%.amazonaws.com"`)
{
  skip Not connected to AWS;
}

--source create_database.inc

#
# Check options against amazon
#

set @save_s3_protocol_version=@@global.s3_protocol_version;
set @@global.s3_protocol_version="Original";

create table t1 (pk int primary key, a int);
insert into t1 values (1,1),(2,2),(3,3),(4,4);
--replace_result $database database
alter table t1 engine=S3;
drop table t1;

set @@global.s3_protocol_version="Amazon";

create table t1 (pk int primary key, a int);
insert into t1 values (1,1),(2,2),(3,3),(4,4);
--replace_result $database database
alter table t1 engine=S3;
drop table t1;

set @@global.s3_protocol_version="Domain";

create table t1 (pk int primary key, a int);
insert into t1 values (1,1),(2,2),(3,3),(4,4);
--replace_result $database database
alter table t1 engine=S3;
drop table t1;

#
# clean up
#
set @@global.s3_protocol_version=@save_s3_protocol_version;
--source drop_database.inc