Skip to content

Commit

Permalink
chore: fix failing oss build (#8832)
Browse files Browse the repository at this point in the history
fixes #8831
  • Loading branch information
mangalaman93 committed May 22, 2023
1 parent 595b72d commit ca15e06
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci-dgraph-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,9 @@ jobs:
export GOPATH=~/go
# move the binary
cp dgraph/dgraph ~/go/bin/dgraph
# run the tests
# run the unit and integration tests
cd t; ./t
# clean up docker containers after test execution
./t -r
# sleep
sleep 5
12 changes: 12 additions & 0 deletions ee/acl/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package acl
import (
"github.com/spf13/cobra"

"github.com/dgraph-io/dgo/v230/protos/api"
"github.com/dgraph-io/dgraph/x"
)

Expand All @@ -35,3 +36,14 @@ func init() {
}
CmdAcl.Cmd.SetHelpTemplate(x.NonRootTemplate)
}

// CreateGroupNQuads cretes NQuads needed to store a group with the give ID.
func CreateGroupNQuads(groupId string) []*api.NQuad {
return nil
}

// CreateUserNQuads creates the NQuads needed to store a user with the given ID and
// password in the ACL system.
func CreateUserNQuads(userId, password string) []*api.NQuad {
return nil
}
3 changes: 3 additions & 0 deletions ee/audit/run_ee_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !oss
// +build !oss

/*
* Copyright 2023 Dgraph Labs, Inc. and Contributors
*
Expand Down
4 changes: 3 additions & 1 deletion systest/backup/common/utils.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !oss
// +build !oss

/*
* Copyright 2023 Dgraph Labs, Inc. and Contributors *
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -124,7 +127,6 @@ func AddItemSchema(t *testing.T, header http.Header, whichAlpha string) {
}

func AddItem(t *testing.T, minSuffixVal int, maxSuffixVal int, jwtToken string, whichAlpha string) {

query := `mutation addItem($name: String!, $price: String!){
addItem(input: [{ name: $name, price: $price}]) {
item {
Expand Down

0 comments on commit ca15e06

Please sign in to comment.