Merge branch 'stable'

* stable:
  (PDB-605) Pin facter requirement to 1.7.0
Merge branch 'stable'

* stable:
  Other cases of facter/puppet requirements that were not changed
  Another case of Puppet 3.4.2
  DOCS: We now need Puppet 3.5.1, not 3.4.2
  (PDB-626) Added some additional fixes/features to the 2.0.0 release notes
  Updated the release notes for the 2.0.0 release
  Correct hyperlink to anchor syntax in FAQ
  Fix example query to be JSON, not clojure
  Wrap API examples in back-ticks to make the hyperlinks work
  Fix environment end-point links to be compatible with our docs site
(PDB-309) Update config conversion code for Schema 0.2.1

Much of the code for converting user provided config to the internal types (i.e.
"10" to Joda time 10 Seconds etc) is no longer necessary with the new
coerce features of Schema. This commit switches to the new version and
makes the necessary changes to use the coerce feature.
Merge pull request #959 from senior/ticket/master/pdb-309-update-schema-config-conversion

(PDB-309) Update config conversion code for Schema 0.2.1
Merge branch 'stable'

* stable:
  Fix a race condition in the import/export round-trip clojure tests
(PDB-16) Fix terminus to always submit reports and include the status
(PDB-16) Added status to "store report" and report query results

Previously there was no way to distinguish between failed puppet runs
and successful puppet runs as we didn't store report status. This commit
adds support for report status to the "store report" command, v4 query
API and model.
(PDB-16) Include warning when environment doesn't exist in report

This throws a warning if users are suffering from bug PUP-2508.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #960 from senior/ticket/master/pdb-16-report-status

(PDB-16) Added status to "store report" and report query results
Merge branch 'stable'

* stable:
  Unpin the version of beaker
  (PDB-551) Reduce wording based on feedback
  (PDB-551) Some minor cleanups to the versioning policy
  (PDB-551) Include a versioning policy
  Fix reference to PuppetDB 1.6.x in index.markdown
  Update release notes with more upgrade warnings
Merge branch 'stable'

* stable:
  Fix comparison in dup resources acceptance test
(PDB-467) Collapse versioned files for http tests

This patch removes all remaining versioned http test files into shared
unversioned files, so that we may start iterating across versions in the
same file.

Signed-off-by: Ken Barber <ken@bob.sh>
(PDB-467) Create deftestseq and implement it everywhere

This patch creates deftestseq which really is just a combination of deftest
and Ryan's doseqver. This has been implemented across all http tests now
as a standard for iterating across each available API version for that
particular end-point.

All cases of :use have been moved into their relevant :require sections for
all these tests as well, including some other various cleanups.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge branch 'stable'

* stable:
  (PDB-686) Add warning about PDB-686 to release notes
  sbin_dir logic to Rakefile
  (PDB-597) Add trusty build default
Typo in v4/reports.markdown

The alias for the link to the statuses page was incorrect. Fixed.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #974 from kbarber/maint/master/typo-in-v4-reports.md

Typo in v4/reports.markdown
(PDB-467) Convert endpoints to vecs of vecs

Also remove one commented end-point.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #966 from kbarber/ticket/master/pdb-467-merge-versioned-http-tests

Ticket/master/pdb 467 merge versioned http tests
(PDB-657) Query logic refactor

First cut at creating an intermediate query language for PuppetDB. The
initial user query is expanded from the more sugared syntax to a smaller
set of basic operators and subqueries. The query then goes from the
"expanded form" to a query plan and then ultimately down to sql. The
user query is manipulated in the context of a "source query", specific
to each endpoint. This commit supports resources, but will next expand
to the other endpoints.
Merge pull request #976 from senior/ticket/master/pdb-657-query-logic-refactor

(PDB-657) Query logic refactor