Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

gdp / apps / rest-test / restful_gdp_gateway_cors_bad_io_test.html @ master

History | View | Annotate | Download (1.99 KB)

1 c8087b33 Rick Pratt
<html>
2
<head>
3
<meta charset="utf8">
4
<script src="https://code.jquery.com/jquery-3.2.1.min.js"
5
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
6
crossorigin="anonymous"></script>
7
8
<script src="restful_gdp_gateway_cors_bad_io_test.js"> </script>
9
10
</head>
11
<body>
12
  <div>
13
    <H1>Parallel Ajax Calls Allowed To Race (Bad I/O Test)</H1>
14
    <H2>CORS pre-flight negotiation with GDP RESTful Gateway</H2>
15
16
    <H4>
17
      <pre>
18
        A restful call is made to append a record, containing log name
19
        and timestamp fields, to a GDP test log. That is followed by a
20
        read of the log's last record, which should display the same
21
        timestamp, appended to the "testcase" field. A completely
22
        successful sequence (all 200 responses) verifies that the server
23
        is supporting CORS requirements with basic authentication.
24
25
        WARNING: Because the ajax calls are allowed to race in this
26
        test case, the GET "testcase" timestamp may or may not match
27
        the timestamp displayed before the test. This is a test the
28
        libgdp "bad I/O" bug and fix - not an example of good javascript
29
        ajax call patterns.
30
      </pre>
31
    </H4>
32
33
    <div id="method_1"> </div>
34
    <div id="request_1"> </div>
35
    <div id="time_1"> </div>
36
    <div> Response Code and Response </div>
37
    <div id="responsecode_1"> </div>
38
    <div id="response_1"> </div>
39
    <br>
40
    <div id="method_2"> </div>
41
    <div id="request_2"> </div>
42
    <div> Response Code and Response </div>
43
    <div id="responsecode_2"> </div>
44
    <div id="response_2"> </div>
45
    <br>
46
  </div>
47
48
  <div>
49
    <H2>Development binary (gdp-rest-01 /gdp/v2/gcl) also tested if enabled</H2>
50
51
    <div id="method_3"> </div>
52
    <div id="request_3"> </div>
53
    <div id="time_3"> </div>
54
    <div> Response Code and Response </div>
55
    <div id="responsecode_3"> </div>
56
    <div id="response_3"> </div>
57
    <br>
58
    <div id="method_4"> </div>
59
    <div id="request_4"> </div>
60
    <div> Response Code and Response </div>
61
    <div id="responsecode_4"> </div>
62
    <div id="response_4"> </div>
63
    <br>
64
  </div>
65
66
</body>
67
</html>