Skip to content

Instantly share code, notes, and snippets.

@Zak-Kent
Last active June 29, 2017 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zak-Kent/671333e2b9b9f2b0c2002e1bb8a09c9a to your computer and use it in GitHub Desktop.
Save Zak-Kent/671333e2b9b9f2b0c2002e1bb8a09c9a to your computer and use it in GitHub Desktop.
;; fake data in the testing db with a full catalog query
{:catalog_uuid "68b08e2a-eeb1-4322-b241-bfdf151d294b",
:producer "mom.com",
:hash "1d205efd414af8ac082912442a64322bc58159d4",
:transaction_uuid "68b08e2a-eeb1-4322-b241-bfdf151d294b",
:producer_timestamp #inst "2014-07-10T22:33:54.781000000-00:00",
:environment "DEV",
:code_id nil,
:version "123456789",
:resources
{:data
#{{:resource "ff0702ba8a7dc69d3fb17f9d151bf9bd265a9ed9",
:type "Class",
:title "foobar",
:tags ["class" "foobar"],
:exported false,
:file nil,
:line nil,
:parameters {}}
{:resource "e247f822a0f0bbbfff4fe066ce4a077f9c03cdb1",
:type "File",
:title "/etc/foobar/baz",
:tags ["class" "foobar" "file"],
:exported false,
:file "/tmp/bar",
:line 20,
:parameters
{:user "root",
:group "root",
:ensure "directory",
:require "File[/etc/foobar]"}}
{:resource "57495b553981551c5194a21b9a26554cd93db3d9",
:type "File",
:title "/etc/foobar",
:tags ["class" "foobar" "file"],
:exported false,
:file "/tmp/foo",
:line 10,
:parameters {:user "root", :group "root", :ensure "directory"}}},
:href "/pdb/query/v4/catalogs/host1/resources"},
:certname "host1",
:edges
{:data
[{:source_type "Class",
:source_title "foobar",
:target_type "File",
:target_title "/etc/foobar/baz",
:relationship "contains"}
{:source_type "Class",
:source_title "foobar",
:target_type "File",
:target_title "/etc/foobar",
:relationship "contains"}
{:source_type "File",
:source_title "/etc/foobar",
:target_type "File",
:target_title "/etc/foobar/baz",
:relationship "required-by"}],
:href "/pdb/query/v4/catalogs/host1/edges"},
:job_id nil}
;; fake data being created in PDB test node query
{:deactivated nil,
:latest_report_hash nil,
:facts_environment "DEV",
:cached_catalog_status nil,
:report_environment nil,
:latest_report_corrective_change nil,
:catalog_environment "DEV",
:facts_timestamp #inst "2017-06-29T22:48:07.226000000-00:00",
:latest_report_noop nil,
:expired nil,
:latest_report_noop_pending nil,
:report_timestamp nil,
:certname "host1",
:catalog_timestamp #inst "2017-06-29T22:48:07.162000000-00:00",
:latest_report_status nil}
;; Rob's fake data
{:type "package",
:title "vpcs",
:version "0.5b2-1",
:provider "yum",
:scope {:id "urn:puppet:certname:somehost-2", :name "somehost-2"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment