-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(acl): add upgrade tests for ee/acl package #8792
Conversation
79c4b16
to
ca0adfd
Compare
e03168f
to
2508c69
Compare
e1cddee
to
be51e9e
Compare
fbc1fe0
to
db8f57e
Compare
f92349c
to
0b608d6
Compare
74e924b
to
2ecc190
Compare
2ecc190
to
5ed866c
Compare
5ed866c
to
a6b8809
Compare
cabbd02
to
d231b7d
Compare
d231b7d
to
8be8199
Compare
423d358
to
1a1ac36
Compare
1a1ac36
to
45b1f82
Compare
45b1f82
to
ed45f8d
Compare
ed45f8d
to
0f16998
Compare
} | ||
return gqlResp.Data, nil | ||
} | ||
|
||
func (hc *HTTPClient) HealthForInstance() ([]byte, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add this api change to description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -57,7 +57,7 @@ const ( | |||
|
|||
localVersion = "local" | |||
waitDurBeforeRetry = time.Second | |||
requestTimeout = 90 * time.Second | |||
requestTimeout = 120 * time.Second |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shivaji-dgraph noticed that this is more stable.
@@ -56,4 +56,10 @@ func init() { | |||
binDir = filepath.Join(basePath, "binaries") | |||
encKeyPath = filepath.Join(basePath, "data", "enc-key") | |||
aclSecretPath = filepath.Join(basePath, "data", "hmac-secret") | |||
|
|||
log.Printf("[INFO] baseRepoDir: %v", baseRepoDir) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a comment to as to why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are just debugging statements which could be useful when tests fail. Do you have a suggestion as to what I could write here?
|
||
uids := []int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20} | ||
c.AssignUids(gc.Dgraph, uint64(len(uids))) | ||
require.NoError(t, gc.SetupSchema(`money: [int] @index(int) @count .`)) | ||
|
||
for i := 1; i <= len(uids); i++ { | ||
for j := 1; j <= i; j++ { | ||
rdfs := fmt.Sprintf(`<%v> <money> "%v" .`, j, i) | ||
_, err := gc.Mutate(rdfs) | ||
mu := &api.Mutation{SetNquads: []byte(fmt.Sprintf(`<%v> <money> "%v" .`, j, i)), CommitNow: true} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Through this API, we can do both deletion and set in a mutation.
This PR also adds HealthForInstance API to dgraphtest package for checking health of Alpha through graphql.