Git Product home page Git Product logo

quickbuild's Introduction

Hi, I am a software engineer, curious about all computer science, especially backend, services,
and system programming.

More than 10 years of commercial experience, last time working mostly as full stack, use Python,
love Django, know JS, have a background with system programming, reverse engineering.

Regularly participate in leetcode contests, have a few public Python packages on PyPI.

Addicted to GitHub, LeetCode & Continuous Improvement โœŒ๏ธ

https://linkedin.com/in/pbelskiy
https://leetcode.com/pbelskiy
https://medium.com/@pbelskiy

quickbuild's People

Contributors

martinm82 avatar pbelskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

quickbuild's Issues

Add non REST variant of build abort

import re
import asyncio
import aiohttp

ROOT_URL = 'https://localhost/'


async def stop_build(build_id):
    session = aiohttp.ClientSession()

    response = await session.post(
        f'{ROOT_URL}/signin?1-1.IFormSubmitListener-form',
        data={
            'id1_hf_0': '',
            'userName': 'login',
            'password': 'password',
        }
    )

    response = await session.get(f'{ROOT_URL}/build/{build_id}')
    content = await response.text()
    page_id = re.findall(r'wicket/page\?(\d+-\d+)\.', content)[0]

    response = await session.get(
        f'{ROOT_URL}/wicket/page?{page_id}.IBehaviorListener.1-content-buildHead-stop',
        headers={
            'Wicket-Ajax': 'true',
            'Wicket-Ajax-BaseURL': f'build/{build_id}'
        }
    )

    await session.close()


async def main():
    await stop_build(123)


loop = asyncio.get_event_loop()
loop.run_until_complete(main())
loop.close()

roadmap

  • Get API Version
  • Interact with Audits
  • Interact with Configurations
  • Interact with Builds
  • Interact with Latest Builds
  • Interact with Build Requests
  • Trigger Build via GET Request
  • Interact with Users
  • Interact with Groups
  • Interact with Group Memberships
  • Interact with Dashboards
  • Interact with Group Share
  • Interact with User Share
  • Interact with Cloud Profiles
  • Interact with Configuration Authorizations
  • Interact with Resources
  • Interact with Agent Tokens
  • Get System Attributes of Grid Node
  • Get and Set User Attributes of Grid Node
  • Interact with Reports
  • Interact with Changes
  • Interact with Issues
  • Query Build Notifications
  • Query Grid Measurements
  • Access Information of Published Files
  • Interact with Build Agents
  • Backup Database
  • Pause System
  • Resume System
  • Check System Pause Information
  • Retrieve Object Identifier

add native types for xmltodict

It would be more good to have False as boolean instead of string.

@responses.activate
def test_get_schedule(client):
    GET_CONFIGURATION_SCHEDULE_XML = r"""<?xml version="1.0" encoding="UTF-8"?>

    <com.pmease.quickbuild.taskschedule.schedule.NoSchedule>
      <paused>false</paused>
      <randomRange>60</randomRange>
    </com.pmease.quickbuild.taskschedule.schedule.NoSchedule>
    """

    responses.add(
        responses.GET,
        re.compile(r'.*/rest/configurations/1/schedule'),
        content_type='application/xml',
        body=GET_CONFIGURATION_SCHEDULE_XML,
    )

    response = client.configurations.get_schedule(1)
    assert response['paused'] == 'false'

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.