Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
bace2a97
Commit
bace2a97
authored
May 05, 2015
by
Philip Stoev
Committed by
Nirbhay Choubey
Sep 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Galera MTR Tests: add a test for socket.ssl_compression
parent
b5ef2bbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/suite/galera/t/galera_ssl_compression.cnf
mysql-test/suite/galera/t/galera_ssl_compression.cnf
+7
-0
mysql-test/suite/galera/t/galera_ssl_compression.test
mysql-test/suite/galera/t/galera_ssl_compression.test
+34
-0
No files found.
mysql-test/suite/galera/t/galera_ssl_compression.cnf
0 → 100644
View file @
bace2a97
!include ../galera_2nodes.cnf
[mysqld.1]
wsrep_provider_options='base_port=@mysqld.1.#galera_port;socket.ssl=yes;socket.ssl_cert=@ENV.MYSQL_TEST_DIR/std_data/galera-cert.pem;socket.ssl_key=@ENV.MYSQL_TEST_DIR/std_data/galera-key.pem;socket.ssl_compression=YES'
[mysqld.2]
wsrep_provider_options='base_port=@mysqld.2.#galera_port;socket.ssl=yes;socket.ssl_cert=@ENV.MYSQL_TEST_DIR/std_data/galera-cert.pem;socket.ssl_key=@ENV.MYSQL_TEST_DIR/std_data/galera-key.pem;socket.ssl_compression=YES'
mysql-test/suite/galera/t/galera_ssl_compression.test
0 → 100644
View file @
bace2a97
#
# Test SSL compression. The accompanying galera_ssl_compression.cnf has a customized wsrep_provider_options setting that enables SSL and compression.
#
# Unfortunately there is no wire-level traffic bytes counter that would allow us to determine that compression kicked in, so we can only
# perform a most basic replication check.
#
--
source
include
/
galera_cluster
.
inc
--
source
include
/
have_innodb
.
inc
SELECT
VARIABLE_VALUE
=
'Synced'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_local_state_comment'
;
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
connection
node_2
SELECT
VARIABLE_VALUE
=
'Synced'
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_local_state_comment'
;
SELECT
VARIABLE_VALUE
=
2
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_cluster_size'
;
--
connection
node_1
# Check that the socket.ssl_compression provider option is not dynamic
--
error
ER_WRONG_ARGUMENTS
SET
GLOBAL
wsrep_provider_options
=
"socket.ssl_compression=No"
;
CREATE
TABLE
t1
(
f1
VARCHAR
(
333
)
PRIMARY
KEY
,
f2
BLOB
)
Engine
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
REPEAT
(
'a'
,
333
),
REPEAT
(
'b'
,
65535
));
--
connection
node_2
SELECT
COUNT
(
*
)
=
1
FROM
t1
WHERE
f1
=
REPEAT
(
'a'
,
333
)
AND
f2
=
REPEAT
(
'b'
,
65535
);
--
connection
node_1
DROP
TABLE
t1
;
CALL
mtr
.
add_suppression
(
"Unknown parameter 'socket\.ssl_compression'"
);
CALL
mtr
.
add_suppression
(
"Set options returned 7"
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment