Skip to content

Instantly share code, notes, and snippets.

View psturc's full-sized avatar
🎸

Pavel Sturc psturc

🎸
  • Red Hat
  • Brno, Czech Republic
  • 17:13 (UTC +01:00)
View GitHub Profile
@psturc
psturc / clair-scan-task.yaml
Last active July 22, 2024 06:06
my custom clair-scan task
---
apiVersion: tekton.dev/v1
kind: Task
metadata:
annotations:
tekton.dev/pipelines.minVersion: 0.12.1
tekton.dev/tags: appstudio, hacbs
creationTimestamp: null
labels:
app.kubernetes.io/version: "0.1"
@psturc
psturc / sso-status-during-upgrade.json
Created March 17, 2021 11:56
read keycloak statefulsets and save the data in json with timestamp
{
"rhsso": [],
"usersso": []
}
@psturc
psturc / readme.md
Last active January 7, 2022 16:28
run functional tests with delorean cli

How to run test container in OpenShift cluster using Delorean CLI

  1. Clone delorean
git clone [email protected]:integr8ly/delorean.git
  1. Build the binary
make build/cli
@psturc
psturc / test-cases.md
Created October 21, 2020 10:47
0.2.0 rate limiting test cases

Test case title

Steps

...

➜ integreatly-operator git:(master) ✗ go test -v ./test/functional -run=TestIntegreatly/Integreatly_Happy_Path_Tests/Verify_RHMI_CRD_Exists
=== RUN TestIntegreatly
=== RUN TestIntegreatly/Integreatly_Happy_Path_Tests
=== RUN TestIntegreatly/Integreatly_Happy_Path_Tests/Verify_RHMI_CRD_Exists
--- PASS: TestIntegreatly (0.56s)
--- PASS: TestIntegreatly/Integreatly_Happy_Path_Tests (0.54s)
--- PASS: TestIntegreatly/Integreatly_Happy_Path_Tests/Verify_RHMI_CRD_Exists (0.54s)
PASS
@psturc
psturc / mobile-services.js
Created February 22, 2019 15:14
For release 0.1.0 of ionic-showcase
let config = {
"version": 1,
"namespace": "test",
"clientId": "org.aerogear.ionic.showcase",
"services": [
{
"id": "e973164c-3687-11e9-9467-0af08791569c",
"name": "keycloak",
"type": "keycloak",
"url": "https://keycloak-route-test.comm2.skunkhenry.com/auth",
Executing tasks: [:app:assembleDebug]
:app:buildInfoDebugLoader
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
[2018-07-31T09:58:01.483Z] INFO (11236 on Pavels-MacBook-Pro.local):
tag: "AUDIT"
requestId: 4
operationType: "query"
parentTypeName: "Profile"
path: "allProfiles.0.memes"
success: true
parent: {
"_type": "profile",
"email": "[email protected]",
@psturc
psturc / data-sync-server-apb.log
Created July 27, 2018 20:20
Log from Data Sync Server pod
> [email protected] start /opt/app-root/src
> node ./index.js
{"level":30,"time":1532722742178,"msg":"Using default schemaListener since SCHEMA_LISTENER_CONFIG environment variable is not defined","pid":19,"hostname":"data-sync-server-1-5bshx","v":1}
unhandled rejection: { SequelizeDatabaseError: column Resolver.publish does not exist
at Query.formatError (/opt/app-root/src/node_modules/sequelize/lib/dialects/postgres/query.js:363:16)
at query.catch.err (/opt/app-root/src/node_modules/sequelize/lib/dialects/postgres/query.js:86:18)
at tryCatcher (/opt/app-root/src/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/opt/app-root/src/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/opt/app-root/src/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/opt/app-root/src/node_modules/bluebird/js/release/promise.js:614:10)
λ ~/work/aerogear/data-sync-server/ postgres-datasource* npm run db:init:memeo:postgres
> [email protected] db:init:memeo:postgres /Users/psturc/work/aerogear/data-sync-server
> FORCE_DROP=true node ./scripts/sync_models && sequelize db:seed --seed memeolist-example-postgres.js && docker exec aerogeardatasyncserver_postgres_memeo_1 psql -U postgres -d memeolist_db -f /tmp/examples/memeolist.tables.sql
{"level":30,"time":1532095119016,"msg":"Using default schemaListener since SCHEMA_LISTENER_CONFIG environment variable is not defined","pid":38687,"hostname":"Pavels-MacBook-Pro.local","v":1}
{"level":30,"time":1532095119548,"msg":"Executing (default): DROP TABLE IF EXISTS \"Resolvers\" CASCADE;","pid":38687,"hostname":"Pavels-MacBook-Pro.local","v":1}
{"level":30,"time":1532095119551,"msg":"Executing (default): DROP TABLE IF EXISTS \"GraphQLSchemas\" CASCADE;","pid":38687,"hostname":"Pavels-MacBook-Pro.local","v":1}
{"level":30,"time":1532095119553,"msg":"Executing (default): DROP TABLE IF EXISTS \"DataS