Skip to content

Commit

Permalink
Rename "regionId" -> "region" for fake runbook api
Browse files Browse the repository at this point in the history
  • Loading branch information
teferi committed Jan 9, 2017
1 parent a2d2042 commit ac9817a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ceagle/api_fake_data/fake_runbooks.py
Expand Up @@ -44,7 +44,7 @@ def get_single_runbook(with_latest_run=True):
"latest_run": None,
"tags": random.choice(tag_choices),
"parameters": random.choice(parameter_choices),
"regionId": random.choice(region_choices),
"region": random.choice(region_choices),
}

if with_latest_run:
Expand All @@ -68,7 +68,7 @@ def get_single_run(with_parent=True):
"output": "SGVsbG8gV29ybGQhCg==",
"return_code": 0,
"parent": None,
"regionId": random.choice(region_choices),
"region": random.choice(region_choices),
}
if with_parent:
run["parent"] = get_single_runbook(False)
Expand Down
20 changes: 10 additions & 10 deletions raml/response_examples/200/runbook_runs.json
Expand Up @@ -16,7 +16,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -35,7 +35,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -54,7 +54,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -73,7 +73,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -92,7 +92,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -111,7 +111,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -130,7 +130,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -149,7 +149,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -168,7 +168,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
},
{
Expand All @@ -187,7 +187,7 @@
"latest_run": null,
"type": "bash"
},
"regionId": "region_one",
"region": "region_one",
"user": "cloud_user"
}
]
Expand Down

0 comments on commit ac9817a

Please sign in to comment.