Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return missing permissions on 403 Forbidden #89

Merged
merged 7 commits into from
Sep 5, 2019
Merged

Conversation

atemate
Copy link
Contributor

@atemate atemate commented Aug 21, 2019

Closes #79

@atemate atemate force-pushed the ay/improve-403-tests branch from f846635 to e6b7740 Compare September 2, 2019 10:31
@codecov
Copy link

codecov bot commented Sep 2, 2019

Codecov Report

Merging #89 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #89   +/-   ##
=======================================
  Coverage   92.69%   92.69%           
=======================================
  Files          11       11           
  Lines         876      876           
  Branches       76       76           
=======================================
  Hits          812      812           
  Misses         42       42           
  Partials       22       22
Flag Coverage Δ
#integration 86.98% <100%> (ø) ⬆️
#unit 44.74% <0%> (ø) ⬆️
Impacted Files Coverage Δ
platform_monitoring/api.py 88.38% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7887643...498ac9a. Read the comment docs.

@atemate atemate changed the title Improve tests on 403 Forbidden: check missing permissions Return missing permissions on 403 Forbidden Sep 2, 2019
Artem Yushkovskiy added 2 commits September 2, 2019 13:32
@atemate atemate requested a review from dalazx September 2, 2019 13:22
Makefile Outdated
@@ -3,6 +3,10 @@ IMAGE_TAG ?= latest
ARTIFACTORY_TAG ?=$(shell echo "$(CIRCLE_TAG)" | awk -F/ '{print $$2}')
IMAGE ?= $(GKE_DOCKER_REGISTRY)/$(GKE_PROJECT_ID)/$(IMAGE_NAME)

IMAGE_PLATFORM_API = $(GKE_DOCKER_REGISTRY)/$(GKE_PROJECT_ID)/platformapi:3e475aa6a0665e2a88ec854f59ec092a6472cb91
IMAGE_PLATFORM_AUTH_API = $(GKE_DOCKER_REGISTRY)/$(GKE_PROJECT_ID)/platformauthapi:33318ecfd6ca5b0974f050f16b780d57e4a43e4f
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: we also updated platformauthapi's version

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what I don't like here is that this won't work locally as opposed to platform-api. we do not want to combine images names like this, I think, because we already know the resulting name anyhow. and when we decide to migrate to Artifacotry completely, we'll have to ditch this anyways.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, please, could we use an approach similar to platform-api here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not in this PR. Reverted back.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#96

@anayden
Copy link
Contributor

anayden commented Sep 2, 2019

LGTM

Copy link
Contributor

@dalazx dalazx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atemate atemate requested a review from dalazx September 5, 2019 10:40
@atemate
Copy link
Contributor Author

atemate commented Sep 5, 2019

re-worked

Makefile Outdated Show resolved Hide resolved
@atemate atemate requested a review from dalazx September 5, 2019 11:26
Copy link
Contributor

@dalazx dalazx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥇

@atemate atemate merged commit c65e6ad into master Sep 5, 2019
@atemate atemate deleted the ay/improve-403-tests branch September 5, 2019 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add more information when returning 403
4 participants