Skip to content

Commit f10741f

Browse files
committed
Merge branch 'v2'
2 parents 4ea7390 + d0f1aab commit f10741f

File tree

10 files changed

+176
-122
lines changed

10 files changed

+176
-122
lines changed

.changelog/changelog.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
| tag | date | title |
2+
|---|---|---|
3+
| v2.6.4 | 2021-08-31 | User Sync Tool v2.6.4 |
4+
5+
# Bug Fixes
6+
7+
\#723 - Start/end sync signals
8+
\#700 - Fix some issues with SSL verification
9+
\#623 - Fix Adobe-only list with post-sync
10+
11+
# Misc
12+
13+
\#591 - Document Two-Step Lookup
14+
\#676 - Introduce Changelog
15+
16+
---
17+
118
| tag | date | title |
219
|---|---|---|
320
| v2.6.3 | 2021-07-15 | User Sync Tool v2.6.3 |

.changelog/latest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Bug Fixes
22

3+
\#723 - Start/end sync signals
34
\#700 - Fix some issues with SSL verification
45
\#623 - Fix Adobe-only list with post-sync
56

.github/workflows/package-release.yml

Lines changed: 53 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
workflow_dispatch:
87

9-
jobs:
8+
jobs:
109
ubuntu:
11-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-latest
1211
strategy:
1312
matrix:
1413
include:
@@ -18,21 +17,20 @@ jobs:
1817
variant_tag: ""
1918
steps:
2019
- uses: actions/checkout@v2
21-
- name: Set up Python
20+
- name: Set up Python
2221
uses: actions/setup-python@v2
2322
with:
2423
python-version: '3.6'
2524
- name: Get version tag
2625
id: get_version
2726
uses: battila7/get-version-action@v2
2827
- name: Ubuntu-Install dependencies
29-
run: |
28+
run: |
3029
sudo apt-get update
3130
sudo apt-get install -y software-properties-common
3231
sudo apt-get install -y build-essential
3332
sudo apt-get install -y python3-dev python3-pip python3-virtualenv
3433
sudo apt-get install -y pkg-config libssl-dev libdbus-1-dev libdbus-glib-1-dev python-dbus libffi-dev libkrb5-dev
35-
3634
- run: |
3735
pip install external/okta-0.0.3.1-py2.py3-none-any.whl
3836
pip install -e .
@@ -47,8 +45,8 @@ jobs:
4745
- name: Get build
4846
run: |
4947
cd dist
50-
tar czf "user-sync-${UST_VERSION}${UST_VARIANT_TAG}-ubuntu.tar.gz" user-sync
51-
env:
48+
tar czf "user-sync-$UST_VERSION $UST_VARIANT_TAG-ubuntu.tar.gz" user-sync
49+
env:
5250
UST_VARIANT_TAG: ${{matrix.variant_tag}}
5351
UST_VERSION: ${{ steps.get_version.outputs.version }}
5452
- name: Make artifacts
@@ -57,7 +55,8 @@ jobs:
5755
name: user-sync-artifact
5856
path: dist/*.tar.gz
5957
retention-days: 5
60-
58+
59+
6160
windows:
6261
runs-on: windows-latest
6362
strategy:
@@ -67,40 +66,36 @@ jobs:
6766
variant_tag: "-noext"
6867
- extension_support: 1
6968
variant_tag: ""
70-
steps:
69+
steps:
7170
- uses: actions/checkout@v2
7271
- uses: actions/setup-python@v2
7372
with:
7473
python-version: '3.6'
74+
- name: Get version tag
75+
id: get_version
76+
uses: battila7/get-version-action@v2
7577
- run: |
7678
pip install external/okta-0.0.3.1-py2.py3-none-any.whl
7779
pip install -e .
7880
pip install -e .[test]
7981
pip install -e .[setup]
80-
- name: Make Standalone
81-
run: |
82-
make standalone
82+
- run: make standalone
8383
env:
8484
UST_EXTENSION: ${{matrix.extension_support}}
8585
- name: Test with pytest
8686
run: pytest
87-
- name: Get version tag
88-
id: get_version
89-
uses: battila7/get-version-action@v2
90-
- name: zip
87+
- name: Get build
9188
run: |
9289
cd dist
93-
7z a user-sync-${UST_VERSION}${UST_VARIANT_TAG}-win64.zip user-sync.exe
94-
env:
95-
UST_VARIANT_TAG: ${{matrix.variant_tag}}
96-
UST_VERSION: ${{ steps.get_version.outputs.version }}
90+
7z a user-sync-${{ steps.get_version.outputs.version }}${{matrix.variant_tag}}-win64.zip user-sync.exe
9791
- name: Make artifact
9892
uses: actions/upload-artifact@v2
9993
with:
10094
name: user-sync-artifact
10195
path: dist/*.zip
10296
retention-days: 5
103-
97+
98+
10499
centos:
105100
runs-on: ubuntu-latest
106101
env:
@@ -117,6 +112,9 @@ jobs:
117112
variant_tag: ""
118113
steps:
119114
- uses: actions/checkout@v2
115+
- name: Get version tag
116+
id: get_version
117+
uses: battila7/get-version-action@v2
120118
- name: Centos-Install dependencies
121119
run: |
122120
yum install -y epel-release
@@ -137,24 +135,20 @@ jobs:
137135
UST_EXTENSION: ${{matrix.extension_support}}
138136
- name: Test with pytest
139137
run: pytest -s
140-
- name: Get version tag
141-
id: get_version
142-
uses: battila7/get-version-action@v2
143138
- name: Get build
144139
run: |
145140
cd dist
146141
tar czf "user-sync-${UST_VERSION}${UST_VARIANT_TAG}-centos.tar.gz" user-sync
147142
env:
148143
UST_VARIANT_TAG: ${{matrix.variant_tag}}
149144
UST_VERSION: ${{ steps.get_version.outputs.version }}
150-
- name: make atrifact
145+
- name: Make artifact
151146
uses: actions/upload-artifact@v2
152147
with:
153148
name: user-sync-artifact
154149
path: dist/*.tar.gz
155150
retention-days: 5
156-
157-
151+
158152

159153
examples:
160154
runs-on: ubuntu-latest
@@ -178,42 +172,34 @@ jobs:
178172
path: user-sync-examples.tar.gz
179173
retention-days: 5
180174

181-
release:
182-
runs-on: ubuntu-latest
183-
needs: [ubuntu,windows, centos, examples]
184-
steps:
185-
- uses: actions/checkout@v2
186-
- name: Create Release
187-
id: create_release
188-
uses: actions/create-release@v1
189-
env:
190-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
191-
with:
192-
tag_name: ${{ github.ref }}
193-
release_name: user-sync ${{ github.ref }}
194-
body_path: .changelog/latest.md
195-
draft: true
196-
prerelease: false
197-
198-
upload-assets:
199-
needs: release
200-
runs-on: ubuntu-latest
201-
steps:
202-
- uses: actions/download-artifact@v2
203-
- name: Get version tag
204-
id: get_version
205-
uses: battila7/get-version-action@v2
206-
- run: ls -R
207-
- uses: fnkr/github-action-ghr@v1
208-
if: startsWith(github.ref, 'refs/tags/')
209-
env:
210-
GHR_PATH: user-sync-artifact/
211-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
212-
213-
214-
215-
216-
217-
218-
219-
175+
# release:
176+
# runs-on: ubuntu-latest
177+
# needs: [ubuntu,windows, centos, examples]
178+
# steps:
179+
# - uses: actions/checkout@v2
180+
# - name: Create Release
181+
# id: create_release
182+
# uses: actions/create-release@v1
183+
# env:
184+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
185+
# with:
186+
# tag_name: ${{ github.ref }}
187+
# release_name: user-sync ${{ github.ref }}
188+
# body_path: .changelog/latest.md
189+
# draft: true
190+
# prerelease: false
191+
#
192+
# upload-assets:
193+
# needs: release
194+
# runs-on: ubuntu-latest
195+
# steps:
196+
# - uses: actions/download-artifact@v2
197+
# - name: Get version tag
198+
# id: get_version
199+
# uses: battila7/get-version-action@v2
200+
# - run: ls -R
201+
# - uses: fnkr/github-action-ghr@v1
202+
# if: startsWith(github.ref, 'refs/tags/')
203+
# env:
204+
# GHR_PATH: user-sync-artifact/
205+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/en/success-guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ nav_level: 1
88
nav_order: 100
99
---
1010

11-
Version 2.6.3, released 2020-12-04
11+
Version 2.6.4, released 2021-08-31
1212

1313
This document walks you through the steps needed to understand
1414
and setup the User Sync Tool.

docs/en/success-guide/test_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ These commands ought to produce an output similar to the following:
2727

2828
```
2929
> .\user-sync.exe -v
30-
user-sync.exe 2.6.3
30+
user-sync.exe 2.6.4
3131
```
3232

3333
```

docs/en/user-manual/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ nav_level: 1
88
nav_order: 10
99
---
1010

11-
Version 2.6.3, released 2020-09-16
11+
Version 2.6.4, released 2021-08-31
1212

1313
This document has all the information you need to get up and
1414
running with User Sync. It presumes familiarity with the use of

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
'ldap3',
5353
'PyYAML',
5454
'six',
55-
'umapi-client>=2.14',
55+
'umapi-client==2.18',
5656
'click',
5757
'click-default-group',
5858
'configparser==3.7.4',

user_sync/connector/umapi.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ def send_commands(self, commands, callback=None):
180180
if action is not None:
181181
action_manager.add_action(action, callback)
182182

183+
def start_sync(self):
184+
"""Send the start sync signal to the connector"""
185+
self.connection.start_sync()
186+
187+
def end_sync(self):
188+
"""Send the end sync signal to the connector"""
189+
self.connection.end_sync()
190+
183191

184192
class Commands(object):
185193
def __init__(self, identity_type=None, email=None, username=None, domain=None):
@@ -195,6 +203,12 @@ def __init__(self, identity_type=None, email=None, username=None, domain=None):
195203
self.domain = domain
196204
self.do_list = []
197205

206+
def __str__(self):
207+
return "Command "+str(self.__dict__)
208+
209+
def __repr__(self):
210+
return "Command "+str(self.__dict__)
211+
198212
def update_user(self, attributes):
199213
"""
200214
:type attributes: dict

0 commit comments

Comments
 (0)