Skip to content

Commit

Permalink
Cosmetics after demo
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Aug 6, 2021
1 parent 51f8303 commit ef9b578
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ COPY mockintosh/ ./mockintosh/

RUN pip3 install .

WORKDIR /tmp

ENTRYPOINT ["mockintosh"]
2 changes: 0 additions & 2 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,6 @@

## Other

- Better way to support GraphQL

- Nicer logging of requests, with special option to enable it.
- Nicer formatted error pages for known errors, explaining the problem

Expand Down
2 changes: 1 addition & 1 deletion mockintosh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def initiate():
try:
load_override = _handle_oas_input(source, ['config.yaml', 'yaml'], True)
logging.info("Automatically transpiled the config YAML from OpenAPI Specification.")
except ValidationError:
except (ValidationError, AttributeError):
logging.debug("The input is not a valid OpenAPI Specification, defaulting to Mockintosh config.")
except ResolutionError: # pragma: no cover
pass
Expand Down
3 changes: 1 addition & 2 deletions mockintosh/res/management.html
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,6 @@ <h3>Consumers</h3>
$("#reqlog input").prop('checked', result['log']['_enabled']);
for (; traffic_offset < result.log.entries.length; traffic_offset++) {
const entry = result.log.entries[traffic_offset];
const url = new URL(entry.request.url);
const li = $("<li></li>").addClass('list-group-item').data('obj', entry);
const dateBlock = $('<span class="small text-muted">' + new Date(entry.startedDateTime).toLocaleString(language) + '</span>');

Expand Down Expand Up @@ -1030,7 +1029,7 @@ <h3>Consumers</h3>
'accept', 'accept-charset', 'accept-datetime', 'accept-encoding', 'accept-language',
'access-control-allow-credentials', 'access-control-allow-origin', 'access-control-request-headers',
'access-control-request-method', 'access-control-allow-methods',
'authorization', 'cache-control', 'connection', 'content-encoding', 'content-length', 'content-type', 'cookie',
'authorization', 'cache-control', 'connection', 'content-encoding', 'content-length', 'cookie',
'date', 'dnt', 'expect', 'forwarded', 'from', 'front-end-https', 'host', 'http2-settings',
'if-match', 'if-modified-since', 'if-none-match', 'if-range', 'if-unmodified-since',
'max-forwards', 'origin', 'pragma', 'proxy-authorization', 'proxy-connection', 'range', 'referer',
Expand Down

0 comments on commit ef9b578

Please sign in to comment.