fix bugs
diff --git a/dockertests/const.go b/dockertests/const.go
index c6de726..ae2b662 100644
--- a/dockertests/const.go
+++ b/dockertests/const.go
@@ -6,8 +6,7 @@
pluginName = "apigeeSyncDockerTest"
configApidClusterId = "apigeesync_cluster_id"
configProxyServerBaseURI = "apigeesync_proxy_server_base"
- configSnapServerBaseURI = "apigeesync_snapshot_server_base"
- configChangeServerBaseURI = "apigeesync_change_server_base"
+ configLocalStoragePath = "local_storage_path"
configConsumerKey = "apigeesync_consumer_key"
configConsumerSecret = "apigeesync_consumer_secret"
configName = "apigeesync_instance_name"
diff --git a/dockertests/dockerSetup.sh b/dockertests/dockerSetup.sh
index 1890078..2e845be 100755
--- a/dockertests/dockerSetup.sh
+++ b/dockertests/dockerSetup.sh
@@ -86,6 +86,7 @@
apigeesync_consumer_key: 33f39JNLosF1mDOXJoCfbauchVzPrGrl
apigeesync_consumer_secret: LAolGShAx6H3vfNF
apigeesync_cluster_id: 4c6bb536-0d64-43ca-abae-17c08f1a7e58
+local_storage_path: ${WORK_DIR}/tmp/sqlite
EOF
`
rm -f ${WORK_DIR}/dockertests/apid_config.yaml
diff --git a/dockertests/dockerTest.sh b/dockertests/dockerTest.sh
index fb5c824..5151f2f 100755
--- a/dockertests/dockerTest.sh
+++ b/dockertests/dockerTest.sh
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
source ./dockertests/dockerSetup.sh
-go test ./dockertests/*.go
+go test ./dockertests/*.go -v
./dockertests/dockerCleanup.sh
\ No newline at end of file
diff --git a/dockertests/docker_test.go b/dockertests/docker_test.go
index eb0ad02..a9431c8 100644
--- a/dockertests/docker_test.go
+++ b/dockertests/docker_test.go
@@ -34,13 +34,17 @@
pgUrl = os.Getenv("APIGEE_SYNC_DOCKER_PG_URL") + "?sslmode=disable"
os.Setenv("APID_CONFIG_FILE", "./apid_config.yaml")
+ localStorage := config.GetString(configLocalStoragePath)
+ err := os.RemoveAll(localStorage)
+ Expect(err).Should(Succeed())
+ err = os.MkdirAll(localStorage, 0700)
+ Expect(err).Should(Succeed())
apid.Initialize(factory.DefaultServicesFactory())
config = apid.Config()
// init pg driver and data
- var err error
pgManager, err = InitDb(pgUrl)
Expect(err).Should(Succeed())
initPgData()