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

Update for using Handlers (by @WBerredo) and support for routing annotations (basic) #38

Open
wants to merge 53 commits into
base: master
Choose a base branch
from

Conversation

WickedSilver
Copy link

@WickedSilver WickedSilver commented Apr 1, 2016

  • Merged Work with handlers as service #12 (by @WBerredo) and solved conflicts,
  • Fixed bugs from merge,
  • Implemented --format parameter to command for support of routing annotation.
  • Implemented test generation option
  • Added support for yml service generation

WBerredo and others added 30 commits November 13, 2014 10:40
This reverts commit 5a13dd3.

Only a commit test
…cking and creating the folder if it doesn't exist
@WickedSilver
Copy link
Author

Currently working on generation of tests, after that's complete i will reopen de pull request.

WickedSilver and others added 3 commits April 22, 2016 15:51
# Implemented 
- automatic test generation
- handling of entity constraints for tests
- added yml support for service definition

# Details
* fixed typo

* added creation of test base case

* did this cause hard error?

* fix for twig syntax error

* fix for formatting of the included tests

* fixed double if in oauth/setup.php.twig

* object fields should not be put after eachother but under eachother

* object fields should not be put after eachother but under eachother

* added templates for no-authentication test

* added friendly test mode function

* added friendly test mode function

* added friendly test mode function

* added friendly test mode function

* fixed typos in test cases

* setup.php.twig format fixes

* setup.php.twig format fixes

* mode oauth base case command independent

* added returning response content on error in tests

* fixed defaults in interactive mode

* removed non-working interactive mode for oauth username/password

* fixed problems in oauth2 base testcase

* fix for tests of oauth

* added alpha version of ManyToOne support

* added support for array and date internval types in testing

* fixed typo in oauth setup for loop

* added test version of service generation as YML format

* added test version of service generation as YML format

* fixed handlers so Entities in sub maps is supported

* fixed handlers so Entities in sub maps is supported

* fixed handlers so Entities in sub maps is supported

* changed BaseTest location to be always in the root of Base

* made tests independant of entity being in sub-map (AppBundle:User/User)

* added usage of parameters in services.yml

* made controller compatible with sub-entity (AppBundle:User\User)

* fixed type in generation of serviceREST.yml file

* fixed twig replace for controller actions

* now using YmlLoader for loading yml instead of the XmlLoader

* removed unused testing code and now adding services/params to service yml file instead of replacing them

* added support of ManyToOne and OneToMany fields in oauth test case

* added forgotten line closing ';'

* made assoc field suffix with underscore for clarity

* added a parameter overview to the readmes and fixed some layout issues in the setup for oauth test

* added comments to setup

* re-formatted the setup for testing and made it for both oauth and no-authentication

* testing with Entity constraints, let's check the content

* testing with Entity constraints, let's check the content

* testing with Entity constraints, let's check the content

* testing with Entity constraints, let's check the content

* made bundle symfony dependant (added symfony to composer) and added testing version of checking constraints for fields in the test

* made bundle symfony dependant (added symfony to composer) and added testing version of checking constraints for fields in the test

* added constraint handling in setup template

* added support for length constraint
…erator, real code change for this merge is done in the previous commit
@WickedSilver
Copy link
Author

Added generation of tests, mostly for oauth2 only at the moment but extendible for any format. Any feedback is welcome :)

@WickedSilver WickedSilver reopened this Apr 25, 2016
@davidwdan
Copy link
Member

@WickedSilver I started to look at this and it looks very good. One issue I came across is the routing doesn't seem to work when I select annotations. It works fine with YML.

@WickedSilver
Copy link
Author

@davidwdan Thanks for looking at my pull request and for the positive feedback 😄
I think the annotation routing doesn't work since i forgot to put this part in the routing.yml

app:
    resource: "@AppBundle/Controller/"
    type:     annotation

Can you confirm this?

* fixed typo

* added creation of test base case

* did this cause hard error?

* fix for twig syntax error

* fix for formatting of the included tests

* fixed double if in oauth/setup.php.twig

* object fields should not be put after eachother but under eachother

* object fields should not be put after eachother but under eachother

* added templates for no-authentication test

* added friendly test mode function

* added friendly test mode function

* added friendly test mode function

* added friendly test mode function

* fixed typos in test cases

* setup.php.twig format fixes

* setup.php.twig format fixes

* mode oauth base case command independent

* added returning response content on error in tests

* fixed defaults in interactive mode

* removed non-working interactive mode for oauth username/password

* fixed problems in oauth2 base testcase

* fix for tests of oauth

* added alpha version of ManyToOne support

* added support for array and date internval types in testing

* fixed typo in oauth setup for loop

* added test version of service generation as YML format

* added test version of service generation as YML format

* fixed handlers so Entities in sub maps is supported

* fixed handlers so Entities in sub maps is supported

* fixed handlers so Entities in sub maps is supported

* changed BaseTest location to be always in the root of Base

* made tests independant of entity being in sub-map (AppBundle:User/User)

* added usage of parameters in services.yml

* made controller compatible with sub-entity (AppBundle:User\User)

* fixed type in generation of serviceREST.yml file

* fixed twig replace for controller actions

* now using YmlLoader for loading yml instead of the XmlLoader

* removed unused testing code and now adding services/params to service yml file instead of replacing them

* added support of ManyToOne and OneToMany fields in oauth test case

* added forgotten line closing ';'

* made assoc field suffix with underscore for clarity

* added a parameter overview to the readmes and fixed some layout issues in the setup for oauth test

* added comments to setup

* re-formatted the setup for testing and made it for both oauth and no-authentication

* testing with Entity constraints, let's check the content

* testing with Entity constraints, let's check the content

* testing with Entity constraints, let's check the content

* testing with Entity constraints, let's check the content

* made bundle symfony dependant (added symfony to composer) and added testing version of checking constraints for fields in the test

* made bundle symfony dependant (added symfony to composer) and added testing version of checking constraints for fields in the test

* added constraint handling in setup template

* added support for length constraint

* and fixed a forgotten merge conflict

* now creating the YAML reference for use of annotation routing if it doesn't already exist.

* now creating the YAML reference for use of annotation routing if it doesn't already exist.

* now creating the YAML reference for use of annotation routing if it doesn't already exist.

* now creating the YAML reference for use of annotation routing if it doesn't already exist.
@WickedSilver
Copy link
Author

The issue with annotation routing should be fixed in the previous commit.

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.

None yet

5 participants