Skip to content

Commit

Permalink
Fix CreateOrder option in group/link tests (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjala authored Dec 24, 2024
1 parent ff26450 commit 946a0a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integ/group_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def testPostWithCreationProps(self):
req = endpoint + "/groups"

# create a new group
creation_props = {"link_creation_order": True, "rdcc_nbytes": 1024}
creation_props = {"CreateOrder": True, "rdcc_nbytes": 1024}
payload = {"creationProperties": creation_props}
rsp = self.session.post(req, data=json.dumps(payload), headers=headers)
self.assertEqual(rsp.status_code, 201)
Expand All @@ -457,7 +457,7 @@ def testPostWithCreationProps(self):
self.assertTrue("domain" in rspJson)
self.assertTrue("creationProperties" in rspJson)
cprops = rspJson["creationProperties"]
for k in ("link_creation_order", "rdcc_nbytes"):
for k in ("CreateOrder", "rdcc_nbytes"):
self.assertTrue(k in cprops)
self.assertEqual(cprops[k], creation_props[k])
self.assertEqual(rspJson["domain"], self.base_domain)
Expand Down
4 changes: 2 additions & 2 deletions tests/integ/link_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ def testRelativeH5Path(self):

def testRootH5Path(self):
# test that root group can be found by h5path
creation_props = {"link_creation_order": True, "rdcc_nbytes": 1024}
creation_props = {"CreateOrder": True, "rdcc_nbytes": 1024}
domain = self.base_domain + "/testRootH5Path.h5"
print("testRootH5Path", domain)
helper.setupDomain(domain, root_gcpl=creation_props)
Expand Down Expand Up @@ -1067,7 +1067,7 @@ def testRootH5Path(self):
self.assertEqual(rspJson["class"], "group")

cprops = rspJson["creationProperties"]
for k in ("link_creation_order", "rdcc_nbytes"):
for k in ("CreateOrder", "rdcc_nbytes"):
self.assertTrue(k in cprops)
self.assertEqual(cprops[k], creation_props[k])

Expand Down

0 comments on commit 946a0a7

Please sign in to comment.