Граф коммитов

118 Коммитов

Автор SHA1 Сообщение Дата
Morgan Tocker 234ed87ab1 Add extra MySQL/MariaDB flavor
Signed-off-by: Morgan Tocker <tocker@gmail.com>
2019-10-21 16:29:56 -06:00
yuxiaobo 3256c81fb2 add License in /py folder
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-10-16 19:51:52 +08:00
deepthi d409c44b1f add mysql80 flavor to vttest
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-04-08 18:16:22 -07:00
Dan Kozlowski 0d54495736 Adding in support for MariaDB 10.3
Signed-off-by: Dan Kozlowski <koz@planetscale.com>
2018-09-10 09:50:04 -07:00
Sugu Sougoumarane 3f904811af nomycnf: simplify dbconfigs
* Introduce new db connectivity flags.
* Mark old flags as deprecated.
* If new flags are set, they supersede legacy flags.
* Provide defaults to existing flags so one doesn't
  have to specify them for normal cases.

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
2018-07-15 21:08:40 -07:00
Sugu Sougoumarane efefecbfbf redirect vtcombo stderr to test stderr
We previously redirected vtcombo's output to a a file. This was
probably to prevent a spammy output on the test. But troubleshooting
becomes hard if the vtcombo crashes on Travis (or docker).
So, it may be better to live with the spam.
2017-08-18 13:33:27 -07:00
Alain Jobart a511eedd6a Adding parameter to bind mysql port socket to.
And using it in vtcombo local usages, so unit tests only bind to
'localhost', and don't provide an open MySQL port with no user/password
required.

BUG=63407520
2017-07-11 16:42:29 -07:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Sugu Sougoumarane 5aa4c04f43 mysqlconn: add authServerNone for easier testing
The authServerNone config lets you connect using no username & password
which is convenient for testing and demos. The example demo has been
changed to use this feature. This will allow people to just connect
to vtcombo using mysql and run ad-hoc queries.
2017-03-23 11:32:42 -07:00
Michael Berlin 50e7811759 py/vttest: Remove unused import.
BUG=36509150
2017-03-22 17:10:26 +01:00
thompsonja 1f82f98366 Add charset/snapshot_file to vttest. (#2611)
This helps for testing efforts that require restoring from a snapshot. Also, setting charset is already allowed via start_vt_processes, so this PR just exposes it through run_local_database.
2017-03-10 10:45:37 -08:00
Alain Jobart 60e76d88fa Add a TLS mysqlconn -> real MySQL test.
In the process, allow a vttest user to specify extra my.cnf.
2017-02-22 22:27:52 -08:00
Sugu Sougoumarane 436882909e v3: query normalization DONE
normalize_queries flag and functionality in VTGate.
Also turned the flag on for local_database tests.
2016-12-27 16:56:55 -08:00
thompsonja df115b1ba6 Cluster test updates. (#2380) 2016-12-16 16:56:11 -08:00
Anthony Yeh 313d926f89 Update to gRPC 1.0.0 and protobuf 3.0.0. (#2012) 2016-09-23 11:41:17 -07:00
thompsonja 30b6d1a737 Angular2 webdriver test updates (#2038)
Angular2 webdriver test updates
2016-09-13 17:17:22 -07:00
Alain Jobart 40ff7cb517 vtcombo fixes: UpdateStream and dbname.
Plumbing UpdateStream through for vtcombo. Adding a test for it in
vttest_smaple_test.py.

Fixing the db name for vtcombo databases: it should not include the
cell. Not in practice vtgate is only connecting to the master cell, so
it didn't matter much, but this is more correct.
2016-09-08 15:13:12 -07:00
Joshua Thompson 7b66711482 Skip nodejs download if it already exists, clean up vtctld2 build
script, added some comments
2016-08-17 09:36:24 -07:00
Joshua Thompson ddca7db497 Add webdriver support for new vtctld2 UI 2016-08-16 11:26:41 -07:00
Joshua Thompson 3fd751467f Move sharding_utils.py to py/vttest 2016-08-09 11:02:46 -07:00
Joshua Thompson 326d401aa6 Move start_vtcombo logic into run_local_database.py. Revert change to vttest_sample_test 2016-08-08 22:35:53 -07:00
Joshua Thompson fc1ff80d1f Extend vtcombo. Addressed review comments. 2016-08-05 11:04:29 -07:00
Joshua Thompson b9246e486f Extend vtcombo to allow setting rdonly/replica counts, cells. Update test scripts 2016-08-03 14:42:23 -07:00
Anthony Yeh 453e875274 vttest: Configure DBA user for vtcombo.
This allows more vtctl commands to work with vtcombo.
2016-06-22 13:01:00 -07:00
Alain Jobart 6391c07c95 Changing vttest to load vschema from schema_dir.
Each keyspace can have it own vschema file then. This is more consistent
with 'vtctl ApplyVSchema' that takes the same input. Less confusing.
2016-06-14 09:27:08 -07:00
Alain Jobart aa6e6122e6 removing unused import and var. 2016-06-07 08:34:12 -07:00
Alain Jobart 4e490415f3 Deprecating --topology in run_local_database.py. 2016-06-07 08:30:38 -07:00
Alain Jobart 933d510652 Adding test cases, fixing the related bugs.
Test case for redirected keyspace, fixed the no db creation.
Test case for rdonly / replica access, fix the error in refactored
tablet creation code.
2016-05-26 08:22:13 -07:00
Alain Jobart 79c61e40bc Addressing comments from review.
Changing Shard's db_name to db_name_override.
Rewording a bunch of comments in proto.
Factoring out tablet creation code in vtcombo.
Rebuilding keyspace graph for redirected keyspaces too,
and also setting ShardingColumn{Name,Type} for them.
2016-05-26 07:59:57 -07:00
Alain Jobart f9ac9ff125 Adding go and python plumbing for vttest.proto.
Overall this is so much better than parsing and generating the old
string. Will remove the old code in a week or two.
2016-05-25 16:24:41 -07:00
Liang Guo 4ebced614f Fix discovery gateway handling, and also vtcombo. 2016-05-12 20:39:36 -07:00
Liang Guo 48e7708c6d Delete shard gateway/conn related code, and also fix unit tests to use discoverygateway. 2016-05-04 15:20:36 -07:00
Erez Louidor b6efc506b2 Adding a flag to run_local_database.py to allow populating the database with initial random data. 2016-04-21 13:26:37 -07:00
Alain Jobart fce1157acf Removing go rpc python clients. 2016-03-16 09:15:57 -07:00
Joshua Thompson c37fc9ad86 Update test code to use unix socket instead of tcp connection if available 2016-02-07 12:10:10 -08:00
Alain Jobart a4f7936c23 Adding vtctl RPC interface to vtcombo, with unit test. 2015-12-14 08:02:41 -08:00
Alain Jobart f46bd25d3e Adding vtctld functionnality to vtcombo. 2015-12-10 06:56:36 -08:00
Anthony Yeh b89d988e30 Make MySQL users and privileges configurable.
This gets rid of the opaque mysql-db-dir.tbz archive, replacing it with
a .sql file. The .sql file approach makes it clear what state the DB is
initialized with, and also makes it easy to customize.
2015-11-10 11:41:24 -08:00
Michael Berlin 8592cf7179 Only consider *.sql files when applying schema. Fail if the schema directory for a keyspace does not exist.
NOTE: Changes were already LGTM'd internally.
2015-10-20 16:50:25 -07:00
Michael Berlin 5d28adf165 Revert "Only consider *.sql files when applying schema." 2015-10-20 15:54:42 -07:00
Dominic Hamon 1be23db75f Back to exception and add more information. 2015-10-20 12:28:14 -07:00
Dominic Hamon 4ab1c1d5db Replace exception with logging.warn 2015-10-20 12:08:13 -07:00
Dominic Hamon 5deec2e205 add missing import 2015-10-20 09:53:58 -07:00
Dominic Hamon c1cbcf81d1 Only consider *.sql files when applying schema.
Also add more checks and clearer error messages.
2015-10-20 09:40:13 -07:00
Michael Berlin f625a3104e Exporting internal changes back to open-source.
NOTE: Changes were already LGTM'd internally.
2015-10-19 13:43:30 -07:00
Sugu Sougoumarane cc20205dcc vttest, v3 demo: make vschema explicit 2015-10-14 11:54:38 -07:00
Sugu Sougoumarane e91a995c47 vttest: handle empty schema_dir case 2015-10-13 21:40:20 -07:00
Sugu Sougoumarane 573f9f62b2 v3 demo: is now self-contained
It's been changed to use vttest, and there is a script
that brings up everything, and tears down at the end.
The one problem with the new scheme is that the querylog
doesn't tell you which tablet the query came frome. Something
to think about in the future.
2015-10-13 21:30:27 -07:00
Alain Jobart c144bba292 Adding a unit test of the vttest setup in vttest_sample_test.py.
This requires using the protocol from flavors.
Also using ValueError exception instead of plain Exception
in vtgate_client.py.
2015-10-09 13:47:41 -07:00
Alain Jobart d3dcddee15 Merge pull request #1191 from alainjobart/resharding
Not supporting vtocc+vtgate in vttest, only vtcombo.
2015-10-08 14:52:53 -07:00