Commit Graph

2618 Commits

Author SHA1 Message Date
Rsl1122
844fe2178f 4.5.2 SQLite Patch test 2018-12-31 17:09:45 +02:00
Rsl1122
33b97b0745 Replaced init call with createTables in CommonDBTest#Before 2018-12-27 21:47:34 +02:00
Rsl1122
232ead5f1f Fixed database tests (dropped tables depending on ids) 2018-12-27 21:37:59 +02:00
Risto Lahtela
ac6ae09a05
Ci selenium fix (#863)
* Added --no-sandbox argument to chrome on travis
* Added xvfb screen display settings
* Updated chromedriver version
2018-12-27 21:06:10 +02:00
Risto Lahtela
94e62cb63c
Update prepareTestEnv.sh
Added permissions for the chrome folders in an attempt to fix 
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
2018-12-27 19:55:11 +02:00
Rsl1122
0d587f527e Fixed BungeeSystemTest#testEnableNoMySQL:
- Moved the condition to the correct place this time
2018-12-27 19:13:53 +02:00
Rsl1122
e5a0dabc80 Changed invalid webdriver environment variable name 2018-12-27 19:08:06 +02:00
Rsl1122
26c706a411 Fixed BungeeSystemTest#testEnableNoMySQL
Test was failing because travis runs MySQL on 3306 port with root user,
these were default Plan settings. Fixed by removing message expectation
on travis
2018-12-27 19:05:56 +02:00
Rsl1122
4641c7a4fd Fixed BungeeSystemTest#testEnableNoMySQL
Test was failing because travis runs MySQL on 3306 port with root user,
these were default Plan settings. Fixed by changing port to 6000 in the
test
2018-12-27 19:00:42 +02:00
Rsl1122
3d65e8c745 Unignored 2 BungeeSystem tests
- Caught a PoolInitializationException in MySQL to throw EnableException
  properly.
2018-12-27 18:51:11 +02:00
Rsl1122
217867ab52 Try to fix MySQL Tests
The tests were failing due to missing Session in the database.
The foreign key checks were not enforced on SQLite so the session was
not being saved previously.

- Session now saved in the 3 tests dependending on it
- Removed empty ignored test method
- Flipped an equals in WorldTimes
2018-12-27 18:39:36 +02:00
Rsl1122
f2642f4079 MySQL Connector test dependency 2018-12-26 22:07:28 +02:00
Risto Lahtela
7542370b44
Added '--info' to travis test script 2018-12-26 21:58:06 +02:00
Rsl1122
5403f78a94 Removed failing test in MySQLTest 2018-12-26 21:44:59 +02:00
Rsl1122
1225902347 Replaced System.getProperty with System.getenv calls in Tests 2018-12-26 21:39:06 +02:00
Rsl1122
d91f4bae35 Removed failing test in SessionCacheTest 2018-12-26 21:19:48 +02:00
Rsl1122
c152817aa1 Failing test + change to runTests 2018-12-26 21:15:30 +02:00
Rsl1122
0b19adcc74 Failing test to ensure MySQLTest is being run 2018-12-26 21:04:52 +02:00
Rsl1122
da3a19d913 Gradle test logging settings 2018-12-26 20:58:16 +02:00
Rsl1122
81e3f37cf0 Removed 'gradle tasks' call from travis scripts 2018-12-26 20:54:25 +02:00
Rsl1122
cb3df34a9e MySQL service moved 2018-12-26 20:38:56 +02:00
Rsl1122
a323877979 Travis MySQL service attempt 2018-12-26 20:36:29 +02:00
Rsl1122
131585179d MySQL Test + CIProperties 2018-12-26 20:32:33 +02:00
Rsl1122
c17b1c1aca JUnit 5 Selenium Extension 2018-12-25 23:17:13 +02:00
Rsl1122
693f008942 Removed deprecated code in SeleniumDriver 2018-12-25 23:16:57 +02:00
dependabot[bot]
47cc92da00
Bump discordsrv from 1.16.4 to 1.16.6 in /PlanPluginBridge (#859) 2018-12-25 13:26:37 +00:00
dependabot[bot]
91976b0482
Bump selenium-java from 3.14.0 to 3.141.59 in /Plan (#850) 2018-12-25 09:56:48 +00:00
Rsl1122
5715744159 Fixed SeleniumDriver imports 2018-12-25 11:28:04 +02:00
Risto Lahtela
d1b095af38
[#825] Travis driver info to SeleniumDriver.java 2018-12-25 11:19:08 +02:00
Risto Lahtela
7b9cce2a16
[#825] Add chrome add-on to .travis.yml
Also changed sudo: true and added prepareTestEnv.sh to Unit Tests before_install
2018-12-25 11:01:46 +02:00
Risto Lahtela
06cb1f9cba
[#825] Create prepareTestEnv.sh
Script will install chromedriver
2018-12-25 10:58:29 +02:00
Rsl1122
3bdb85312c Test & fix for FileWatcher
- Test for modification listening
- Fix for Path resolution when calling a WatchedFile
2018-12-24 22:44:01 +02:00
Rsl1122
88f8653cb8 Removed remnants of the old '/network' server box requests
- Removed /info/cachenetworkpagecontentrequest end-point
- Removed CacheNetworkPageContentRequest
- Removed NetworkPageContent
2018-12-24 22:44:01 +02:00
Rsl1122
6c72592120 [#839] Network page now displays "No Servers" again
- Fixes a bug where tabs are out of place on /network page if
  no servers are connected to the proxy Plan server.
2018-12-24 22:44:01 +02:00
dependabot[bot]
862439000a
Bump nucleus-api from 1.7.0-S7.1 to 1.8.0-S7.1 in /PlanPluginBridge (#858) 2018-12-24 12:25:52 +00:00
Rsl1122
187e4b8ce1 Tests for SettingsTable
- Fixed ConfigNode equals method
- Fixed SettingsTable SQL
2018-12-24 13:26:08 +02:00
Rsl1122
c68c95a608 Removed NetworkSettings and ServerSpecificSettings 2018-12-24 12:01:41 +02:00
Rsl1122
5c6442fdb2 Fixed regression issues from new code:
- Fixed StackOverFlow from ConfigNode equals using parent
- Fixed enable fail due to call to ServerInfo#getServerUUID in constructor
2018-12-24 11:45:23 +02:00
Rsl1122
b827e83dd5 Added SettingsManagers to ConfigSystems 2018-12-24 11:31:26 +02:00
Rsl1122
4791657439 [#777] Added ServerSettingsManager
- This manager updates config if database has changes, and updates the
  config in database if the file is modified.
- equals and hashcode to ConfigNode
2018-12-24 11:25:17 +02:00
Rsl1122
0acf54eed5 [#777] Added NetworkSettingManager
- This manager updates config in database if a server config file is
  updated on proxy server, and updates the config in database if the
  file is modified.
- Added a setting for the update check delay
2018-12-23 22:52:26 +02:00
Rsl1122
cfc7f25a07 Config operations 2018-12-23 22:10:54 +02:00
Rsl1122
60b771e005 Settings table store and read methods 2018-12-23 21:59:50 +02:00
Rsl1122
bf5cc170e5 Added a 'plan_settings' table
Columns:
- id (primary key int)
- server_uuid (varchar(39))
- updated (long)
- content (TEXT 65535 characters)

- Added SettingsTable
2018-12-23 21:36:53 +02:00
Rsl1122
940c414f7d Removed 'plan_transfer' table from the database
- Removed TransferTable
- Added a TransferTableRemovalPatch
- Removed TransferOperations (and Database#transfer)
- Removed SQLTransferOps
- Removed UnsupportedTransferDatabaseException
- Removed uses in NetworkSettings and related tests
2018-12-23 15:20:42 +02:00
Rsl1122
f4db11f2fa Deprecated PlanAPI#fetchFromPlanDB:
- Added a PlayerContainer wrapper and a fetchPlayerContainer method
- Added a ServerContainer wrapper and a fetchServerContainer method
- Added a fetchServerUUIDs method
2018-12-22 22:26:06 +02:00
dependabot[bot]
5234ff46fd
Bump dagger-compiler from 2.19 to 2.20 in /Plan (#855) 2018-12-21 13:49:37 +00:00
dependabot[bot]
3e2b64f57e
Bump dagger from 2.19 to 2.20 in /Plan (#854) 2018-12-21 13:40:29 +00:00
Rsl1122
a64336803f Bunch of things:
- IntelliJ Inspection fixes.
- Removed some unused code
- Added ConfigNode#getStringMap
- Removed usages of ConfigNode#getChildren
2018-12-20 13:50:40 +02:00
Rsl1122
f39e1cd95c Removed Serializer 2018-12-20 13:24:36 +02:00