atc-api | Atomic Threat Coverage REST API | REST library
kandi X-RAY | atc-api Summary
kandi X-RAY | atc-api Summary
Check Wiki for more information.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Update an instance
- Create a new rplaybook
- Update a model instance
- Create a LogType instance
- Update the model
- Create a platform
- Update a model
- Create a Stage instance
atc-api Key Features
atc-api Examples and Code Snippets
Community Discussions
Trending Discussions on atc-api
QUESTION
I'm super confused. I think I'm encountering some kind of bug. Could use some help. I had passing specs (passed dozens of times on local and CI server), and these were completely unrelated to serializers. Like they _just check the status of certain controller methods. But then I literally ONLY added the active_model_serializers, a UserSerializer class, and now my specs are failing. It's saying the response from my controllers is :unauthorized
which isn't even possible, b/c I'm calling render status: :created
.
The entire app is OSS. This is literally all that has changed: https://github.com/codeblooded/atc-api/commit/a75978a9d9a65a5e8b592685a53045e9fe6d1d91 and it's claiming that this line https://github.com/codeblooded/atc-api/blob/master/app/controllers/colors_controller.rb#L12 is a 401. Any ideas? I'm about to remove active_model_serializers and see if my tests pass again.
See my answer below. I did remove the gem, and all the unrelated tests started passing again. So, I opened a bug with the project. I think active_model_serializers must be touching some object in some unexpected way.
...ANSWER
Answered 2017-Jul-27 at 17:53Ok, so I'm pretty sure this is one of those weird bugs. I removed active_model_serializers
gem and deleted my UserSerializer
class. All tests pass again. I filed an issue with the project: active_model_serializers#2168.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install atc-api
You can use atc-api like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page