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
auth
[X] 0001_initial
[X] 0002_alter_permission_name_max_length
[X] 0003_alter_user_email_max_length
[X] 0004_alter_user_username_opts
[X] 0005_alter_user_last_login_null
[X] 0006_require_contenttypes_0002
[X] 0007_alter_validators_add_error_messages
[X] 0008_alter_user_username_max_length
[X] 0009_alter_user_last_name_max_length
2024-09-04 19:22:58,406 INFO [60b4e28e] awx.api.authentication User admin performed a DELETE to /api/v2/users/2/ through the API using OAuth 2 token 1.
2024-09-04 19:22:58,618 ERROR [60b4e28e] django.request Internal Server Error: /api/v2/users/2/
Traceback (most recent call last):
 File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/db/backends/base/base.py", line 313, in _commit
 return self.connection.commit()
 ^^^^^^^^^^^^^^^^^^^^^^^^
 File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/psycopg/connection.py", line 896, in commit
 self.wait(self._commit_gen())
 File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/psycopg/connection.py", line 969, in wait
(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