Opened 16 years ago

Closed 16 years ago

#2410 closed defect (fixed)

create tests for SOS Server

Reported by: tomkralidis Owned by: tomkralidis
Priority: normal Milestone: 5.2 release
Component: msautotest Version: svn-trunk (development)
Severity: normal Keywords:
Cc: nsavard, assefa, cplist

Description

SOS Server does not have any tests in msautotest/wxs/ .

Normand, I'll commit to getting an intial testsuite up. Does msautotest support POST requests in any way?

Change History (10)

comment:1 by tomkralidis, 16 years ago

Summary: create tests SOS Servercreate tests for SOS Server

in reply to:  description comment:2 by nsavard, 16 years ago

Replying to tomkralidis:

SOS Server does not have any tests in msautotest/wxs/ .

Normand, I'll commit to getting an intial testsuite up. Does msautotest support POST requests in any way?

Tom, there is no such thing as get and post in msautotest, everything works at the command line.

comment:3 by tomkralidis, 16 years ago

Normand: thanks for the info. SOS Server supports GET (which we can emulate via the command line QUERY_STRING=...), and POST, where an XML document is sent instead of KVP. WFS Server supports POST also. But I don't see any post tests in msautotest/wxs/wfs*.map.

Is there any way we can emulate POST requests from msautotest? I think this would be vital, as the GET and POST interfaces of SOS Server (and WFS Server) are different.

comment:4 by tomkralidis, 16 years ago

Added in r7096 for GET requests.

Normand: can you verify all is done everything correctly when you have a chance?

in reply to:  4 ; comment:5 by nsavard, 16 years ago

Replying to tomkralidis:

Added in r7096 for GET requests.

Normand: can you verify all is done everything correctly when you have a chance?

Tom, yes I'll verify.

in reply to:  5 ; comment:6 by nsavard, 16 years ago

Replying to nsavard:

Replying to tomkralidis:

Added in r7096 for GET requests.

Normand: can you verify all is done everything correctly when you have a chance?

Tom, yes I'll verify.

Tom, I ran the tests against MS 5.1-dev and all of them succeeded. There are some glitches in file naming that I need to correct for instance when you issue a GetCapabilities with an higher version number there is no exception generated. The capabilities document nearest to the requested version is returned which is correct. The file name should be changed from sos_se3.xml to something like sos_cap0.xml.

Just to check, do the tests were made for the next version (5.2)? I'm asking that because I also ran the tests against MS 5.0.0 and all of them failed. The main reasons for the failures are the version number (0.1.2 instead of 1.0.0) and the presence of the "use" attribute which value is "required" or "optional".

in reply to:  6 ; comment:7 by tomkralidis, 16 years ago

Replying to nsavard:

Replying to nsavard:

Replying to tomkralidis:

Added in r7096 for GET requests.

Normand: can you verify all is done everything correctly when you have a chance?

Tom, yes I'll verify.

Tom, I ran the tests against MS 5.1-dev and all of them succeeded. There are some glitches in file naming that I need to correct for instance when you issue a GetCapabilities with an higher version number there is no exception generated. The capabilities document nearest to the requested version is returned which is correct. The file name should be changed from sos_se3.xml to something like sos_cap0.xml.

OK -- feel free to correct these as needed.

Just to check, do the tests were made for the next version (5.2)? I'm asking that because I also ran the tests against MS 5.0.0 and all of them failed. The main reasons for the failures are the version number (0.1.2 instead of 1.0.0) and the presence of the "use" attribute which value is "required" or "optional".

Yes, these apply to 5.2. The reason is because there are some major changes we are applying for SOS 1.0.0 and OM 1.0.0 support. Is this an issue?

in reply to:  7 ; comment:8 by nsavard, 16 years ago

Replying to tomkralidis:

Replying to nsavard:

Replying to nsavard:

Replying to tomkralidis:

Added in r7096 for GET requests.

Normand: can you verify all is done everything correctly when you have a chance?

Tom, yes I'll verify.

Tom, I ran the tests against MS 5.1-dev and all of them succeeded. There are some glitches in file naming that I need to correct for instance when you issue a GetCapabilities with an higher version number there is no exception generated. The capabilities document nearest to the requested version is returned which is correct. The file name should be changed from sos_se3.xml to something like sos_cap0.xml.

OK -- feel free to correct these as needed.

Just to check, do the tests were made for the next version (5.2)? I'm asking that because I also ran the tests against MS 5.0.0 and all of them failed. The main reasons for the failures are the version number (0.1.2 instead of 1.0.0) and the presence of the "use" attribute which value is "required" or "optional".

Yes, these apply to 5.2. The reason is because there are some major changes we are applying for SOS 1.0.0 and OM 1.0.0 support. Is this an issue?

No I don't think that there is any rule that stop us from adding tests at a specific version.

in reply to:  8 comment:9 by nsavard, 16 years ago

Replying to nsavard:

Replying to tomkralidis:

Replying to nsavard:

Replying to nsavard:

Replying to tomkralidis:

Added in r7096 for GET requests.

Normand: can you verify all is done everything correctly when you have a chance?

Tom, yes I'll verify.

Tom, I verified the SOS tests. I made the necessary corrections. All tests are correct.

comment:10 by tomkralidis, 16 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.