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

Moved AuthorizationTest to groovy spock framework #38

Merged
merged 11 commits into from
Oct 31, 2023

Conversation

srujana4
Copy link
Contributor

What Changed

Moved AuthorizationTest to groovy spock framework

Why

github issue #37
Todo:

  • Add tests
  • Add docs

@srujana4
Copy link
Contributor Author

I am having trouble in including these tests to be run as part of the mvn clean install @ashpak-shaikh Could you please help

@ashpak-shaikh
Copy link
Contributor

This is good, you just need the gmaven plugin and also be sure to include the Specification file in the surefire plugin.

https://stackoverflow.com/questions/43824908/maven-plugin-for-groovy-tests

@ashpak-shaikh
Copy link
Contributor

 Tests run: 20, Failures: 0, Errors: 20, Skipped: 0, Time elapsed: 0.806 s <<< FAILURE! - in com.intuit.graphql.authorization.enforcement.AuthorizationSpec
Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authorization with some redactions with list  Time elapsed: 0.058 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with no client configuration  Time elapsed: 0.003 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz Introspection With Some Redactions  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz happy case  Time elapsed: 0.004 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz happy case all fields  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz happy case all fields with fragments  Time elapsed: 0.002 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test no Authz  Time elapsed: 0.002 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with invalid scope  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz multi scopes  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with invalid field  Time elapsed: 0.002 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with mutation  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with mutation multi scopes  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with mutation multi scopes2  Time elapsed: 0.002 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with mutation no access  Time elapsed: 0 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with mutation no scope  Time elapsed: 0.003 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with mutation and fragments  Time elapsed: 0.003 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test authz with mutation non oauth2  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test introspection with test client2  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test introspection without scope  Time elapsed: 0.001 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

Error:  com.intuit.graphql.authorization.enforcement.AuthorizationSpec.test introspection with multi scopes  Time elapsed: 0.002 s  <<< ERROR!
java.lang.IllegalAccessException: class org.spockframework.util.ReflectionUtil cannot access a member of class com.intuit.graphql.authorization.enforcement.AuthorizationSpec with modifiers "private"

@ashpak-shaikh ashpak-shaikh merged commit 8af8db0 into graph-quilt:master Oct 31, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants