This file contains 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
[paji@kafka hammer-cli-katello{master}]$ hammer gpg --help | |
Usage: | |
hammer gpg [OPTIONS] SUBCOMMAND [ARG] ... | |
Parameters: | |
SUBCOMMAND subcommand | |
[ARG] ... subcommand arguments | |
Subcommands: | |
list List GPG Keys |
This file contains 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
[paji@centos foreman{develop}]$ rake db:create | |
PG::InvalidParameterValue: ERROR: new encoding (UTF8) is incompatible with the encoding of the template database (SQL_ASCII) | |
HINT: Use the same encoding as in the template database, or use template0 as template. | |
: CREATE DATABASE "foreman" ENCODING = 'UTF8' | |
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `async_exec' | |
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `block in execute' | |
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' | |
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-3.2.16/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
/home/paji/.rvm/gems/ruby-2.0.0-p353/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' | |
/home/paji/.rvm/gems/ |
This file contains 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
[paji@centos foreman{develop}]$ ktest ../katello/test/actions/headpin/library_create_test.rb | |
/foreman /foreman | |
[deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message. | |
-- execute("SET CONSTRAINTS ALL DEFERRED;") | |
-> 0.0004s | |
Run options: --seed 34428 | |
# Running tests: | |
You are using WebMock 1.17.3. VCR 2.8.0 has been tested against WebMock >= 1.8.0, < 1.16, and you are using a newer version. If you experience VCR issues, consider downgrading WebMock as it may fix it. |
This file contains 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
#!/usr/bin/env bash | |
FOREMAN_PATH="/foreman" | |
pushd . | |
cd $FOREMAN_PATH | |
if [[ -n $1 ]] | |
then | |
KATELLO_PATH='/katello' | |
RAKE_PATH=`bundle show rake` | |
ruby -I"lib:test:${KATELLO_PATH}/test:${KATELLO_PATH}/spec" -I"${RAKE_PATH}/lib" \ |
This file contains 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
[paji@centos hammer-cli-katello{master}]$ hammer repository info --id=45 | |
Error: undefined method `try' for {"id"=>1, "name"=>"blah"}:Hash | |
[paji@centos hammer-cli-katello{master}]$ hammer repository info --id=45 | |
ID: 45 | |
Name: partello | |
Label: partello | |
Organization: ACME_Corporation | |
Red Hat Repository: no | |
Type: yum | |
URL: http://partha.fedorapeople.org/test-repos/partello/ |
This file contains 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 -s -i -L http://localhost:2375/v1.15/images/search?term=centos | |
HTTP/1.1 200 OK | |
Content-Type: application/json | |
Date: Wed, 06 May 2015 22:19:51 GMT | |
Transfer-Encoding: chunked | |
[{"description":"The official build of CentOS.","is_official":true,"is_trusted":false,"name":"centos","star_count":978} | |
,{"description":"Ansible on Centos7","is_official":false,"is_trusted":true,"name":"ansible/centos7-ansible","star_count":40} | |
,{"description":"Centos image with SSH access. For the root password, either set the ROOT_PASS environment variable or check the logs for a randomly generated one.","is_official":false,"is_trusted":true,"name":"tutum/centos","star_count":13} |
This file contains 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
def self.unassociate_ids_from_repo(repo_id, ids) | |
unassociate_from_repo(repo_id, :association => {'unit_id' => {'$in' => ids}}) | |
end | |
vs | |
def self.unassociate_ids_from_repo(repo_id, ids) | |
unassociate_from_repo(repo_id, :unit => {'id' => {'$in' => ids}}) | |
end |
This file contains 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
For all cases: | |
Unit.rb methods | |
* self.unassociate_from_repo(repo_id, filters) | |
1) | |
Unit.rb | |
* self.unassociate_ids_from_repo(repo_id, ids) | |
* self.unassociate_unit_ids_from_repo(repo_id, unit_ids) |
This file contains 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
rdb:1) y errata[0] | |
--- !map:ActiveSupport::HashWithIndifferentAccess | |
created: "2013-01-19T01:50:00Z" | |
updated: "2013-01-19T01:50:00Z" | |
owner_type: importer | |
id: 50f9b578196cbe10990012eb | |
repo_id: integration_test_id | |
_id: !map:ActiveSupport::HashWithIndifferentAccess | |
$oid: 50f9b578196cbe10990012eb | |
owner_id: yum_importer |
This file contains 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
Pylint shows | |
4********* Running Pylint ************************ | |
1715RUNNING: PYTHONPATH=src/ pylint --rcfile=./etc/spacewalk-pylint.rc --additional-builtins=_ katello | |
1716************* Module katello.client.main | |
1717W0622: 19,0: Redefining built-in 'filter' | |
1718************* Module katello.client.api.filter | |
1719C0301: 28,0: Line too long (121/120) | |
1720C0301: 38,0: Line too long (121/120) | |
1721W0613: 22,37:FilterAPI.filters_by_cvd_and_org: Unused argument 'definition' |
OlderNewer