This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST -k -u admin:changeme -H "Content-Type: application/json" 'https://qetello01.usersys.redhat.com/katello/api/v2/activation_keys/' -d '{"content_view_id": 1, "usage_limit": 7, "environment_id": 1, "description": "0ZqOMEgldXWg65J58ir7", "organization_id": 1, "name": "10jqqdjLvBIMoESNURCkv"}' | |
| {"displayMessage":"undefined method `attriubtes' for #<Rabl::Engine:0x007f5461d2aa20>","errors":["undefined method `attriubtes' for #<Rabl::Engine:0x007f5461d2aa20>"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST -k -u admin:changeme -H "Content-Type: application/json" 'https://qetello01.usersys.redhat.com/katello/api/v2/products/' -d '{"organization_id": 1, "description": "test-prod-desc", "name": "test-product1"}' | |
| {"displayMessage":"PGError: ERROR: operator does not exist: character varying = integer\nLINE 1: ...\"taxonomies\".\"deletion_task_id\" IS NULL AND (name = 1 or lab...\n ^\nHINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.\n: SELECT \"taxonomies\".* FROM \"taxonomies\" WHERE \"taxonomies\".\"type\" IN ('Organization') AND \"taxonomies\".\"deletion_task_id\" IS NULL AND (name = 1 or label = 1) ORDER BY title LIMIT 1","errors":["PGError: ERROR: operator does not exist: character varying = integer\nLINE 1: ...\"taxonomies\".\"deletion_task_id\" IS NULL AND (name = 1 or lab...\n ^\nHINT: No operator matches the give |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ====================================================================== | |
| ERROR: test_remove (tests.foreman.api.test_host.TestHost) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "tests/foreman/api/test_host.py", line 34, in test_remove | |
| ApiCrud.record_create_recursive(h) | |
| File "robottelo/api/apicrud.py", line 547, in record_create_recursive | |
| return api.record_create_recursive(instance_orig, user=user) | |
| File "robottelo/api/apicrud.py", line 548, in record_create_recursive | |
| res_instance = cls.record_create_dependencies(instance_orig, user=user) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ====================================================================== | |
| ERROR: test_remove (tests.foreman.api.test_host.TestHost) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "tests/foreman/api/test_host.py", line 34, in test_remove | |
| ApiCrud.record_create_recursive(h) | |
| File "robottelo/api/apicrud.py", line 547, in record_create_recursive | |
| return api.record_create_recursive(instance_orig, user=user) | |
| File "robottelo/api/apicrud.py", line 548, in record_create_recursive | |
| res_instance = cls.record_create_dependencies(instance_orig, user=user) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ====================================================================== | |
| ERROR: test_update_ActivationKey(content_view_id=1, usage_limit=4, environment_id=1, description=u'a3ih7H42Gkp4heqBOvsY', organization_id=1, name=u'\xc4\xce\xd2\xf2\xd5\xe1\xc5\xcd\xea\xdc\xfc\xf2\xc0\xce\xc1\xc3\xe9\xd3\xf0\xde') (tests.foreman.api.test_activationkey.ActivationKeys) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/asaleh/.virtualenvs/renv/lib/python2.7/site-packages/ddt.py", line 81, in wrapper | |
| return func(self, *args, **kwargs) | |
| File "tests/foreman/api/test_activationkey.py", line 39, in test_update | |
| ak_cr = ApiCrud.record_create(test_data) | |
| File "robottelo/api/apicrud.py", line 483, in record_create | |
| return api.record_create(instance_orig, user=user) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| In [1]: class Test(object): | |
| ...: password = "asdf" | |
| ...: @classmethod | |
| ...: def printPass(cls): | |
| ...: print cls.password | |
| ...: @classmethod | |
| ...: def printAsdf(cls): | |
| ...: print "asdf" | |
| ...: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@qetello01 ~]# subscription-manager register --force --org="ACME_Corporation" --environment=Library | |
| Username: admin | |
| Password: | |
| The system has been registered with id: bce1f0c1-d7de-40a8-8fc3-6c2db6b51d6c | |
| [root@qetello01 ~]# subscription-manager register --force --org="ACME_Corporation" --environment=Library | |
| The system with UUID bce1f0c1-d7de-40a8-8fc3-6c2db6b51d6c has been unregistered | |
| Username: admin | |
| Password: | |
| The system has been registered with id: dba0dca4-3985-4856-9dbe-d6808c111808 | |
| [root@qetello01 ~]# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # First Add these iptable rules to /etc/sysconfig/iptables | |
| # -A INPUT -m state --state NEW -m tcp -p tcp --dport 389 -j ACCEPT | |
| # -A INPUT -m state --state NEW -m tcp -p tcp --dport 636 -j ACCEPT | |
| # -A INPUT -m state --state NEW -m tcp -p tcp --dport 9830 -j ACCEPT | |
| service iptables restart | |
| yum install -y 389-ds openldap-clients | |
| useradd dsuser | |
| setup-ds-admin.pl | |
| #^ this command will ask you lots of questions, I loosely based my answers on http://www.unixmen.com/setup-directory-serverldap-in-centos-6-4-rhel-6-4/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import grequests as async | |
| import requests | |
| import json as js | |
| prefix = "large_new_compose" | |
| def request_json(prefix, i): | |
| return js.dumps({ | |
| "organization_id": 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LoadModule lookup_identity_module modules/mod_lookup_identity.so | |
| <LocationMatch ^/users/(ext)?login$> | |
| LookupUserAttr email REMOTE_USER_EMAIL " " | |
| LookupUserAttr firstname REMOTE_USER_FIRSTNAME | |
| LookupUserAttr lastname REMOTE_USER_LASTNAME | |
| LookupUserGroupsIter REMOTE_USER_GROUP | |
| </LocationMatch> |