Git Product home page Git Product logo

epages_provisioning's Introduction

tswfi's GitHub stats

epages_provisioning's People

Contributors

pyup-bot avatar tswfi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

epages_provisioning's Issues

Convert to more up to date release cycle and packaging

  • ePages provisioning version: 1.1.2
  • ePages version: N/A
  • Python version: N/A
  • Operating System: N/A

Description

The current release build and publish process is quite bad. Migrate to using better tools for release management.

Creating a shop with same name but a different case on the letters

  • ePages provisioning version: 0.3.0
  • ePages version: 11?
  • Python version: 3.6.3
  • Operating System: Ubuntu 16.04

Description

I tried to create a shop with same name, but different case on the letters. With exact same name the shop creation fails with an error telling that shop already exists, and that's fine. But if I'm trying to create a shop with same name but different case on the letters, it fails on the init phase already and without error handling.

What I Did

from epages_provisioning.provisioning import ShopConfigService
from epages_provisioning.shop import Shop

# Get the shop config service
sc = ShopConfigService(
    server="http://jaana01.sml18.vilkas.pri",
    provider="Distributor2",
    username="admin",
    password="admin"
)

# Create the first shop

# This wont create the shop yet
shop = Shop("Test", provisioning=sc)

# Shop type is mandatory
shop.ShopType = "MinDemo"

# Create the shop
shop.create()

# Access the shop attributes, and change them as required
shop.IsTrialShop = True

# Apply the changes to the server
shop.apply()

# Secondly, try to create exact same shop again

shop = Shop("Test", provisioning=sc)

shop.ShopType = "MinDemo"

# This line fails with the error Shop already exists
shop.create()

ShopExistsError: Shop already exists

# Thirdly, try to create same shop but a slightly different case

# This fails already here with a fault
shop = Shop("TeSt", provisioning=sc)

zeep.exceptions.Fault: Object /Providers/Distributor2/ShopRefs doesn't contain a child alias

Remove python2 support

Python2 is EOL and support can be removed.

Some code can be simplified and ci process can be streamlined.

Faster tests

The current testing uses a real ePages server to send the messages to and it will create shops on the system. As the shop creation is quite slow operation the tests are taking longer and longer to run.

The testing should be done with a mock request library.

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.