Skip to content

Commit

Permalink
remove comment slashes + add test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Nov 29, 2023
1 parent 33dfe17 commit 868f0c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions rest/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2746,6 +2746,10 @@ func TestNullDocHandlingForMutable1xBody(t *testing.T) {
assert.Contains(t, err.Error(), "null doc body for doc")
}

// TestDatabaseXattrConfigHandlingForDBConfigUpdate:
// - Create database with xattrs enabled
// - Test updating the config to disable the use of xattrs in this database through replacing + upserting the config
// - Assert error code is returned and response contains error string
func TestDatabaseXattrConfigHandlingForDBConfigUpdate(t *testing.T) {
base.LongRunningTest(t)
const (
Expand Down Expand Up @@ -2794,6 +2798,9 @@ func TestDatabaseXattrConfigHandlingForDBConfigUpdate(t *testing.T) {
}
}

// TestCreateDBWithXattrsDisbaled:
// - Test that you cannot create a database with xattrs disabled
// - Assert error code is returned and response contains error string
func TestCreateDBWithXattrsDisbaled(t *testing.T) {
rt := NewRestTester(t, &RestTesterConfig{
PersistentConfig: true,
Expand Down
2 changes: 1 addition & 1 deletion rest/server_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,7 @@ func dbcOptionsFromConfig(ctx context.Context, sc *ServerContext, config *DbConf
LocalJWTConfig: config.LocalJWTConfig,
DBOnlineCallback: dbOnlineCallback,
ImportOptions: *importOptions,
EnableXattr: config.UseXattrs(), //
EnableXattr: config.UseXattrs(),
SecureCookieOverride: secureCookieOverride,
SessionCookieName: config.SessionCookieName,
SessionCookieHttpOnly: base.BoolDefault(config.SessionCookieHTTPOnly, false),
Expand Down

0 comments on commit 868f0c6

Please sign in to comment.