Skip to content
Snippets Groups Projects
Select Git revision
  • ad59f77fd425b00ae4b8d7360a64dc3dc1c73bd0
  • master default protected
  • dependabot/npm_and_yarn/webui/npm_and_yarn-7d065cd83c
  • dependabot/go_modules/go_modules-985326579b
  • gh-pages
  • trunk
  • graphql-subscription
  • feat/1467/git-repo-path
  • board
  • I738207f8cb254b66f3ef18aa525fce39c71060e2
  • Ia1ad61e54e305bb073efc6853738d3eed81d576c
  • feat/lipgloss-formatting
  • bootstrap-rework-2
  • boostrap-rework
  • github-config-resilience
  • feat-849-terminal-output-in-core
  • gitea-bridge
  • feat-licences-checks
  • complete-comment
  • graphql-generics
  • fix/810-finish-reading-loop
  • v0.10.1
  • v0.10.0
  • v0.9.0
  • v0.8.1
  • v0.8.0
  • v0.7.2
  • 0.7.1
  • 0.7.0
  • 0.6.0
  • 0.5.0
  • 0.4.0
  • 0.3.0
  • 0.2.0
  • 0.1.0
35 results

root.go

Blame
  • gitlab-pipeline-status.tester.js 1.05 KiB
    'use strict'
    
    const Joi = require('joi')
    const { isBuildStatus } = require('../build-status')
    const t = (module.exports = require('../tester').createServiceTester())
    
    t.create('Pipeline status')
      .get('/gitlab-org/gitlab-ce.json')
      .expectJSONTypes(
        Joi.object().keys({
          name: 'build',
          value: isBuildStatus,
        })
      )
    
    t.create('Pipeline status (branch)')
      .get('/gitlab-org/gitlab-ce/v10.7.6.json')
      .expectJSONTypes(
        Joi.object().keys({
          name: 'build',
          value: isBuildStatus,
        })
      )
    
    t.create('Pipeline status (nonexistent branch)')
      .get('/gitlab-org/gitlab-ce/nope-not-a-branch.json')
      .expectJSON({
        name: 'build',
        value: 'branch not found',
      })
    
    t.create('Pipeline status (nonexistent repo)')
      .get('/this-repo/does-not-exist.json')
      .expectJSON({
        name: 'build',
        value: 'repo not found',
      })
    
    t.create('Pipeline status (custom gitlab URL)')
      .get('/GNOME/pango.json?gitlab_url=https://gitlab.gnome.org')
      .expectJSONTypes(
        Joi.object().keys({
          name: 'build',
          value: isBuildStatus,
        })
      )