If certain environment variables are set, for example to turn on XATTR support, then update the DatabaseContextOptions accordingly
(dbcOptions *DatabaseContextOptions)
| 566 | // If certain environment variables are set, for example to turn on XATTR support, then update |
| 567 | // the DatabaseContextOptions accordingly |
| 568 | func AddOptionsFromEnvironmentVariables(dbcOptions *DatabaseContextOptions) { |
| 569 | if base.TestUseXattrs() { |
| 570 | dbcOptions.EnableXattr = true |
| 571 | } |
| 572 | |
| 573 | if base.TestsDisableGSI() { |
| 574 | dbcOptions.UseViews = true |
| 575 | } |
| 576 | } |
| 577 | |
| 578 | // SetupTestDBWithOptions creates an online test db with the specified database context options. Note that environment variables will override values (SG_TEST_USE_XATTRS, SG_TEST_USE_DEFAULT_COLLECTION). |
| 579 | // override somedbcOptions properties. |