Skip to content

Commit 7b6c386

Browse files
committed
feat(gha): add upgrade steps test
1 parent f7e914f commit 7b6c386

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,8 @@ jobs:
9292
bin/instance run test_scripts/admin_password_not_updated.py
9393
env:
9494
ADMIN_PASSWORD: test1234
95+
- name: Run all upgrade steps
96+
run: |
97+
bin/instance run test_scripts/upgrade_steps.py
98+
env:
99+
ACTIVE_BIGBANG_EXPANSION: "True"

src/collective/big/bang/configure.zcml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
handler=".big.bang"
1818
/>
1919

20-
<!--for="zope.processlifetime.IDatabaseOpenedWithRoot"-->
2120
<subscriber
2221
for="zope.processlifetime.IDatabaseOpenedWithRoot"
2322
handler=".expansion.started"

src/collective/big/bang/expansion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def upgrade_one_profile(setup, profile_id):
6262
do_upgrades(setup, profile_id, upgrades)
6363
upgrades = list_upgrades(setup, profile_id)
6464
else:
65-
logger.info("Finished upgrading {1} profile".format(profile_id))
65+
logger.info("Finished upgrading {0} profile".format(profile_id))
6666

6767

6868
def list_upgrades(setup, profile_id):

test_scripts/upgrade_steps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
def main(app):
99
site_id = os.getenv("SITE_ID", "Plone")
10+
if site_id in app.objectIds():
11+
del app[site_id]
1012
create_plone_site(app, site_id)
1113
assert site_id in app.objectIds(), "Plone site not existing"
1214
plone = app.get(site_id)

0 commit comments

Comments
 (0)