summaryrefslogtreecommitdiffstats
path: root/utils/gpg_import_key.sh
AgeCommit message (Collapse)AuthorFilesLines
2016-07-21Don't fail the build if importing gpg key failsAric Gardner1-3/+3
I prefer that the build succeeds even if the siging fails. once we have the signing working on all pods I will revert this change. Change-Id: Icc5e0a158ccee6e09be9b275d403f5252a473430 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
2016-07-18Add support for ubuntu (keep support for centos)Aric Gardner1-7/+24
Compass signing was failing on ubuntu Change-Id: Ieda6cfd67c7b36045b0a30c01a0eb3f0e7165710 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
2016-07-13Enable Artifact signing for CompassAric Gardner1-0/+1
The change to gpg_import_key is just so that I could +x it. Change-Id: I647d0586e7c5f653f6c1a479db2b1c75c4620064 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
2016-07-05This will enable artifact signing for apex uploadsAric Gardner1-0/+42
sources gpg_import_key.sh which: -installs gpg2 -imports key -grabs proper key based on $NODE_NAME only tries to sign if the key is correctly imported otherwise it will skip signing and just do the upload Keys have only been created for lf intel and ericsson labs Keys are only unique per company Master pubkey has not been sent to the key server Or brought into the web of trust. Lets see that this works as I expected rather than having to go through the pain of revoking these keys. Change-Id: Ifa4bc4e11407c53f8174f6c64945949bf66d6535 Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
a id='n166' href='#n166'>166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
<!DOCTYPE html>
<html lang="en">
<head>
  <title>OPNFV DashBoard</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script>
  <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<script>
$(function() {

  $('form#new_testcase').on('submit', function(){
    var selected = $('select#sel_pro2').find("option:selected").val();
    var uri = $('input#uri').val();
    var name = $('input#name').val();
    var desc = $('textarea#desc').val();
    var new_url="http://testresults.opnfv.org:80/test/api/v1/projects/"+selected+"/cases";
    $.post("addtestcase.php", {"project":selected,"url":uri,"name":name,"description":desc}, function(result){
        $("div#result").html(result);
    });
  });

});

$(function() {

  $('select#sel1').on('change', function(){
    var selected = $(this).find("option:selected").val();
    var new_url="http://testresults.opnfv.org:80/test/api/v1/projects/"+selected+"/cases";
    //$.post('testcases.php', {project: selected});
    console.log(selected);
    $.post("testcases.php", {project: selected}, function(result){
        $("div#4a").html(result);
    });

  });

});
</script>
<style>
body {
  padding : 10px ;
}

#exTab1 .tab-content {
  color : black;
  padding : 5px 15px;
}

#exTab2 h3 {
  color : white;
  background-color: #428bca;
  padding : 5px 15px;
}

/* remove border radius for the tab */

#exTab1 .nav-pills > li > a {
  border-radius: 0;
}

/* change border radius for the tab , apply corners on top*/

#exTab3 .nav-pills > li > a {
  border-radius: 4px 4px 0 0 ;
}

#exTab3 .tab-content {
  color : white;
  background-color: #428bca;
  padding : 5px 15px;
}

</style>
</head>
<body>

<div class="container">
  <h1>OPNFV DASHBOARD: </h1></div>
<div id="exTab1" class="container">
  <ul class="nav nav-pills">
    <li class="active">
      <a href="#1a" data-toggle="tab">PODS</a>
    </li>
    <li><a href="#2a" data-toggle="tab">PROJECTS</a>
    </li>
    <li><a href="#3a" data-toggle="tab">TESTCASES</a>
    </li>
    <li><a href="#5a" data-toggle="tab">ADD TESTCASE</a>
    </li>
    <li><a href="http://testresults.opnfv.org/kibana_dashboards/" >RESULTS</a>
    </li>
  </ul>
  <div class="tab-content clearfix">
    <div class="tab-pane active" id="1a">
	<table class="table table-striped">
	<thead>
    <tr>
      <th>#</th>
      <th>Pod Name</th>
      <th>Creation Date</th>
      <th>Role</th>
      <th>Mode</th>
    </tr>
  </thead>
	<?php
	$url = "http://testresults.opnfv.org:80/test/api/v1/pods";
        $response = file_get_contents($url);
	$data = json_decode($response);
	$pods = $data->pods;
	$i=1;
	foreach ( $pods as $pod ){

		$column_str="";
		$column_str="<tr><td>".$i."</td>";
		$column_str=$column_str."<td>".$pod->name."</td>";
		$column_str= $column_str."<td>".$pod->creation_date."</td>";
		$column_str= $column_str."<td>".$pod->role."</td>";
		$column_str= $column_str."<td>".$pod->mode."</td>";
		$column_str= $column_str."</tr>";
		echo $column_str;
		$i=$i+1;
	}
	?>
	</table>
    </div>
    <div class="tab-pane" id="2a">
 <table class="table table-striped">
        <thead>
    <tr>
      <th>#</th>
      <th>Project</th>
      <th>Creation Date</th>
    </tr>
  </thead>
 <?php
        $url = "http://testresults.opnfv.org:80/test/api/v1/projects";
        $response = file_get_contents($url);
        $data = json_decode($response);
	$projects=$data->projects;
	$i=0;
	foreach ( $projects as $project ){

                $column_str="";
                $column_str="<tr><td>".$i."</td>";
                $column_str=$column_str."<td>".$project->name."</td>";
                $column_str= $column_str."<td>".$project->creation_date."</td>";
                $column_str= $column_str."</tr>";
                echo $column_str;
                $i=$i+1;
        }
?>
	</table>
    </div>
    <div class="tab-pane" id="3a">
<div class="form-group">
  <label for="sel1">Select list:</label>
  <select class="form-control" id="sel1">
<?php
	$url = "http://testresults.opnfv.org:80/test/api/v1/projects";
        $response = file_get_contents($url);
        $data = json_decode($response);
        $projects=$data->projects;
        $i=0;
	$firstvalue=$projects[0]->name;
        foreach ( $projects as $project ){
                $column_str="";
                $column_str="<option>".$project->name."</option>";
                echo $column_str;
        }

?>
</select>
</div>
    <div class="tab-pane" id="4a">
	<?php
		require "testcases.php";
	?>
    </div>
    </div>
    <div class="tab-pane" id="5a">
	<form role="form" id="new_testcase">
<div class="form-group">
  <label for="sel1">Select list:</label>
  <select class="form-control" id="sel_pro2">
<?php
        $url = "http://testresults.opnfv.org:80/test/api/v1/projects";
        $response = file_get_contents($url);
        $data = json_decode($response);
        $projects=$data->projects;
        $i=0;
        $firstvalue=$projects[0]->name;
        foreach ( $projects as $project ){
                $column_str="";
                $column_str="<option>".$project->name."</option>";
                echo $column_str;
        }
?>
</select>
</div>
<div class="form-group"> <!-- Name field -->
		<label class="control-label " for="name">TestCase URI</label>
		<input class="form-control" id="uri" name="uri" type="text"/>
	</div>
<div class="form-group"> <!-- Name field -->
		<label class="control-label " for="name">TestCase Name</label>
		<input class="form-control" id="name" name="name" type="text"/>
	</div>
<div class="form-group"> <!-- Name field -->
		<label class="control-label " for="name">Description</label>
	<textarea class="form-control" rows="5" id="desc"></textarea>
	</div>
  <button type="submit" class="btn btn-default">Submit</button>
</form>
    </div>
<div class="container" id="result"></div>
  </div>
</div>
</body>
</html>