Swagger (OpenAPI) 2.0 spec to generate New Relic clients and documentation, in response to https://discuss.newrelic.com/t/api-declaration-swagger-for-example/35365
Contributed by Ian Katz [email protected] with permission from Drizly.
| # Pretty sure this will work, | |
| run: | |
| - | | |
| gofmt -l . 2>&1 | |
| | jq -Rn '[ | |
| inputs | |
| | split(":") | |
| | { | |
| "path": .[0], | |
| "start_line": (.[1] | tonumber), |
Swagger (OpenAPI) 2.0 spec to generate New Relic clients and documentation, in response to https://discuss.newrelic.com/t/api-declaration-swagger-for-example/35365
Contributed by Ian Katz [email protected] with permission from Drizly.
| #!/bin/bash | |
| # | |
| # This script is for testing coffeescript (or other transpiled npm packages) on GitLab | |
| # | |
| # Designed to be put in a subdirectory of the repo under test, it generates a package.json and index.js | |
| # for a dummy test project -- it will check that whatever project is in the parent directory (i.e. the | |
| # root of your repo where package.json is) can properly prepare itself for installation when specified | |
| # as a git:// dependency | |
| # | |
| # To do this, it literally specifies your package under test as a git:// dependency -- |
| $ bin/nosetests ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice | |
| EEEE | |
| ====================================================================== | |
| ERROR: test_agent_instance_config_hasDevice ( ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice ) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/sa/instrument/test/test_instrument_management_service_integration.py", line 484, in test_agent_instance_config_hasDevice | |
| self.base_agent_instance_config(assign_fn, find_fn) | |
| File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/sa/instrument/test/test_instrument_management_service_integration.py", line 746, in base_agent_instance_config | |
| refresh_pconfig |