Skip to content

Instantly share code, notes, and snippets.

{
"publicId": "ESTFQX8NF",
"webhookUrl": "https://blabla.com?state=XXX"
}
curl --location --request GET 'https://api-dev.veracityprotocol.org/api/public/artworks/ESTFQX8NF'
@pupca
pupca / main.rb
Last active August 13, 2019 16:33
require 'savon'
class PolarionService
def initialize
@tracker_url = 'https://example.com/polarion/ws/services/TrackerWebService?wsdl'
@session_url = 'https://example.com/polarion/ws/services/SessionWebService?wsdl'
end
def tracker_client
Savon.client(open_timeout: 5000, read_timeout: 5000, :ssl_verify_mode => :none, wsdl: @tracker_url, soap_header: { "ns1:sessionID" => get_session_id, :attributes! => { "ns1:sessionID" => {"env:actor" => "http://schemas.xmlsoap.org/soap/actor/next", "env:mustUnderstand" => "0", "xmlns:ns1" => "http://ws.polarion.com/session"}}})
require 'savon'
class PolarionService
def initialize
@tracker_url = 'https://cns.net.plm.eds.com/polarion/ws/services/TrackerWebService?wsdl'
@session_url = 'https://cns.net.plm.eds.com/polarion/ws/services/SessionWebService?wsdl'
end
def tracker_client
cert = File.expand_path("/Users/pupca/Downloads/cns.pem1")
bot slackstory create items:{"98171": {"title":"DPP-98171 - Execute tests and collect measurements", "users":["popelakm", "kelleroval", "lopicics", "rybal", "danilove", "svobodap", "thalgottf", "librarian_bot_test", "librarian_bot", "kovalskyp"]},"98156": {"title":"DPP-98156 - Feedback for Rich pages in Test management for i226", "users":["popelakm", "librarian_bot_test", "librarian_bot", "krotilr", "yelemessoval", "chernikovy", "levind", "imlaufl", "danekl", "ruzam", "lopicics", "stefant", "zhavzharovm"]},"98155": {"title":"DPP-98155 - Feedback and improvements in Merging for i226", "users":["popelakm", "librarian_bot_test", "librarian_bot", "krotilr", "yelemessoval", "chernikovy", "levind", "imlaufl", "danekl", "ruzam", "lopicics", "stefant", "zhavzharovm"]},"98147": {"title":"DPP-98147 - Warden duty in i226", "users":["popelakm", "librarian_bot_test", "librarian_bot", "krotilr", "jelinkovas", "kratochvilr", "kiland", "visanv", "hajekv" ]},"98099": {"title":"DPP-98099 - Configure test environment to use HTT
bot slackstory create items:{"97176": {"title":"DPP-97176 - Warden for i223 - Team Xi", "users":["popelakm", "librarian_bot_test", "librarian_bot", "krotilr", "yelemessoval", "chernikovy", "levind", "imlaufl", "danekl", "ruzam", "lopicics", "stefant", "zhavzharovm"]},"97161": {"title":"DPP-97161 - Polarion Hosted/Cloud connectivity with on-premise AD/LDAP", "users":["popelakm", "kelleroval", "lopicics", "rybal", "danilove", "svobodap", "thalgottf", "librarian_bot_test", "librarian_bot", "kovalskyp"]},"97125": {"title":"DPP-97125 - Devops maintenance for i223", "users":["popelakm", "kelleroval", "lopicics", "rybal", "danilove", "svobodap", "thalgottf", "librarian_bot_test", "librarian_bot", "kovalskyp"]},"97122": {"title":"DPP-97122 - Outstanding Dev Items for i223 Team Xi", "users":["popelakm", "librarian_bot_test", "librarian_bot", "krotilr", "yelemessoval", "chernikovy", "levind", "imlaufl", "danekl", "ruzam", "lopicics", "stefant", "zhavzharovm"]},"97038": {"title":"DPP-97038 - Spike: Basic signatures for
@pupca
pupca / a
Created November 13, 2015 13:59
bot slackstory create items:{"95885": {"title":"DPP-95885 - Prepare Danfoss jMeter tests", "users":["popelakm", "kelleroval", "lopicics", "rybal", "danilove", "svobodap", "thalgottf", "librarian_bot_test", "librarian_bot"]},"95860": {"title":"DPP-95860 - Create Enterprise Reference Environment", "users":["popelakm", "kelleroval", "lopicics", "rybal", "danilove", "svobodap", "thalgottf", "librarian_bot_test", "librarian_bot"]},"95857": {"title":"DPP-95857 - Investigate security concerns on Polarion external servers", "users":["popelakm", "kelleroval", "lopicics", "rybal", "danilove", "svobodap", "thalgottf", "librarian_bot_test", "librarian_bot"]},"95854": {"title":"DPP-95854 - Security investigation for i221", "users":["popelakm", "kelleroval", "lopicics", "rybal", "danilove", "svobodap", "thalgottf", "librarian_bot_test", "librarian_bot"]},"95852": {"title":"DPP-95852 - Security Defects for i221 - Team Lambda", "users":["popelakm", "librarian_bot_test", "librarian_bot", "krotilr", "chyliko", "banszelj", "kra
$.fn.serializeObject = function()
{
var o = {};
var a = this.serializeArray();
$.each(a, function() {
if (o[this.name] !== undefined) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].push(this.value || '');
/Users/pupca/Downloads/pgsql 2/include/autosprintf.h:
5: under the terms of the GNU Library General Public License as published
12: Library General Public License for more details.
/Users/pupca/Downloads/pgsql 2/include/gettext-po.h:
6: it under the terms of the GNU General Public License as published by
13: GNU General Public License for more details.
15: You should have received a copy of the GNU General Public License
/Users/pupca/Downloads/pgsql 2/include/gettext.h:
var wi = workflowContext.getWorkItem();
var toField = arguments.getAsString("toField");
function log(msg) {
print("popelakm_log : " + msg + "\n")
// tail -f /var/log/polarion/polarion.log | grep popelakm_log
}