Skip to content

Instantly share code, notes, and snippets.

View AlanCoding's full-sized avatar

Alan Rominger AlanCoding

  • Red Hat
  • Durham, NC
View GitHub Profile
(awx) bash-5.1$ py.test awx/main/tests/functional/api/test_instance_group.py::test_instance_group_order_persistence awx/main/tests/docs/test_swagger_generation.py::TestSwaggerGeneration::test_sanity
========================================== test session starts ==========================================
platform linux -- Python 3.11.7, pytest-8.1.1, pluggy-1.5.0
django: version: 4.2.6, settings: awx.main.tests.settings_for_test (from ini)
rootdir: /awx_devel
configfile: pytest.ini
plugins: anyio-4.3.0, django-test-migrations-1.3.0, asyncio-0.23.6, cov-5.0.0, django-4.8.0, forked-1.6.0, mock-1.11.1, timeout-2.3.1, xdist-1.34.0
asyncio: mode=Mode.STRICT
collected 4 items
-- Detecting notnull changes not implemented for this database backend
BEGIN;
-- Application: main
-- Model: Role
ALTER TABLE "main_rbac_roles"
MODIFY "object_id" integer;
-- Model: RoleAncestorEntry
ALTER TABLE "main_rbac_role_ancestors"
MODIFY "content_type_id" integer;
@AlanCoding
AlanCoding / DAB_RBAC_with_fix.json
Last active April 2, 2024 15:54
Team access display
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 14,
"type": "user",
"url": "/api/v2/users/14/",
"related": {
@AlanCoding
AlanCoding / awx.json
Last active May 15, 2024 15:30
RBAC metadata for services
{
"role_permissions": {
"awx.credential": [
"awx.use_credential",
"awx.change_credential",
"awx.delete_credential",
"awx.view_credential"
],
"awx.executionenvironment": [
"awx.change_executionenvironment",
$ cargo run --release
info: syncing channel updates for '1.76-x86_64-unknown-linux-gnu'
info: latest update on 2024-02-08, rust version 1.76.0 (07dca489a 2024-02-04)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-std' for 'aarch64-apple-darwin'
info: downloading component 'rust-std' for 'wasm32-wasi'
info: downloading component 'rust-std' for 'x86_64-apple-darwin'
info: downloading component 'rust-std'
info: downloading component 'rustc'
{
"count": 55,
"next": "/api/v2/organizations/33/access_list/?page=2",
"previous": null,
"results": [
{
"id": 1,
"type": "user",
"url": "/api/v2/users/1/",
"related": {
system_administrator
instancegroup.admin_role
credential.admin_role
organization.admin_role
workflowjobtemplate.admin_role
project.admin_role
instancegroup.use_role
instancegroup.read_role
credential.use_role
credential.read_role
@AlanCoding
AlanCoding / README.md
Created September 25, 2023 17:43
database locking demo
awx=# \d main_organization;
Table "public.main_organization"
Column | Type | Collation | Nullable | Default
-------------------------------------+--------------------------+-----------+----------+----------------------------------
id | integer | | not null | generated by default as identity
created | timestamp with time zone | | not null |
modified | timestamp with time zone | | not null |
description | text | | not null |
name | character varying(512) | | not null |
created_by_id | integer | | |