Skip to content

Instantly share code, notes, and snippets.

View emil-nasso's full-sized avatar

Emil Andersson emil-nasso

  • SAVR AB
  • Falkenberg
View GitHub Profile
#!/bin/sh
set -x
if [ "$#" -ne 4 ]
then
echo "Usage $0 <hostname> <email> <clproject> <apikey>"
exit 1
fi
#!/bin/sh
set -x
if [ "$#" -ne 4 ]
then
echo "Usage $0 <hostname> <email> <clproject> <apikey>"
exit 1
fi
HEADING_BROWSER_TAB = "Account settings"
ACTION_SHOW_IFRAMEAPP = "IframeApp"
LABEL_SETTINGS_TAB = "Account settings"
HEADING_SETTINGS_TAB = "Iframe App"
LABEL_ALLOW_IFRAMEAPP = "Enable Iframe App"
LABEL_IFRAME_URL = "External App URL"
LABEL_APP_NAME = "Iframe App"
LABEL_AUTH_MODE = "Auth mode"
/* Copied from CoreWebclient/Default */
.panel.left_panel .items_list .item > .title .icon::before {
position: relative;
top: 2px;
}
.compose_popup.minimized .toolbar {
background: #2e4b64 !important;
}
.compose_popup.minimized .toolbar * {
font-size: 12px !important;
- id: date
execute-command: date
include-command-output-in-response: true
- id: echo
execute-command: echo
include-command-output-in-response: true
pass-arguments-to-command:
- source: payload
name: text
- id: redeploy
{{subcomponent selectAction=actions.selectTile}}
// tests/AppBundle/Controller/PostControllerTest.php
namespace Tests\AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PostControllerTest extends WebTestCase
{
public function testShowPost()
{
$mock = /** mocked version of the service with data relevant to this test**/
// tests/AppBundle/Controller/PostControllerTest.php
namespace Tests\AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class PostControllerTest extends WebTestCase
{
public function testShowPost()
{
$client = static::createClient();
def jobName = sh (
script: 'echo ${JOB_NAME%/*}',
returnStdout: true
).trim()