-
Notifications
You must be signed in to change notification settings - Fork 0
/
compliance-staging.html
71 lines (62 loc) · 2.78 KB
/
compliance-staging.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" charset="utf-8"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.6.0/underscore-min.js" charset="utf-8"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="testutils.js"></script>
<!--<script src="v0.1tests.js"></script>-->
<script src="v0.5tests.js"></script>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="compliance.css">
</head>
<body>
<div class="col-md-6">
<h2>GA4GH compliance tests</h2>
<form class="form testInput" role="form">
<div class="form-group">
<label for="endpoint">API endpoint
<small onclick="setApi('http://193.62.52.16', '')">EBI</small>
<small onclick="setApi('https://www.googleapis.com/genomics/v1beta2?key=AIzaSyDSCPSt4PhkKoVc8NlcscE_uPvlUppVCEY', '10473108253681171589')">Google</small>
<small onclick="setApi('http://trace.ncbi.nlm.nih.gov/Traces/gg', 'SRP000547')">NCBI</small>
</label>
<input type="text" class="form-control" id="endpoint" placeholder="http://...">
</div>
<div class="form-group">
<label for="datasetId">Dataset ID <small>(which contains a read group set named NA12878)</small></label>
<input type="text" class="form-control" id="datasetId"
placeholder="A valid dataset identifier">
</div>
<button id="formButton" class="btn btn-default" data-loading-text="Testing..."
onclick="runTests(); return false;">Test</button>
</form>
<div id="overallScore"></div>
</div>
<div id="results" class="col-md-6"></div>
<div class="col-md-12 footer">
Note: test timing covers execution time for the entire test (not just the
length of API calls). Use a javascript inspector for more detailed metrics.
<br/>
Don't like how these tests work? Found a bug? Pull requests and issues are
very welcome at <a href="https://github.com/ga4gh/compliance">github.com/ga4gh/compliance</a>
</div>
<script type="text/javascript">
function setApi(endpoint, datasetId) {
$('#endpoint').val(endpoint);
$('#datasetId').val(datasetId);
runTests();
}
</script>
</body>
</html>