Skip to content

Commit 1fd99a4

Browse files
nieblm-mohr
authored andcommitted
Update tests
1 parent 91a32d3 commit 1fd99a4

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/openeo/capabilities.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const OPENEO_FEATURE_MAP = {
3636
updateService: 'patch /services/{}',
3737
deleteService: 'delete /services/{}',
3838
debugService: 'get /services/{}/logs',
39+
// Processing Parameters
40+
listProcessingParameters: 'get /processing_parameters'
3941
};
4042

4143
const CONFORMANCE_CLASSES = {

tests/test-api.test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ describe('openEO testing-api back-end', () => {
291291
let con;
292292
// Skip this test for now, EODC back-end has no CORS headers
293293
test('Connect', async () => {
294-
con = await OpenEO.connect(TESTBACKEND);
294+
con = await Client.connect(TESTBACKEND);
295295
expect(con instanceof Connection).toBeTruthy();
296296
let cap = con.capabilities();
297297
expect(cap instanceof Capabilities).toBeTruthy();
@@ -546,6 +546,7 @@ describe('openEO testing-api back-end', () => {
546546
let r = await con.computeResult(INVALID_PROCESS, 'jpeg');
547547
expect(r).toBeUndefined();
548548
} catch (error) {
549+
console.log(error)
549550
expect(error.code).toBe("ResultNodeMissing");
550551
expect(error.message).toBe("No result node found for the process.")
551552
}
@@ -623,19 +624,18 @@ describe('openEO testing-api back-end', () => {
623624
VALID_PROCESS,
624625
"processing_params",
625626
"contains processing params",
626-
null,
627-
null,
628627
processing_params
629628
);
630-
expect(job instanceof Job).toBeTruthy();
631-
expect(job.id).not.toBeNull();
632-
expect(job.id).not.toBeUndefined();
633-
expect(job.invalid_parameter).toBe(undefined);
629+
console.log(jobPP)
630+
expect(jobPP instanceof Job).toBeTruthy();
631+
expect(jobPP.id).not.toBeNull();
632+
expect(jobPP.id).not.toBeUndefined();
634633
})
635634

636635
test('Get Job with processing parameters', async () => {
637636
res = await con.getJob(jobPP.id)
638637
jobDesc = await res.describeJob()
638+
console.log(jobDesc)
639639
expect(jobDesc.extra['driver-memory']).toBe("1G")
640640
expect(jobDesc.extra['invalid-parameter']).toBe(undefined)
641641
await jobPP.deleteJob()

0 commit comments

Comments
 (0)