jonnystorm / snmp-elixir

An SNMP client library for Elixir
Mozilla Public License 2.0
33 stars 12 forks source link

Closes #53: CI integration tests with snmpsim docker image #54

Closed pertsevds closed 4 years ago

pertsevds commented 4 years ago

I've made a docker image of snmpsim with needed parameters, made changes to .gitlab-ci.yml, made some changes to tests and now we can run tests in CI and localy with: docker pull davaeron/snmpsim docker run -d -p 161:161/udp davaeron/snmpsim

There is one problem though, officialy in Docker Hub where Gitlab CI gets elixir image, now we only have docker image of "elixir:latest" = "Elixir v1.10.4 (compiled with OTP 22.3.4.5)" and AES support requires OTP >= 23, so i've removed ":aes" from tests for now. As soon as we hit OTP 23, we can return it back. 'davaeron/snmpsim' docker image can use AES and has credentials to support SNMP v3 get/set tests. I've tested it with my local OTP 23.

My docker image source repo: https://github.com/davaeron/docker-snmpsim

CI works: https://gitlab.com/davaeron/snmp-elixir/-/pipelines/176327378

jonnystorm commented 4 years ago

Outstanding work! Thank you for contributing, @davaeron!