aws-samples / api-gateway-secure-pet-store

Amazon API Gateway sample using Amazon Cognito credentials through AWS Lambda
Apache License 2.0
308 stars 113 forks source link

Swagger on windows #10

Open r2ad opened 8 years ago

r2ad commented 8 years ago

I got most of the way through, then got stuck on a non-cloud step (running on windows): ./aws-api-import.sh --create /path/to/secure-pet-store/src/main/resources/swagger.yaml

I can always create the lambda functions manually base don the yaml content.

The maven assembly command builds however then all the tests fail. When I try just the compile, that works. I was expecting/hoping that a jar would have been created - that did not happen as a result of the assembly. All the tests fail - various exceptions.

%mvn org.apache.maven.plugins:maven-compiler-plugin:compile [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building aws-apigateway-importer 1.0.3-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The artifact org.apache.commons:commons-io:jar:1.3.2 has been relocated to commons-io:commons-io:jar:1.3.2 [INFO] [INFO] --- maven-compiler-plugin:2.5.1:compile (default-cli) @ aws-apigateway-importer --- [INFO] Nothing to compile - all classes are up to date [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.870s [INFO] Finished at: Mon Mar 21 22:50:34 EDT 2016 [INFO] Final Memory: 12M/309M [INFO] ------------------------------------------------------------------------ % %ls -la target total 16 drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:14 . drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:14 .. drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:14 classes drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:14 generated-sources drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:14 generated-test-sources drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:51 surefire drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:14 surefire-reports drwxrwxr-x+ 1 behrens behrens 0 Mar 21 22:14 test-classes

sapessi commented 8 years ago

Which tests are failing? the ones from the Swagger importer?