Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/cleat/contract_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ defmodule Cleat.ContractTest do
# Keys the CLI reads from each resource type.
@used %{
"app" =>
~w(id name slug github_repo branch host port runtime runtime_apt_packages auto_deploy indexable systemd_unit release_path data_dir server),
~w(id name slug github_repo branch host port runtime runtime_apt_packages analytics_inject auto_deploy indexable systemd_unit release_path data_dir server),
"app_query" => ~w(app_id slug engine columns rows truncated),
"analytics_requested" => ~w(app_id slug name host requests),
"analytics_visited" => ~w(app_id slug name host pageviews),
"analytics_summary" =>
~w(app_id slug range pageviews uniques series paths referrers utm stale),
"server" =>
~w(id name host_ip ssh_user region provider deploy_mode instance_status bundle_name cpu_count ram_mb disk_gb),
"deployment" =>
Expand Down
29 changes: 29 additions & 0 deletions test/fixtures/api_contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"addons",
"runtime",
"runtime_apt_packages",
"analytics_inject",
"server",
"inserted_at"
],
Expand All @@ -28,6 +29,32 @@
"rows",
"truncated"
],
"analytics_requested": [
"app_id",
"slug",
"name",
"host",
"requests"
],
"analytics_visited": [
"app_id",
"slug",
"name",
"host",
"pageviews"
],
"analytics_summary": [
"app_id",
"slug",
"range",
"pageviews",
"uniques",
"series",
"paths",
"referrers",
"utm",
"stale"
],
"deployment": [
"id",
"app_id",
Expand Down Expand Up @@ -90,6 +117,8 @@
"reasons",
"error_count",
"previous_error_count",
"last_event_at",
"ingest",
"preceding_release"
],
"signal_metrics": [
Expand Down
Loading