Skip to content

Instantly share code, notes, and snippets.

[DEFAULT]
bind_ip = 127.0.0.1
bind_port = 8080
workers = 1
user = dfg
log_facility = LOG_LOCAL1
eventlet_debug = true
## FOR KEYSTONE !! tempauth_enabled = false
func TestSwiftObjectRoundtrip(t *testing.T) {
driveRoot, err := ioutil.TempDir("", "")
require.Nil(t, err)
defer os.RemoveAll(driveRoot)
testSwiftObjectRoundtrip(&SwiftEngine{driveRoot: driveRoot, hashPathPrefix: "prefix", hashPathSuffix: "suffix"}, t)
}
func TestNurseryObjectRoundtrip(t *testing.T) {
driveRoot, err := ioutil.TempDir("", "")
require.Nil(t, err)
dfg@haio:~/hansible$ sudo lsof | grep /srv/hb/4/sdb8/objects/hec.db/index.db.0 | awk '{print $10}' | sort | uniq -c | sort -n
16 /srv/hb/4/sdb8/objects/hec.db/index.db.00
16 /srv/hb/4/sdb8/objects/hec.db/index.db.00-wal
16 /srv/hb/4/sdb8/objects/hec.db/index.db.01
16 /srv/hb/4/sdb8/objects/hec.db/index.db.01-wal
16 /srv/hb/4/sdb8/objects/hec.db/index.db.02
16 /srv/hb/4/sdb8/objects/hec.db/index.db.02-wal
16 /srv/hb/4/sdb8/objects/hec.db/index.db.03
16 /srv/hb/4/sdb8/objects/hec.db/index.db.03-wal
16 /srv/hb/4/sdb8/objects/hec.db/index.db.04