Conversation
-Changes, to use secure connection , whenever security is enabled in all the tests. -Added commonProps.inc, that will enable/disable security , in all the cluster start files.
-Created a separate security.inc ,that will include all ,security related configuration.
…tests. - Added security check during individual start up.
sonalsagarwal
left a comment
There was a problem hiding this comment.
Please check the comments. Also remove empty files.
| @@ -0,0 +1,30 @@ | |||
| io/snappydata/hydra/security/startLdapServer.conf | |||
There was a problem hiding this comment.
Remove this conf from the bt.
| @@ -1,3 +1,8 @@ | |||
| io/snappydata/hydra/security/startLdapServer.conf | |||
There was a problem hiding this comment.
Remove this conf from the bt.
| hydra.ClientPrms-gemfireNames = gemfire1; | ||
| hydra.GemFirePrms-distributedSystem = ds; | ||
|
|
||
| THREADGROUP snappyStoreThreads |
There was a problem hiding this comment.
Change to thread group name to single thread.
| @@ -0,0 +1,2 @@ | |||
| io.snappydata.hydra.security.SnappySecurityPrms-isSecurity = ONEOF true true false FOENO; | |||
| io.snappydata.hydra.security.SnappySecurityPrms-passFile = /export/dev9a/users/spillai/snappydata/dtests/src/test/java/io/snappydata/hydra/cluster/commonPassFile.txt; | |||
There was a problem hiding this comment.
Change the file location to shared location.
| " USING row OPTIONS(PERSISTENT '${persistenceMode}')" | ||
| " USING row OPTIONS(partition_by 'OrderID', buckets '13', redundancy '${redundantCopies}', PERSISTENT '${persistenceMode}')" | ||
| " USING row OPTIONS(partition_by 'OrderID', buckets '13', COLOCATE_WITH 'orders', redundancy '${redundantCopies}', PERSISTENT '${persistenceMode}')" | ||
| " USING row OPTIONS(partition_by 'OrderID', buckets '13', COLOCATE_WITH 'gemfire1.orders', redundancy '${redundantCopies}', PERSISTENT '${persistenceMode}')" |
There was a problem hiding this comment.
Remove the schema name, as tests without security enabled will fail when they dont find 'gemfire1' schema.
| "create table app.suppliers(SupplierID int NOT NULL PRIMARY KEY,CompanyName varchar(100),ContactName varchar(100),ContactTitle varchar(100),Address varchar(100),City varchar(100),Region varchar(100),PostalCode varchar(100),Country varchar(100),Phone varchar(100),Fax varchar(100),HomePage varchar(100),tid int) " | ||
| "create table app.territories(TerritoryID varchar(100) NOT NULL PRIMARY KEY,TerritoryDescription varchar(100),RegionID varchar(100),tid int)" | ||
| "create table app.employee_territories(EmployeeID int,TerritoryID varchar(100) NOT NULL PRIMARY KEY,tid int)" | ||
| "create table gemfire1.regions (RegionID int NOT NULL PRIMARY KEY,RegionDescription varchar(100),tid int)" |
There was a problem hiding this comment.
Remove the schema name from table name.
| C=locator locatorHosts=2 locatorVMsPerHost=1 locatorThreadsPerVM=1 | ||
| D=worker workerHosts=1 workerVMsPerHost=1 workerThreadsPerVM=1 | ||
| persistenceMode="sync" redundantCopies=1 | ||
| derbyDataLocation="$GEMFIRE/../../../tests/common/src/main/resources/northwind_derby" |
| " USING row OPTIONS(PERSISTENT '${persistenceMode}')" | ||
| " USING row OPTIONS(partition_by 'PostalCode,Region', buckets '19', redundancy '${redundantCopies}',PERSISTENT '${persistenceMode}')" | ||
| " USING column OPTIONS(partition_by 'PostalCode,Region', buckets '19', colocate_with 'employees',redundancy '${redundantCopies}', PERSISTENT '${persistenceMode}')" | ||
| " USING column OPTIONS(partition_by 'PostalCode,Region', buckets '19', colocate_with 'gemfire1.employees',redundancy '${redundantCopies}', PERSISTENT '${persistenceMode}')" |
There was a problem hiding this comment.
Remove schema name from table name.
| @@ -1,31 +1,31 @@ | |||
| sql.SQLPrms-createSchemas = "create schema app"; | |||
| sql.SQLPrms-createSchemas = "create schema gemfire1"; | |||
There was a problem hiding this comment.
Remove schema name from this file.
Conflicts: dtests/src/test/java/io/snappydata/hydra/cdcConnector/CDCIngestionApp.java
8b43301 to
2b254d9
Compare
2c254f0 to
0f2888f
Compare
a466d26 to
ea127bd
Compare
99ec79c to
c7b84fa
Compare
Changes proposed in this pull request
Added support in hydra framework to start a secure cluster ,whenever the Security flag is enabled.
Changed the hard coded app. schema .
Added a startLdapServer.bt that will start the Ldap server in the beginning of the regression.
Patch testing
Ran full regression with security flag enabled.
ReleaseNotes.txt changes
(Does this change require an entry in ReleaseNotes.txt? If yes, has it been added to it?)
Other PRs
(Does this change require changes in other projects- store, spark, spark-jobserver, aqp? Add the links of PR of the other subprojects that are related to this change)