GithubHelp home page GithubHelp logo

isabella232 / forgeops-smoke-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lee-baines/forgeops-smoke-test

0.0 0.0 0.0 57 KB

Smoke test as a service for the ForgeOps deployment

License: Apache License 2.0

Shell 0.61% Dart 90.27% HTML 3.74% Dockerfile 5.39%

forgeops-smoke-test's Introduction

ForgeOps Smoke Test Service

This is deployed a Cloud Run service, and will perform a basic smoke test on a deployed ForgeOps platform.

The test requires the use of amadmin credentials. DO NOT RUN THIS TEST ON A PRODUCTION SYSTEM. The test uses a POST, so most intermediate systems will not log the credential - but leakage is very possible. You have been warned.

Running the test

You can manually run the test via the index page:

https://smoketest-7escakmhgq-uk.a.run.app/

Or using curl:

curl 'https://smoketest-7escakmhgq-uk.a.run.app/test' \
    --data 'fqdn=nightly.iam.forgeops.com&amadminPassword=secretpassword'

The POST form arguments are:

  • fqdn - the fully qualified domain name (do not include the https)
  • amadminPassword - the password for the amadin user

A 200 response means the test has passed. See the json that is returned for the test results.

Anything other than a 200 is a test failure. Note the test stops immediately on the first error.

Adding new tests

Refer to smoke_test.dart.

The strategy for the test is to "fail fast". Failed tests should throw an Exception.

Manually running tests

You can run bin/main.dart to manually run tests, or if you want to run the http server run bin/server.dart.

Deploying to cloud run

Run gclouds builds submit

Dart's tree shaking and native compilation using dart2native results in a very small docker image (less than 6mb).

Test Side effects

Running the test will:

  • Create users user.0 through to user.5. If they already exist they will not be re-created.
  • Self-register a user tuserxxxxx where xxxxx is a random integer.

TODO

forgeops-smoke-test's People

Contributors

wstrange avatar

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.