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 -u dlobatog@redhat.com:redhat -vvvv -k -F "upload=@dmitri_xccdf_report.xml;type=application/vnd.redhat.compliance.something+tgz" -H "x-rh-insights-request-id: dlobatog" -H "x-rh-identity: eyJpZGVudGl0eSI6eyJhY2NvdW50X251bWJlciI6IjE0NjAyOTAiLCJ0eXBlIjoiVXNlciIsInVzZXIiOnsidXNlcm5hbWUiOiJkbG9iYXRvZ0ByZWRoYXQuY29tIiwiZW1haWwiOiJkbG9iYXRvZytxYUByZWRoYXQuY29tIiwiZmlyc3RfbmFtZSI6IkRhbmllbCIsImxhc3RfbmFtZSI6IkxvYmF0byBHYXJjaWEiLCJpc19hY3RpdmUiOnRydWUsImlzX29yZ19hZG1pbiI6ZmFsc2UsImlzX2ludGVybmFsIjp0cnVlLCJsb2NhbGUiOiJlbl9VUyJ9LCJpbnRlcm5hbCI6eyJvcmdfaWQiOiI2MzQwMDU2In19fQ==" http://localhost:8080/api/ingress/v1/upload |
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
| �=V�IvO\\u0000\",\"6194200\",\"eyJlbnRpdGxlbWVudHMiOnsiaW5zaWdodHMiOnsiaXNfZW50aXRsZWQiOnRydWV9LCJvcGVuc2hpZnQiOnsiaXNfZW50aXRsZWQiOnRydWV9LCJzbWFydF9tYW5hZ2VtZW50Ijp7ImlzX2VudGl0bGVkIjp0cnVlfSwiaHlicmlkX2Nsb3VkIjp7ImlzX2VudGl0bGVkIjp0cnVlfX0sImlkZW50aXR5Ijp7ImludGVybmFsIjp7ImF1dGhfdGltZSI6MCwiYXV0aF90eXBlIjoiand0LWF1dGgiLCJvcmdfaWQiOiIxMjMyNTQ0MCJ9LCJhY2NvdW50X251bWJlciI6IjYxOTQyMDAiLCJ1c2VyIjp7ImZpcnN0X25hbWUiOiJMaWxsYSIsImlzX2FjdGl2ZSI6dHJ1ZSwiaXNfaW50ZXJuYWwiOmZhbHNlLCJsYXN0X25hbWUiOiJNYXJjaGV3a2EiLCJsb2NhbGUiOiJlbl9VUyIsImlzX29yZ19hZG1pbiI6dHJ1ZSwidXNlcm5hbWUiOiJ3NncyYUB5YWhvby5jb20iLCJlbWFpbCI6IlZ0LmU1QGdtYWlsLmNvbSJ9LCJ0eXBlIjoiVXNlciJ9fQ==\"],\"retry\":3,\"queue\":\"default\",\"backtrace\":true,\"unique\":true,\"jid\":\"c5e2ea2277a40ee7c7fe2bdc\",\"created_at\":1558019435.834335,\"enqueued_at\":1558019435.83439}"} | |
| 2019-05-16T15:27:40.590Z 1 TID-ow8u29sxp WARN: ActiveRecord::RecordInvalid: Validation failed: Host must exist, Host can't be blank | |
| 2019-05-16T15:27:40.590Z 1 TID-ow8u29sxp WARN: /opt/app-ro |
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
| [11] pry(main)> a = Host.new(id: SecureRandom.uuid, name: 'securerandom') | |
| => #<Host:0x0000564fdb674748 | |
| id: "7d9cc9e2-e962-48ff-a914-b9ad258d54f0", | |
| name: "securerandom", | |
| created_at: nil, | |
| updated_at: nil, | |
| account_id: nil> | |
| [12] pry(main)> a.valid? | |
| Host Exists (1.2ms) SELECT 1 AS one FROM "hosts" WHERE "hosts"."name" = $1 AND "hosts"."account_id" IS NULL LIMIT $2 [["name", "securerandom"], ["LIMIT", 1]] | |
| => true |
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
| irb(main):001:0> RuleResult.where(:end_time => nil) | |
| => #<ActiveRecord::Relation []> | |
| irb(main):002:0> RuleResult.where(:start_time => nil) | |
| => #<ActiveRecord::Relation []> |
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
| { | |
| "insights_id": "d016cd78-2a56-4cef-adb9-1ac0096a9b1d", | |
| "rhel_machine_id": null, | |
| "subscription_manager_id": "b0628500-fa75-43a5-990f-d21d5b981ab1", | |
| "satellite_id": null, | |
| "bios_uuid": "fa95f7bc-6b39-405e-858a-80d47a14f538", | |
| "ip_addresses": [ | |
| "192.168.0.20", | |
| "192.168.122.1", | |
| "10.10.124.62", |
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
| Host.find_by(:id => 'f15b74f2-2409-4e64-9879-5e7a8f4a5ac7').rules.select { |e| e.description.nil? }.map(&:ref_id) | |
| => ["xccdf_org.ssgproject.content_rule_package_telnet_removed", "xccdf_org.ssgproject.content_rule_package_samba_removed", "xccdf_org.ssgproject.content_rule_package_tftp-server_removed", "xccdf_org.ssgproject.content_rule_service_xinetd_disabled", "xccdf_org.ssgproject.content_rule_package_talk-server_removed", "xccdf_org.ssgproject.content_rule_service_vsftpd_disabled", "xccdf_org.ssgproject.content_rule_package_vsftpd_removed", "xccdf_org.ssgproject.content_rule_service_snmpd_disabled", "xccdf_org.ssgproject.content_rule_disable_anacron", "xccdf_org.ssgproject.content_rule_package_quagga_removed", "xccdf_org.ssgproject.content_rule_service_zebra_disabled", "xccdf_org.ssgproject.content_rule_service_named_disabled", "xccdf_org.ssgproject.content_rule_service_smb_disabled", "xccdf_org.ssgproject.content_rule_service_httpd_disabled", "xccdf_org.ssgproject.content_rule_package_httpd_removed", "xccd |
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
| irb(main):019:0> Host.find_by(:id => 'f15b74f2-2409-4e64-9879-5e7a8f4a5ac7').rules.select { |e| e.description.nil? }.first | |
| => #<Rule id: "8688b700-3371-4d36-8e5d-60ffcb32e7a8", ref_id: "xccdf_org.ssgproject.content_rule_package_telnet_r...", supported: nil, title: "Remove telnet Clients", severity: "low", description: nil, rationale: "The telnet protocol is insecure and unencrypted. T...", created_at: "2019-04-30 12:45:52", updated_at: "2019-04-30 12:45:52", slug: "xccdf_org-ssgproject-content_rule_package_telnet_r..."> |
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
| ENV_FOR_DYNACONF=ci DYNACONF_COMPLIANCE={reliability_test="{num_uploads=100,concurrency_limit=15}"} iqe tests plugin compliance -s -k test_compliance_reliability_asyn | |
| Plugin path: /home/dlobatog/workspace/insights/iqe_venv/lib/python3.6/site-packages/iqe_compliance | |
| ⚠️ WARNING: Package iqe-integration-tests is at version 0.9.8, latest 0.9.9 | |
| ============================================================================================================================= test session starts ============================================================================================================================== | |
| platform linux -- Python 3.6.1, pytest-4.4.1, py-1.8.0, pluggy-0.9.0 -- /home/dlobatog/workspace/insights/iqe_venv/bin/python3.6 | |
| cachedir: .pytest_cache | |
| metadata: {'Python': '3.6.1', 'Platform': 'Linux-4.20.16-200.fc29.x86_64-x86_64-with-fedora-29-Twenty_Nine', 'Packages': {'pytest': '4.4.1', 'py': '1.8.0', 'pluggy': '0.9.0'}, 'Plugins': {'report-parameters': '0.2', 'polarion-collect': '0.13', 'metadata': |
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
| ENV_FOR_DYNACONF=ci DYNACONF_COMPLIANCE={reliability_test="{num_uploads=50,concurrency_limit=15}"} iqe tests plugin compliance -s -k test_compliance_reliability_asyn | |
| Plugin path: /home/dlobatog/workspace/insights/iqe_venv/lib/python3.6/site-packages/iqe_compliance | |
| ⚠️ WARNING: Package iqe-integration-tests is at version 0.9.8, latest 0.9.9 | |
| ============================================================================================================================= test session starts ============================================================================================================================== | |
| platform linux -- Python 3.6.1, pytest-4.4.1, py-1.8.0, pluggy-0.9.0 -- /home/dlobatog/workspace/insights/iqe_venv/bin/python3.6 | |
| cachedir: .pytest_cache | |
| metadata: {'Python': '3.6.1', 'Platform': 'Linux-4.20.16-200.fc29.x86_64-x86_64-with-fedora-29-Twenty_Nine', 'Packages': {'pytest': '4.4.1', 'py': '1.8.0', 'pluggy': '0.9.0'}, 'Plugins': {'report-parameters': '0.2', 'polarion-collect': '0.13', 'metadata': |
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
| Started POST "/api/compliance/graphql" for 127.0.0.1 at 2019-04-23 18:57:50 +0200 | |
| Processing by GraphqlController#query as */* | |
| Parameters: {"operationName"=>"FailedRulesForSystem", "variables"=>{"systemIdsQuery"=>"id ^ (f5cf6f1c-fccf-4f41-8001-f12434cb0943)"}, "query"=>"query FailedRulesForSystem($systemIdsQuery: String!) {\n allSystems(search: $systemIdsQuery) {\n id\n rule_objects_failed {\n ref_id\n title\n __typename\n }\n __typename\n }\n}\n", "graphql"=>{"operationName"=>"FailedRulesForSystem", "variables"=>{"systemIdsQuery"=>"id ^ (f5cf6f1c-fccf-4f41-8001-f12434cb0943)"}, "query"=>"query FailedRulesForSystem($systemIdsQuery: String!) {\n allSystems(search: $systemIdsQuery) {\n id\n rule_objects_failed {\n ref_id\n title\n __typename\n }\n __typename\n }\n}\n"}} | |
| User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."username" = $1 LIMIT $2 [["username", "dlobatog@redhat.com"], ["LIMIT", 1]] | |
| ↳ app/controllers/graphql_controller.r |