Skip to content

Commit

Permalink
switch to ParentBlockName convention (as it is used in Py server)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jul 1, 2022
1 parent 70b8d43 commit 3ea4a38
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions test/data/integration/integration_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"release_version": "CMSSW_1_2_3",
"site": "cmssrm.fnal.gov",
"block": "/unittest_web_primary_ds_name_8268/acq_era_8268-v8268/GEN-SIM-RAW#8268",
"parent_block": "/unittest_web_primary_ds_name_8268/acq_era_8268-ptsr-v8268/GEN-SIM-RAW#8268",
"parent_block_name": "/unittest_web_primary_ds_name_8268/acq_era_8268-ptsr-v8268/GEN-SIM-RAW#8268",
"files": [],
"parent_files": [],
"runs": [
Expand All @@ -38,4 +38,4 @@
"parent_stepchain_block": "/unittest_web_primary_ds_name_8268_stepchain/acq_era_8268-ptsr-v8268/GEN-SIM-RAW#8268",
"stepchain_files": [],
"parent_stepchain_files": []
}
}
6 changes: 3 additions & 3 deletions test/int_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func getBlocksTestTable(t *testing.T) EndpointTestCase {
LAST_MODIFIED_BY: TestData.CreateBy,
}
parentBlockReq := dbs.Blocks{
BLOCK_NAME: TestData.ParentBlock,
BLOCK_NAME: TestData.ParentBlockName,
ORIGIN_SITE_NAME: TestData.Site,
CREATE_BY: TestData.CreateBy,
LAST_MODIFIED_BY: TestData.CreateBy,
Expand All @@ -56,7 +56,7 @@ func getBlocksTestTable(t *testing.T) EndpointTestCase {
BLOCK_NAME: TestData.Block,
}
blockParentResp := blockResponse{
BLOCK_NAME: TestData.ParentBlock,
BLOCK_NAME: TestData.ParentBlockName,
}
blockDetailResp := blockDetailResponse{
BlockID: 1,
Expand All @@ -74,7 +74,7 @@ func getBlocksTestTable(t *testing.T) EndpointTestCase {
}
blockParentDetailResp := blockDetailResponse{
BlockID: 2,
BlockName: TestData.ParentBlock,
BlockName: TestData.ParentBlockName,
BlockSize: 0,
CreateBy: TestData.CreateBy,
CreationDate: 0,
Expand Down
2 changes: 1 addition & 1 deletion test/int_files.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func getFilesTestTable(t *testing.T) EndpointTestCase {
for i := 1; i <= 10; i++ {
parentLFN := fmt.Sprintf("/store/mc/Fall08/BBJets250to500-madgraph/GEN-SIM-RAW/IDEAL_/p%v/%v.root", TestData.UID, i)
testDataParentFiles = append(testDataParentFiles, parentLFN)
fileRecord := createFileRecord(i, TestData.ParentDataset, TestData.ParentBlock, parentFileLumiList, parentLFN, []dbs.FileParentLFNRecord{})
fileRecord := createFileRecord(i, TestData.ParentDataset, TestData.ParentBlockName, parentFileLumiList, parentLFN, []dbs.FileParentLFNRecord{})
parentFiles = append(parentFiles, fileRecord)
parentDetailResp = append(parentDetailResp, createFileDetailedResponse(i, 2, 2, fileRecord))
}
Expand Down
4 changes: 2 additions & 2 deletions test/integration_cases.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type initialData struct {
ReleaseVersion string `json:"release_version"`
Site string `json:"site"`
Block string `json:"block"`
ParentBlock string `json:"parent_block"`
ParentBlockName string `json:"parent_block_name"`
Files []string `json:"files"`
ParentFiles []string `json:"parent_files"`
Runs []int `json:"runs"`
Expand Down Expand Up @@ -189,7 +189,7 @@ func generateBaseData(t *testing.T, filepath string) {
TestData.ReleaseVersion = release_version
TestData.Site = site
TestData.Block = block
TestData.ParentBlock = parent_block
TestData.ParentBlockName = parent_block
TestData.Files = []string{}
TestData.ParentFiles = []string{}
TestData.Runs = []int{97, 98, 99}
Expand Down

0 comments on commit 3ea4a38

Please sign in to comment.