Skip to content

Commit

Permalink
Fixing small issues around gripper driver testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kellrott committed Feb 17, 2024
1 parent eaef88e commit f52dce8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion conformance/tests/ot_aggregations.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ def test_traversal_gid_aggregation(man):
def test_field_aggregation(man):
errors = []

fields = [ "_gid", "_label", 'orbital_period', 'gravity', 'terrain', 'name','climate', 'system', 'diameter', 'rotation_period', 'url', 'population', 'surface_water']
# TODO: find way to get gripper driver to drop id field
fields = [ "id", "_gid", "_label", 'orbital_period', 'gravity', 'terrain', 'name','climate', 'system', 'diameter', 'rotation_period', 'url', 'population', 'surface_water']

G = man.setGraph("swapi")
count = 0
Expand Down
2 changes: 1 addition & 1 deletion gripper/test-graph/test_gripper.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def test_plugin_start(self):
self.assertTrue(found)

with open(os.path.join(BASE, "test-graph/swapi.yaml")) as handle:
mappingGraph = yaml.load(handle.read())
mappingGraph = yaml.load(handle.read(), Loader=yaml.BaseLoader)
conn = gripql.Connection(SERVER)
graphName = "posted_tabledata_%s" % (''.join(random.choices(string.ascii_uppercase + string.digits, k=4)))
conn.postMapping(graphName, mappingGraph['vertices'], mappingGraph['edges'])
Expand Down
2 changes: 2 additions & 0 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ func NewGripServer(conf *config.Config, baseDir string, drivers map[string]gdbi.
g, err := StartDriver(dConfig, sources)
if err == nil {
gdbs[name] = g
} else {
log.Errorf("Driver start error: %s", err)
}
}
}
Expand Down

0 comments on commit f52dce8

Please sign in to comment.