Skip to content

Instantly share code, notes, and snippets.

View AdamSaleh's full-sized avatar

Adam Saleh AdamSaleh

View GitHub Profile
{
"name": "dev",
"description": "Development role",
"json_class": "Chef::Role",
"default_attributes": {
"host_src_dir": "",
"feedhenry_common": {
"src": "/mnt/src"
},
"vm": {
#!/bin/bash
debug=
USERS=$*
for USER in $USERS; do
APPS=$(oo-admin-ctl-domain -l ${USER} | egrep -i '^name:'|sed -e "s/^name: //")
DOMAINS=$(oo-admin-ctl-domain -l ${USER} | egrep -i '^Namespace:'|sed -e "s/^Namespace: //")
for APP in $APPS; do
$debug oo-admin-ctl-app -l $USER -a $APP -c stop
$debug yes | oo-admin-ctl-app -l $USER -a $APP -c destroy
# put fhcap boostrap here
echo "WORKSPACE: $WORKSPACE"
mkdir tests
cd tests
echo "cloning ci-ops-mobile, fhcap and uart repositories"
git clone git://git.app.eng.bos.redhat.com/ci-ops-mobile.git
git clone [email protected]:fheng/fhcap.git
$ ssh 5551d3716892dfd29000000f@cloudappdeverbpv-test1example.example.com
Enter passphrase for key '/home/asaleh/.ssh/id_rsa':
*********************************************************************
You are accessing a service that is for use only by authorized users.
If you do not have authorization, discontinue use at once.
Any use of the services is subject to the applicable terms of the
agreement which can be found at:
https://www.openshift.com/legal
#!/bin/bash
cat << EOF | bundle exec thor dev:bootstrap -y 2> /dev/null
no
vm
EOF
==> fhcap-asaleh-multi-node1: ================================================================================
==> fhcap-asaleh-multi-node1: Error executing action `run` on resource 'bash[secure-mysql]'
==> fhcap-asaleh-multi-node1: ================================================================================
==> fhcap-asaleh-multi-node1:
==> fhcap-asaleh-multi-node1:
==> fhcap-asaleh-multi-node1: Mixlib::ShellOut::ShellCommandFailed
==> fhcap-asaleh-multi-node1: ------------------------------------
==> fhcap-asaleh-multi-node1: Expected process to exit with [0], but received '1'
==> fhcap-asaleh-multi-node1: ---- Begin output of "bash" "/tmp/chef-script20150507-25183-qth6vl" ----
==> fhcap-asaleh-multi-node1: STDOUT:
path.existsSync is now called `fs.existsSync`.
2015-05-07 11:49:24 INFO Master process, forking: 1 worker
path.existsSync is now called `fs.existsSync`.
2015-05-07 11:49:24 INFO tearUp cache
2015-05-07 11:49:24 INFO tearUp db
2015-05-07 11:49:24 INFO Message whitelist set to: {"apicalled":true,"appbuild":true,"appcreate":true,"appinit":true,"fhact":true,"fhweb":true,"useractivate":true,"userlogin":true}
2015-05-07 11:49:24 ERROR FHCache error: Error: Ready check failed: ERR operation not permitted
Authenticate user...
2015-05-07 11:49:24 ERROR Database connection error: MongoError: auth fails
2015-05-07 11:49:24 INFO Stopping fh-messaging...
@AdamSaleh
AdamSaleh / 00_charakter.svg
Last active August 29, 2015 14:19
WorldOfDungeonsCZ
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
git clone https://github.com/AdamSaleh/aerogear-unifiedpush-server-integration-tests
cd aerogear-unifiedpush-server-integration-tests
docker run --name unifiedpush -p 3306:3306 -e MYSQL_USER=unifiedpushing -e MYSQL_PASSWORD=unifiedpushing -e MYSQL_DATABASE=unifiedpush -e MYSQL_ROOT_PASSWORD=supersecret -d mysql
./gradlew --stacktrace test -Pprofile=wildfly8mysql -PupsDatasource=mysql -PmysqlUsername=unifiedpushing -PmysqlPassword=unifiedpushing test
<subsystem xmlns="urn:jboss:domain:datasources:1.2">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>