GithubHelp home page GithubHelp logo

Comments (6)

Neilpang avatar Neilpang commented on May 20, 2024

It's just fixed. Sorry, it was caused by my last checking to support DNS-01.

I'm thinking about adding some unit tests. Do you have any advices ?

from acme.sh.

samueltardieu avatar samueltardieu commented on May 20, 2024

Individual features might be tested automatically quite easily, but certificate signing may be hard to automate given that LetsEncrypt puts a limit on the number of certificates it will sign for a given domain.

from acme.sh.

Neilpang avatar Neilpang commented on May 20, 2024

Yes, that's why I separated the features.

And we have a new macro: STAGE=1

When defining it, we will use letsencrypt staging server to issue dummy cert. Which has no limit.

from acme.sh.

samueltardieu avatar samueltardieu commented on May 20, 2024

Nice, I hadn't noticed it.

The test-driver that comes with automake is a small (148 lines) shell script that can execute arbitrary tests (usually shell scripts) and check their exit code and log their output, and even add colors, etc. I think it could easily be used to run tests that could be written as tiny shell scripts calling le.sh with the right arguments and checking the outcome.

There probably exists tons of similar shell scripts, maybe even better, but this is the one I first thought about because I use it (through automake) in other projects.

from acme.sh.

Neilpang avatar Neilpang commented on May 20, 2024

Ok, I will take a look and let you know.

from acme.sh.

Neilpang avatar Neilpang commented on May 20, 2024

I just added a new unit test project https://github.com/Neilpang/letest.git

from acme.sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.