# README
Run Tests Against Dgraph Cloud
Setup Env Variables
- set
TEST_DGRAPH_CLOUD_CLUSTER_URL
to the URL that the dgo client should use - set
TEST_DGRAPH_CLOUD_CLUSTER_TOKEN
to one of API keys that you can generate on theSettings
page on the cloud UI TEST_DGRAPH_CLOUD_ACL
tofalse
if ACLs are disabled. By default, ACLs are assumed to be enabled.
Schema Mode
The tests require the Schema Mode
to be set to Flexible
from the Settings
page on the cloud
UI.
Running Tests
go test -tags=cloud ./...
# Functions
AddData will insert a total of end-start triples into the database.
AllUpgradeCombos returns all possible upgrade combinations for which tests need to run.
IsHigherVersion checks whether "higher" is the higher version compared to "lower".
NewClusterConfig generates a default ClusterConfig.
No description provided by the author
No description provided by the author
NewLocalCluster creates a new local dgraph cluster with given configuration.
ShouldSkipTest skips a given test if clusterVersion < minVersion.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
ClusterConfig stores all config for setting up a dgraph cluster.
No description provided by the author
No description provided by the author
LiveOpts are options that are used for running live loader.
LocalCluster is a local dgraph cluster.
UpgradeCombo represents a version combination before and after the upgrade, and the strategy for upgrading.
# Type aliases
UpgradeStrategy is an Enum that defines various upgrade strategies.