From c2f92db4dc4cf426a9554468ef465e3c7990a950 Mon Sep 17 00:00:00 2001 From: MichaBub Date: Wed, 30 Jun 2021 15:21:13 +0200 Subject: [PATCH] change package name to have no dependency --- agency/agency.go | 2 +- agency/agency_connection.go | 4 ++-- agency/agency_health.go | 2 +- agency/agency_impl.go | 2 +- agency/error.go | 2 +- agency/lock.go | 2 +- agency/lock_errors.go | 2 +- agency/operation_test.go | 2 +- agency/transaction.go | 2 +- client_impl.go | 2 +- cluster/cluster.go | 2 +- context.go | 2 +- example_client_test.go | 4 ++-- example_context_test.go | 2 +- example_create_document_test.go | 4 ++-- example_create_documents_test.go | 4 ++-- http/authentication.go | 2 +- http/authentication_test.go | 2 +- http/connection.go | 6 +++--- http/mergeObject.go | 2 +- http/request_json.go | 2 +- http/request_vpack.go | 2 +- http/response_json.go | 2 +- http/response_json_element.go | 2 +- http/response_vpack.go | 2 +- http/response_vpack_element.go | 2 +- main_test.go | 4 ++-- test/agency_lock_test.go | 4 ++-- test/agency_test.go | 10 +++++----- test/backup_test.go | 2 +- test/check_test.go | 2 +- test/client_test.go | 12 ++++++------ test/cluster_test.go | 2 +- test/collection_schema_test.go | 2 +- test/concurrency_test.go | 2 +- test/context_test.go | 2 +- test/database_collection_defaults_test.go | 2 +- test/database_test.go | 2 +- test/document_remove_test.go | 2 +- test/document_replace_test.go | 2 +- test/document_update_test.go | 2 +- test/documents_create_test.go | 2 +- test/documents_import_test.go | 2 +- test/documents_remove_test.go | 2 +- test/documents_replace_test.go | 2 +- test/documents_update_test.go | 2 +- test/edge_collection_test.go | 2 +- test/edge_replace_test.go | 2 +- test/edges_create_test.go | 2 +- test/edges_import_test.go | 2 +- test/edges_remove_test.go | 2 +- test/edges_update_test.go | 2 +- test/failover_test.go | 2 +- test/foxx_test.go | 2 +- test/graph_creation_test.go | 2 +- test/graph_test.go | 2 +- test/index_ensure_test.go | 2 +- test/indexes_test.go | 2 +- test/job_utils_test.go | 4 ++-- test/replication_test.go | 2 +- test/revisions_test.go | 2 +- test/server_info_test.go | 2 +- test/server_mode_auth_test.go | 2 +- test/server_mode_test.go | 2 +- test/server_statistics_test.go | 2 +- test/user_auth_test.go | 2 +- test/user_test.go | 2 +- test/version.go | 2 +- test/version_test.go | 2 +- test/vertex_collection_test.go | 2 +- test/vertices_create_test.go | 2 +- test/vertices_import_test.go | 2 +- test/vertices_remove_test.go | 2 +- util/connection/wrappers/connection_logger.go | 2 +- v2/arangodb/collection_documents_create_impl.go | 6 +++--- v2/arangodb/collection_documents_read.go | 2 +- v2/arangodb/collection_documents_read_impl.go | 4 ++-- v2/arangodb/database_impl.go | 4 ++-- v2/arangodb/database_transaction_impl.go | 2 +- v2/arangodb/meta.go | 2 +- v2/arangodb/transaction_impl.go | 4 ++-- v2/connection/connection_http_internal.go | 2 +- v2/go.mod | 6 +----- v2/go.sum | 16 +++------------- v2/tests/main_test.go | 2 +- 85 files changed, 110 insertions(+), 124 deletions(-) diff --git a/agency/agency.go b/agency/agency.go index 22d686c8..446d9390 100644 --- a/agency/agency.go +++ b/agency/agency.go @@ -27,7 +27,7 @@ import ( "context" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // Agency provides API implemented by the ArangoDB agency. diff --git a/agency/agency_connection.go b/agency/agency_connection.go index 1ff703fb..a8eef5b6 100644 --- a/agency/agency_connection.go +++ b/agency/agency_connection.go @@ -28,8 +28,8 @@ import ( "sync" "time" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/http" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/http" ) const ( diff --git a/agency/agency_health.go b/agency/agency_health.go index 6f81d068..2b1bb84a 100644 --- a/agency/agency_health.go +++ b/agency/agency_health.go @@ -31,7 +31,7 @@ import ( "sync" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) const ( diff --git a/agency/agency_impl.go b/agency/agency_impl.go index b7e7fbad..972bb8f8 100644 --- a/agency/agency_impl.go +++ b/agency/agency_impl.go @@ -30,7 +30,7 @@ import ( "strings" "time" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" ) var ( diff --git a/agency/error.go b/agency/error.go index ddbc3fdf..f472437f 100644 --- a/agency/error.go +++ b/agency/error.go @@ -27,7 +27,7 @@ import ( "net/http" "strings" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) var ( diff --git a/agency/lock.go b/agency/lock.go index 11fc3414..9195a165 100644 --- a/agency/lock.go +++ b/agency/lock.go @@ -29,7 +29,7 @@ import ( "sync" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) const ( diff --git a/agency/lock_errors.go b/agency/lock_errors.go index d6b468cb..e4e369fb 100644 --- a/agency/lock_errors.go +++ b/agency/lock_errors.go @@ -25,7 +25,7 @@ package agency import ( "errors" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) var ( diff --git a/agency/operation_test.go b/agency/operation_test.go index bfea681c..20367244 100644 --- a/agency/operation_test.go +++ b/agency/operation_test.go @@ -25,7 +25,7 @@ package agency_test import ( "testing" - "github.com/arangodb/go-driver/agency" + "github.com/michabub/go-driver/agency" "github.com/stretchr/testify/require" ) diff --git a/agency/transaction.go b/agency/transaction.go index 361e0148..99dc66cf 100644 --- a/agency/transaction.go +++ b/agency/transaction.go @@ -25,7 +25,7 @@ package agency import ( "fmt" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" ) // TransactionOptions defines options how transaction should behave. diff --git a/client_impl.go b/client_impl.go index ef71d39f..f423a286 100644 --- a/client_impl.go +++ b/client_impl.go @@ -27,7 +27,7 @@ import ( "path" "time" - "github.com/arangodb/go-driver/util" + "github.com/michabub/go-driver/util" ) // NewClient creates a new Client based on the given config setting. diff --git a/cluster/cluster.go b/cluster/cluster.go index 1eb5dff4..a98c1886 100644 --- a/cluster/cluster.go +++ b/cluster/cluster.go @@ -31,7 +31,7 @@ import ( "sync" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) const ( diff --git a/context.go b/context.go index 6d5f9c86..41637024 100644 --- a/context.go +++ b/context.go @@ -28,7 +28,7 @@ import ( "reflect" "strconv" - "github.com/arangodb/go-driver/util" + "github.com/michabub/go-driver/util" ) // ContextKey is an internal type used for holding values in a `context.Context` diff --git a/example_client_test.go b/example_client_test.go index dc9d26c5..80c6d9cf 100644 --- a/example_client_test.go +++ b/example_client_test.go @@ -28,8 +28,8 @@ import ( "fmt" "log" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/http" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/http" ) func ExampleNewClient() { diff --git a/example_context_test.go b/example_context_test.go index fc10b2d9..47a6d305 100644 --- a/example_context_test.go +++ b/example_context_test.go @@ -27,7 +27,7 @@ package driver_test import ( "context" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) func ExampleWithRevision(collection driver.Collection) { diff --git a/example_create_document_test.go b/example_create_document_test.go index d9bb3510..af744499 100644 --- a/example_create_document_test.go +++ b/example_create_document_test.go @@ -29,8 +29,8 @@ import ( "fmt" "log" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/http" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/http" ) type Book struct { diff --git a/example_create_documents_test.go b/example_create_documents_test.go index ec745bd3..7b58a1d4 100644 --- a/example_create_documents_test.go +++ b/example_create_documents_test.go @@ -31,8 +31,8 @@ import ( "log" "strings" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/http" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/http" ) type User struct { diff --git a/http/authentication.go b/http/authentication.go index 71b1c806..ee54f99a 100644 --- a/http/authentication.go +++ b/http/authentication.go @@ -30,7 +30,7 @@ import ( "sync" "sync/atomic" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // ErrAuthenticationNotChanged is returned when authentication is not changed. diff --git a/http/authentication_test.go b/http/authentication_test.go index 71ede6fd..2eab13dd 100644 --- a/http/authentication_test.go +++ b/http/authentication_test.go @@ -25,7 +25,7 @@ package http import ( "testing" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/stretchr/testify/assert" ) diff --git a/http/connection.go b/http/connection.go index 7ff749ac..17ede5df 100644 --- a/http/connection.go +++ b/http/connection.go @@ -37,9 +37,9 @@ import ( "sync" "time" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/cluster" - "github.com/arangodb/go-driver/util" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/cluster" + "github.com/michabub/go-driver/util" velocypack "github.com/arangodb/go-velocypack" ) diff --git a/http/mergeObject.go b/http/mergeObject.go index c11dda23..602af9df 100644 --- a/http/mergeObject.go +++ b/http/mergeObject.go @@ -25,7 +25,7 @@ package http import ( "encoding/json" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // mergeObject is a helper used to merge 2 objects into JSON. diff --git a/http/request_json.go b/http/request_json.go index e2727b99..0c34bae2 100644 --- a/http/request_json.go +++ b/http/request_json.go @@ -34,7 +34,7 @@ import ( "strconv" "strings" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // httpRequest implements driver.Request using standard golang http requests. diff --git a/http/request_vpack.go b/http/request_vpack.go index b0ef52ac..9c05bfd5 100644 --- a/http/request_vpack.go +++ b/http/request_vpack.go @@ -27,7 +27,7 @@ import ( "fmt" "reflect" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" velocypack "github.com/arangodb/go-velocypack" ) diff --git a/http/response_json.go b/http/response_json.go index 14274eb4..4d7380f1 100644 --- a/http/response_json.go +++ b/http/response_json.go @@ -29,7 +29,7 @@ import ( "reflect" "strings" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // httpJSONResponse implements driver.Response for standard golang JSON encoded http responses. diff --git a/http/response_json_element.go b/http/response_json_element.go index 17b50e1f..2875b97b 100644 --- a/http/response_json_element.go +++ b/http/response_json_element.go @@ -26,7 +26,7 @@ import ( "encoding/json" "fmt" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // httpJSONResponseElement implements driver.Response for an entry of an array response. diff --git a/http/response_vpack.go b/http/response_vpack.go index f87cf261..f19c09af 100644 --- a/http/response_vpack.go +++ b/http/response_vpack.go @@ -26,7 +26,7 @@ import ( "fmt" "net/http" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" velocypack "github.com/arangodb/go-velocypack" ) diff --git a/http/response_vpack_element.go b/http/response_vpack_element.go index 1b81d7ea..3e9f8ed8 100644 --- a/http/response_vpack_element.go +++ b/http/response_vpack_element.go @@ -25,7 +25,7 @@ package http import ( "fmt" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" velocypack "github.com/arangodb/go-velocypack" ) diff --git a/main_test.go b/main_test.go index 8d6a1e1f..a8d7d8f9 100644 --- a/main_test.go +++ b/main_test.go @@ -29,8 +29,8 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/http" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/http" ) // TestMain creates a simple connection and waits for the server to be ready. diff --git a/test/agency_lock_test.go b/test/agency_lock_test.go index c606f2ce..61c49450 100644 --- a/test/agency_lock_test.go +++ b/test/agency_lock_test.go @@ -27,8 +27,8 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/agency" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/agency" ) // TestAgencyLock tests the agency.Lock interface. diff --git a/test/agency_test.go b/test/agency_test.go index 09c23c1f..2b83d29c 100644 --- a/test/agency_test.go +++ b/test/agency_test.go @@ -33,11 +33,11 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/agency" - httpdriver "github.com/arangodb/go-driver/http" - "github.com/arangodb/go-driver/jwt" - "github.com/arangodb/go-driver/util" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/agency" + httpdriver "github.com/michabub/go-driver/http" + "github.com/michabub/go-driver/jwt" + "github.com/michabub/go-driver/util" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/test/backup_test.go b/test/backup_test.go index 1293f016..9037f991 100644 --- a/test/backup_test.go +++ b/test/backup_test.go @@ -32,7 +32,7 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" errors "github.com/pkg/errors" ) diff --git a/test/check_test.go b/test/check_test.go index 2fdb7f28..d4d45176 100644 --- a/test/check_test.go +++ b/test/check_test.go @@ -26,7 +26,7 @@ import ( "context" "net/http" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" ) type driverErrorCheckFunc func(err error) (bool, error) diff --git a/test/client_test.go b/test/client_test.go index 49689dc8..4cfb5f93 100644 --- a/test/client_test.go +++ b/test/client_test.go @@ -35,7 +35,7 @@ import ( "testing" "time" - "github.com/arangodb/go-driver/util/connection/wrappers" + "github.com/michabub/go-driver/util/connection/wrappers" "github.com/rs/zerolog" "github.com/stretchr/testify/assert" @@ -43,11 +43,11 @@ import ( _ "net/http/pprof" - driver "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/http" - "github.com/arangodb/go-driver/jwt" - "github.com/arangodb/go-driver/vst" - "github.com/arangodb/go-driver/vst/protocol" + driver "github.com/michabub/go-driver" + "github.com/michabub/go-driver/http" + "github.com/michabub/go-driver/jwt" + "github.com/michabub/go-driver/vst" + "github.com/michabub/go-driver/vst/protocol" ) var ( diff --git a/test/cluster_test.go b/test/cluster_test.go index 38117833..b6e44bd5 100644 --- a/test/cluster_test.go +++ b/test/cluster_test.go @@ -27,7 +27,7 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestClusterHealth tests the Cluster.Health method. diff --git a/test/collection_schema_test.go b/test/collection_schema_test.go index 10cc6520..5bc94306 100644 --- a/test/collection_schema_test.go +++ b/test/collection_schema_test.go @@ -28,7 +28,7 @@ import ( "net/http" "testing" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/stretchr/testify/require" ) diff --git a/test/concurrency_test.go b/test/concurrency_test.go index 3747d667..d9ce11c7 100644 --- a/test/concurrency_test.go +++ b/test/concurrency_test.go @@ -31,7 +31,7 @@ import ( "sync" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestConcurrentCreateSmallDocuments make a lot of concurrent CreateDocument calls. diff --git a/test/context_test.go b/test/context_test.go index b7183e8c..0cec3782 100644 --- a/test/context_test.go +++ b/test/context_test.go @@ -26,7 +26,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestContextParentNil calls all WithXyz context functions with a nil parent context. diff --git a/test/database_collection_defaults_test.go b/test/database_collection_defaults_test.go index 4ded40ba..e3c1405c 100644 --- a/test/database_collection_defaults_test.go +++ b/test/database_collection_defaults_test.go @@ -28,7 +28,7 @@ import ( "github.com/dchest/uniuri" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/stretchr/testify/require" ) diff --git a/test/database_test.go b/test/database_test.go index 423de814..b90ce311 100644 --- a/test/database_test.go +++ b/test/database_test.go @@ -31,7 +31,7 @@ import ( "github.com/dchest/uniuri" "github.com/stretchr/testify/require" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" ) // databaseName is helper to create database name in non-colliding way diff --git a/test/document_remove_test.go b/test/document_remove_test.go index bd01d199..41271cec 100644 --- a/test/document_remove_test.go +++ b/test/document_remove_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestReplaceDocument creates a document, remove it and then checks the removal has succeeded. diff --git a/test/document_replace_test.go b/test/document_replace_test.go index d033e219..edd7dbb8 100644 --- a/test/document_replace_test.go +++ b/test/document_replace_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestReplaceDocument creates a document, replaces it and then checks the replacement has succeeded. diff --git a/test/document_update_test.go b/test/document_update_test.go index ab70f400..4dda8ed8 100644 --- a/test/document_update_test.go +++ b/test/document_update_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestUpdateDocument1 creates a document, updates it and then checks the update has succeeded. diff --git a/test/documents_create_test.go b/test/documents_create_test.go index 1ee066ac..44200847 100644 --- a/test/documents_create_test.go +++ b/test/documents_create_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestCreateDocuments creates a document and then checks that it exists. diff --git a/test/documents_import_test.go b/test/documents_import_test.go index 414fb793..3e727351 100644 --- a/test/documents_import_test.go +++ b/test/documents_import_test.go @@ -25,7 +25,7 @@ package test import ( "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestImportDocumentsWithKeys imports documents and then checks that it exists. diff --git a/test/documents_remove_test.go b/test/documents_remove_test.go index a52f6936..3241788b 100644 --- a/test/documents_remove_test.go +++ b/test/documents_remove_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestReplaceDocuments creates documents, removes them and then checks the removal has succeeded. diff --git a/test/documents_replace_test.go b/test/documents_replace_test.go index 19748560..3260b120 100644 --- a/test/documents_replace_test.go +++ b/test/documents_replace_test.go @@ -28,7 +28,7 @@ import ( "strings" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestReplaceDocuments creates documents, replaces them and then checks the replacements have succeeded. diff --git a/test/documents_update_test.go b/test/documents_update_test.go index a4ccad15..c5e9c452 100644 --- a/test/documents_update_test.go +++ b/test/documents_update_test.go @@ -29,7 +29,7 @@ import ( "strings" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestUpdateDocuments1 creates documents, updates them and then checks the updates have succeeded. diff --git a/test/edge_collection_test.go b/test/edge_collection_test.go index 96056975..76371534 100644 --- a/test/edge_collection_test.go +++ b/test/edge_collection_test.go @@ -27,7 +27,7 @@ import ( "strings" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // ensureEdgeCollection returns the edge collection with given name, creating it if needed. diff --git a/test/edge_replace_test.go b/test/edge_replace_test.go index 957e8566..c7741a50 100644 --- a/test/edge_replace_test.go +++ b/test/edge_replace_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestReplaceEdge creates a document, replaces it and then checks the replacement has succeeded. diff --git a/test/edges_create_test.go b/test/edges_create_test.go index 8875b93c..6641682a 100644 --- a/test/edges_create_test.go +++ b/test/edges_create_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestCreateEdges creates documents and then checks that it exists. diff --git a/test/edges_import_test.go b/test/edges_import_test.go index 55c46f9b..c271912f 100644 --- a/test/edges_import_test.go +++ b/test/edges_import_test.go @@ -27,7 +27,7 @@ import ( "fmt" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestImportEdgesWithKeys imports documents and then checks that it exists. diff --git a/test/edges_remove_test.go b/test/edges_remove_test.go index f506f865..a596f360 100644 --- a/test/edges_remove_test.go +++ b/test/edges_remove_test.go @@ -26,7 +26,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestRemoveEdges creates documents, removes them and then checks the removal has succeeded. diff --git a/test/edges_update_test.go b/test/edges_update_test.go index e324ef39..bd59e9f0 100644 --- a/test/edges_update_test.go +++ b/test/edges_update_test.go @@ -29,7 +29,7 @@ import ( "strings" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestUpdateEdges creates documents, updates them and then checks the updates have succeeded. diff --git a/test/failover_test.go b/test/failover_test.go index 7d3a4179..b5987d5e 100644 --- a/test/failover_test.go +++ b/test/failover_test.go @@ -33,7 +33,7 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" "github.com/coreos/go-iptables/iptables" ) diff --git a/test/foxx_test.go b/test/foxx_test.go index 22db473c..19d5635a 100644 --- a/test/foxx_test.go +++ b/test/foxx_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/stretchr/testify/require" ) diff --git a/test/graph_creation_test.go b/test/graph_creation_test.go index d3e2c1c8..d8626673 100644 --- a/test/graph_creation_test.go +++ b/test/graph_creation_test.go @@ -27,7 +27,7 @@ import ( "testing" "time" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/stretchr/testify/require" ) diff --git a/test/graph_test.go b/test/graph_test.go index 54127941..3ab1c316 100644 --- a/test/graph_test.go +++ b/test/graph_test.go @@ -26,7 +26,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // ensureGraph is a helper to check if a graph exists and create if if needed. diff --git a/test/index_ensure_test.go b/test/index_ensure_test.go index 09654129..a43d70f4 100644 --- a/test/index_ensure_test.go +++ b/test/index_ensure_test.go @@ -26,7 +26,7 @@ import ( "fmt" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestEnsureFullTextIndex creates a collection with a full text index. diff --git a/test/indexes_test.go b/test/indexes_test.go index c95bc052..89a2cb49 100644 --- a/test/indexes_test.go +++ b/test/indexes_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestDefaultIndexes creates a collection without any custom index. diff --git a/test/job_utils_test.go b/test/job_utils_test.go index 11e23975..bc5bccc2 100644 --- a/test/job_utils_test.go +++ b/test/job_utils_test.go @@ -27,8 +27,8 @@ import ( "testing" "time" - "github.com/arangodb/go-driver" - "github.com/arangodb/go-driver/agency" + "github.com/michabub/go-driver" + "github.com/michabub/go-driver/agency" "github.com/stretchr/testify/require" ) diff --git a/test/replication_test.go b/test/replication_test.go index 4143b6cf..8561c272 100644 --- a/test/replication_test.go +++ b/test/replication_test.go @@ -32,7 +32,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestReplicationDatabaseInventory tests the Replication.DatabaseInventory method. diff --git a/test/revisions_test.go b/test/revisions_test.go index b8294835..1a3658d8 100644 --- a/test/revisions_test.go +++ b/test/revisions_test.go @@ -30,7 +30,7 @@ import ( "testing" "time" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/stretchr/testify/require" ) diff --git a/test/server_info_test.go b/test/server_info_test.go index d10d5ffb..08eab2a8 100644 --- a/test/server_info_test.go +++ b/test/server_info_test.go @@ -26,7 +26,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestServerID tests ClientServerInfo.ServerID. diff --git a/test/server_mode_auth_test.go b/test/server_mode_auth_test.go index b1d4eb8e..0299cc65 100644 --- a/test/server_mode_auth_test.go +++ b/test/server_mode_auth_test.go @@ -28,7 +28,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestServerModeAndGrants checks user access grants in combination with diff --git a/test/server_mode_test.go b/test/server_mode_test.go index ccdc4863..2a22abd7 100644 --- a/test/server_mode_test.go +++ b/test/server_mode_test.go @@ -27,7 +27,7 @@ import ( "os" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestServerMode creates a database and checks the various server modes. diff --git a/test/server_statistics_test.go b/test/server_statistics_test.go index 0e433acf..59c5a51c 100644 --- a/test/server_statistics_test.go +++ b/test/server_statistics_test.go @@ -29,7 +29,7 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) func checkEnabled(t *testing.T, c driver.Client, ctx context.Context) { diff --git a/test/user_auth_test.go b/test/user_auth_test.go index 9212a347..7e8245e6 100644 --- a/test/user_auth_test.go +++ b/test/user_auth_test.go @@ -29,7 +29,7 @@ import ( "testing" "time" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestUpdateUserPasswordMyself creates a user and tries to update the password of the authenticated user. diff --git a/test/user_test.go b/test/user_test.go index c643cc89..36ed1efd 100644 --- a/test/user_test.go +++ b/test/user_test.go @@ -28,7 +28,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // ensureUser is a helper to check if a user exists and create it if needed. diff --git a/test/version.go b/test/version.go index f3231764..3df7068b 100644 --- a/test/version.go +++ b/test/version.go @@ -27,7 +27,7 @@ import ( "fmt" "testing" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/stretchr/testify/require" ) diff --git a/test/version_test.go b/test/version_test.go index 202eb05a..89714fdf 100644 --- a/test/version_test.go +++ b/test/version_test.go @@ -25,7 +25,7 @@ package test import ( "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestVersion tests Version functions. diff --git a/test/vertex_collection_test.go b/test/vertex_collection_test.go index 2287cd43..b4dc8066 100644 --- a/test/vertex_collection_test.go +++ b/test/vertex_collection_test.go @@ -26,7 +26,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // ensureVertexCollection returns the vertex collection with given name, creating it if needed. diff --git a/test/vertices_create_test.go b/test/vertices_create_test.go index bde76663..c367e9dd 100644 --- a/test/vertices_create_test.go +++ b/test/vertices_create_test.go @@ -27,7 +27,7 @@ import ( "reflect" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestCreateVertices creates documents and then checks that it exists. diff --git a/test/vertices_import_test.go b/test/vertices_import_test.go index cc3edfb7..08b63948 100644 --- a/test/vertices_import_test.go +++ b/test/vertices_import_test.go @@ -26,7 +26,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestImportVerticesWithKeys imports documents and then checks that it exists. diff --git a/test/vertices_remove_test.go b/test/vertices_remove_test.go index a517d43b..b2ac8771 100644 --- a/test/vertices_remove_test.go +++ b/test/vertices_remove_test.go @@ -26,7 +26,7 @@ import ( "context" "testing" - driver "github.com/arangodb/go-driver" + driver "github.com/michabub/go-driver" ) // TestRemoveVertices creates documents, removes them and then checks the removal has succeeded. diff --git a/util/connection/wrappers/connection_logger.go b/util/connection/wrappers/connection_logger.go index 8d829b32..fa5fe142 100644 --- a/util/connection/wrappers/connection_logger.go +++ b/util/connection/wrappers/connection_logger.go @@ -28,7 +28,7 @@ import ( "strings" "time" - "github.com/arangodb/go-driver" + "github.com/michabub/go-driver" "github.com/pkg/errors" ) diff --git a/v2/arangodb/collection_documents_create_impl.go b/v2/arangodb/collection_documents_create_impl.go index 075f40b3..76ed2b9f 100644 --- a/v2/arangodb/collection_documents_create_impl.go +++ b/v2/arangodb/collection_documents_create_impl.go @@ -27,9 +27,9 @@ import ( "io" "net/http" - "github.com/arangodb/go-driver/v2/arangodb/shared" - "github.com/arangodb/go-driver/v2/connection" - "github.com/arangodb/go-driver/v2/utils" + "github.com/michabub/go-driver/v2/arangodb/shared" + "github.com/michabub/go-driver/v2/connection" + "github.com/michabub/go-driver/v2/utils" "github.com/pkg/errors" ) diff --git a/v2/arangodb/collection_documents_read.go b/v2/arangodb/collection_documents_read.go index d9796032..1643cdaa 100644 --- a/v2/arangodb/collection_documents_read.go +++ b/v2/arangodb/collection_documents_read.go @@ -25,7 +25,7 @@ package arangodb import ( "context" - "github.com/arangodb/go-driver/v2/connection" + "github.com/michabub/go-driver/v2/connection" ) type CollectionDocumentRead interface { diff --git a/v2/arangodb/collection_documents_read_impl.go b/v2/arangodb/collection_documents_read_impl.go index 0bc95829..33c3282c 100644 --- a/v2/arangodb/collection_documents_read_impl.go +++ b/v2/arangodb/collection_documents_read_impl.go @@ -27,8 +27,8 @@ import ( "io" "net/http" - "github.com/arangodb/go-driver/v2/arangodb/shared" - "github.com/arangodb/go-driver/v2/connection" + "github.com/michabub/go-driver/v2/arangodb/shared" + "github.com/michabub/go-driver/v2/connection" ) func newCollectionDocumentRead(collection *collection) *collectionDocumentRead { diff --git a/v2/arangodb/database_impl.go b/v2/arangodb/database_impl.go index cd24e27a..18499444 100644 --- a/v2/arangodb/database_impl.go +++ b/v2/arangodb/database_impl.go @@ -26,8 +26,8 @@ import ( "context" "net/http" - "github.com/arangodb/go-driver/v2/arangodb/shared" - "github.com/arangodb/go-driver/v2/connection" + "github.com/michabub/go-driver/v2/arangodb/shared" + "github.com/michabub/go-driver/v2/connection" ) func newDatabase(c *client, name string, modifiers ...connection.RequestModifier) *database { diff --git a/v2/arangodb/database_transaction_impl.go b/v2/arangodb/database_transaction_impl.go index 3d308525..66a101c5 100644 --- a/v2/arangodb/database_transaction_impl.go +++ b/v2/arangodb/database_transaction_impl.go @@ -28,7 +28,7 @@ import ( "github.com/michabub/go-driver/v2/arangodb/shared" - "github.com/arangodb/go-driver/v2/connection" + "github.com/michabub/go-driver/v2/connection" "github.com/pkg/errors" ) diff --git a/v2/arangodb/meta.go b/v2/arangodb/meta.go index 8bc64ad0..56d58366 100644 --- a/v2/arangodb/meta.go +++ b/v2/arangodb/meta.go @@ -23,7 +23,7 @@ package arangodb import ( - "github.com/arangodb/go-driver/v2/arangodb/shared" + "github.com/michabub/go-driver/v2/arangodb/shared" "github.com/pkg/errors" ) diff --git a/v2/arangodb/transaction_impl.go b/v2/arangodb/transaction_impl.go index fc909b02..f5be1679 100644 --- a/v2/arangodb/transaction_impl.go +++ b/v2/arangodb/transaction_impl.go @@ -26,9 +26,9 @@ import ( "context" "net/http" - "github.com/arangodb/go-driver/v2/arangodb/shared" + "github.com/michabub/go-driver/v2/arangodb/shared" - "github.com/arangodb/go-driver/v2/connection" + "github.com/michabub/go-driver/v2/connection" "github.com/pkg/errors" ) diff --git a/v2/connection/connection_http_internal.go b/v2/connection/connection_http_internal.go index 0eb42ff1..76746c12 100644 --- a/v2/connection/connection_http_internal.go +++ b/v2/connection/connection_http_internal.go @@ -33,7 +33,7 @@ import ( "path" "strings" - "github.com/arangodb/go-driver/v2/log" + "github.com/michabub/go-driver/v2/log" "github.com/google/uuid" "github.com/pkg/errors" _ "golang.org/x/net/http2" diff --git a/v2/go.mod b/v2/go.mod index 17c3e536..5d2e906c 100644 --- a/v2/go.mod +++ b/v2/go.mod @@ -4,14 +4,10 @@ go 1.13 require ( github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/dgrijalva/jwt-go v3.2.0+incompatible + github.com/golang-jwt/jwt v3.2.1+incompatible github.com/google/uuid v1.1.1 - github.com/kr/pretty v0.2.0 // indirect github.com/pkg/errors v0.9.1 github.com/rs/zerolog v1.19.0 github.com/stretchr/testify v1.5.1 golang.org/x/net v0.0.0-20190620200207-3b0461eec859 - gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect - gopkg.in/yaml.v2 v2.2.8 // indirect ) diff --git a/v2/go.sum b/v2/go.sum index d8fefcc3..22a69507 100644 --- a/v2/go.sum +++ b/v2/go.sum @@ -3,17 +3,10 @@ github.com/arangodb/go-velocypack v0.0.0-20200318135517-5af53c29c67e/go.mod h1:m github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM= -github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= +github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I= github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/kr/pretty v0.2.0 h1:s5hAObm+yFO5uHYt5dYjxi2rXrsnmRpJx4OYvIWUaQs= -github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -34,10 +27,7 @@ golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/tools v0.0.0-20190828213141-aed303cbaa74/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= -gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= -gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= diff --git a/v2/tests/main_test.go b/v2/tests/main_test.go index fcd90140..eaff8b0d 100644 --- a/v2/tests/main_test.go +++ b/v2/tests/main_test.go @@ -23,7 +23,7 @@ package tests import ( - log2 "github.com/arangodb/go-driver/v2/log" + log2 "github.com/michabub/go-driver/v2/log" "github.com/rs/zerolog" "github.com/rs/zerolog/log" )