@@ -62,12 +62,12 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
6262 } ) ;
6363 } ) ;
6464
65- describe ( 'getByKey ' , ( ) => {
65+ describe ( 'getById ' , ( ) => {
6666 it ( 'should retrieve a job by key' , async ( ) => {
6767 const { jobs, folderId } = getJobsService ( ) ;
6868
6969 if ( ! folderId ) {
70- throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getByKey tests.' ) ;
70+ throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getById tests.' ) ;
7171 }
7272
7373 // First get a job key from getAll
@@ -77,11 +77,11 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
7777 } ) ;
7878
7979 if ( allJobs . items . length === 0 ) {
80- throw new Error ( 'No jobs available to test getByKey .' ) ;
80+ throw new Error ( 'No jobs available to test getById .' ) ;
8181 }
8282
8383 const jobKey = allJobs . items [ 0 ] . key ;
84- const job = await jobs . getByKey ( jobKey , folderId ) ;
84+ const job = await jobs . getById ( jobKey , folderId ) ;
8585
8686 expect ( job ) . toBeDefined ( ) ;
8787 expect ( job . id ) . toBeDefined ( ) ;
@@ -94,7 +94,7 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
9494 const { jobs, folderId } = getJobsService ( ) ;
9595
9696 if ( ! folderId ) {
97- throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getByKey tests.' ) ;
97+ throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getById tests.' ) ;
9898 }
9999
100100 const allJobs = await jobs . getAll ( {
@@ -103,11 +103,11 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
103103 } ) ;
104104
105105 if ( allJobs . items . length === 0 ) {
106- throw new Error ( 'No jobs available to test getByKey with expand.' ) ;
106+ throw new Error ( 'No jobs available to test getById with expand.' ) ;
107107 }
108108
109109 const jobKey = allJobs . items [ 0 ] . key ;
110- const job = await jobs . getByKey ( jobKey , folderId , {
110+ const job = await jobs . getById ( jobKey , folderId , {
111111 expand : 'Robot,Machine,Release' ,
112112 } ) ;
113113
@@ -119,7 +119,7 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
119119 const { jobs, folderId } = getJobsService ( ) ;
120120
121121 if ( ! folderId ) {
122- throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getByKey tests.' ) ;
122+ throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getById tests.' ) ;
123123 }
124124
125125 const allJobs = await jobs . getAll ( {
@@ -128,11 +128,11 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
128128 } ) ;
129129
130130 if ( allJobs . items . length === 0 ) {
131- throw new Error ( 'No jobs available to test getByKey bound methods.' ) ;
131+ throw new Error ( 'No jobs available to test getById bound methods.' ) ;
132132 }
133133
134134 const jobKey = allJobs . items [ 0 ] . key ;
135- const job = await jobs . getByKey ( jobKey , folderId ) ;
135+ const job = await jobs . getById ( jobKey , folderId ) ;
136136
137137 expect ( job . getOutput ) . toBeDefined ( ) ;
138138 expect ( typeof job . getOutput ) . toBe ( 'function' ) ;
@@ -142,7 +142,7 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
142142 const { jobs, folderId } = getJobsService ( ) ;
143143
144144 if ( ! folderId ) {
145- throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getByKey transform tests.' ) ;
145+ throw new Error ( 'INTEGRATION_TEST_FOLDER_ID is required for getById transform tests.' ) ;
146146 }
147147
148148 const allJobs = await jobs . getAll ( {
@@ -155,7 +155,7 @@ describe.each(modes)('Orchestrator Jobs - Integration Tests [%s]', (mode) => {
155155 }
156156
157157 const jobKey = allJobs . items [ 0 ] . key ;
158- const job = await jobs . getByKey ( jobKey , folderId ) ;
158+ const job = await jobs . getById ( jobKey , folderId ) ;
159159
160160 // Verify transformed camelCase fields exist
161161 expect ( job . createdTime ) . toBeDefined ( ) ;
0 commit comments