Skip to content

Commit b4a6942

Browse files
committed
Merge branch 'v2'
2 parents bc1b030 + 073a255 commit b4a6942

File tree

9 files changed

+33
-30
lines changed

9 files changed

+33
-30
lines changed

.changelog/changelog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
| tag | date | title |
2+
|---|---|---|
3+
| v2.6.6 | 2021-11-04 | User Sync Tool v2.6.6 |
4+
5+
# Bug Fixes
6+
7+
\#745 - Management actions halted when max Adobe-only limit exceeded
8+
9+
---
10+
111
| tag | date | title |
212
|---|---|---|
313
| v2.6.5 | 2021-09-16 | User Sync Tool v2.6.5 |

.changelog/latest.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
11
# Bug Fixes
22

3-
\#728 - Fix keyring misidentification issue
4-
\#731 - None-type issue with user commands
5-
\#732 - Executable fails on Ubuntu 18.04 (bionic)
6-
7-
# Build Information
8-
9-
* Builds are now made with Python 3.9 on all platforms
10-
* Separate build for Ubuntu Bionic (18.04)
3+
\#745 - Management actions halted when max Adobe-only limit exceeded

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The [User Sync Documentation](https://adobe-apiplatform.github.io/user-sync.py/)
2222

2323
* Windows, Ubuntu or CentOS server/VM (if using a [pre-built release](https://github.com/adobe-apiplatform/user-sync.py/releases/latest))
2424
* At least 4GB of available RAM
25-
* Service account for the User Management API (see the [official docs](https://www.adobe.io/apis/experienceplatform/console/docs.html#!AdobeDocs/adobeio-console/master/integrations.md))
25+
* Service account for the User Management API (see the [official docs](https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/AuthenticationOverview/ServiceAccountIntegration.md))
2626
* Public/private keys for service account (see the [official docs](https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/JWT/JWTCertificate.md))
2727

2828
## Installation and Use
@@ -54,7 +54,7 @@ The general procedure to build the User Sync Tool is the same across platforms.
5454
prerequisites that must be met before following these instructions. Refer to the notes for your platform and return here
5555
to learn how to build the Sync Tool from source.
5656

57-
**NOTE:** Python 3.6 is required on all platforms.
57+
**NOTE:** Python 3.9 is required on all platforms.
5858

5959
1. Clone this repository `git clone https://github.com/adobe-apiplatform/user-sync.py.git`
6060
2. Create a new Python 3.6 virtual environment `python -m venv /path/to/venv` (note: your system may prompt you to install
@@ -79,12 +79,12 @@ On Linux, many of the Sync Tool's dependencies are built from source and contain
7979
languages. For this reason, it is necessary to install some system packages and libraries.
8080

8181
```bash
82-
sudo apt-get update
83-
sudo apt-get install -y software-properties-common
84-
sudo apt-get install -y build-essential
85-
sudo apt-get install -y python-dev python-pip python-virtualenv
86-
sudo apt-get install -y pkg-config libssl-dev libdbus-1-dev libdbus-glib-1-dev python-dbus libffi-dev libkrb5-dev
87-
sudo apt-get install -y python3-dev python3-venv
82+
sudo apt-get update && \
83+
sudo apt-get install -y \
84+
software-properties-common build-essential \
85+
pkg-config libssl-dev libdbus-1-dev \
86+
libdbus-glib-1-dev python-dbus \
87+
libffi-dev libkrb5-dev python3.9-dev python3-venv
8888
```
8989

9090
### CentOS and other RedHat variants

docs/Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,17 +204,17 @@ GEM
204204
rb-fsevent (~> 0.10, >= 0.10.3)
205205
rb-inotify (~> 0.9, >= 0.9.10)
206206
mercenary (0.3.6)
207-
mini_portile2 (2.5.1)
207+
mini_portile2 (2.6.1)
208208
minima (2.5.1)
209209
jekyll (>= 3.5, < 5.0)
210210
jekyll-feed (~> 0.9)
211211
jekyll-seo-tag (~> 2.1)
212212
multi_json (1.15.0)
213213
multipart-post (2.1.1)
214-
nokogiri (1.11.4)
215-
mini_portile2 (~> 2.5.0)
214+
nokogiri (1.12.5)
215+
mini_portile2 (~> 2.6.1)
216216
racc (~> 1.4)
217-
nokogiri (1.11.4-x64-mingw32)
217+
nokogiri (1.12.5-x64-mingw32)
218218
racc (~> 1.4)
219219
octokit (4.20.0)
220220
faraday (>= 0.9)

tests/conftest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ def _cli_args(args_in):
3333

3434
@pytest.fixture
3535
def private_key(fixture_dir, tmpdir):
36-
shutil.copy(os.path.join(fixture_dir, 'test_private.key'), tmpdir.dirname)
37-
return os.path.join(tmpdir.dirname, 'test_private.key')
36+
shutil.copy(os.path.join(fixture_dir, 'test_private.key'), tmpdir)
37+
return os.path.join(tmpdir, 'test_private.key')
3838

3939

4040
@pytest.fixture
4141
def public_cert(fixture_dir, tmpdir):
42-
shutil.copy(os.path.join(fixture_dir, 'test_cert.crt'), tmpdir.dirname)
43-
return os.path.join(tmpdir.dirname, 'test_cert.crt')
42+
shutil.copy(os.path.join(fixture_dir, 'test_cert.crt'), tmpdir)
43+
return os.path.join(tmpdir, 'test_cert.crt')
4444

4545
@pytest.fixture
4646
def root_config_file(fixture_dir):
@@ -80,4 +80,4 @@ def _resource_file(dirname, filename):
8080
filepath = os.path.join(dirname, filename)
8181
open(filepath, 'a').close()
8282
return filepath
83-
return _resource_file
83+
return _resource_file

tests/test_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
@pytest.fixture
1111
def encrypted_key(fixture_dir, tmpdir):
12-
shutil.copy(os.path.join(fixture_dir, 'encrypted.key'), tmpdir.dirname)
13-
return os.path.join(tmpdir.dirname, 'encrypted.key')
12+
shutil.copy(os.path.join(fixture_dir, 'encrypted.key'), tmpdir)
13+
return os.path.join(tmpdir, 'encrypted.key')
1414

1515

1616
def test_encrypt_file(private_key, encrypted_key):

user_sync/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ def load_from_yaml(cls, filename, path_keys):
978978
cls.filename = os.path.split(cls.filepath)[1]
979979
cls.dirpath = os.path.dirname(cls.filepath)
980980
try:
981-
with open(filename, 'rb', 1) as input_file:
981+
with open(filename, 'rb', 0) as input_file:
982982
byte_string = input_file.read()
983983
yml = yaml.safe_load(byte_string.decode(cls.config_encoding, 'strict'))
984984
except IOError as e:

user_sync/rules.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def process_strays(self, primary_commands, secondary_command_lists, umapi_connec
647647
self.logger.critical('Unable to process Adobe-only users, as their count (%s) is larger '
648648
'than the max_adobe_only_users setting (%s)', stray_count, max_missing_option)
649649
self.action_summary['primary_strays_processed'] = 0
650-
return [], {}
650+
return primary_commands, secondary_command_lists
651651
self.logger.debug("Processing Adobe-only users...")
652652
return self.manage_strays(primary_commands, secondary_command_lists, umapi_connectors)
653653

user_sync/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1919
# SOFTWARE.
2020

21-
__version__ = '2.6.5'
21+
__version__ = '2.6.6'

0 commit comments

Comments
 (0)