Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove upgrade from workflows #84

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/build-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ on:
workflow_dispatch:
pull_request:
branches:
- develop
- master
push:
branches:
- develop
- upgrade
jobs:
run-scenario-tests:
runs-on: ubuntu-latest
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/deploy-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ on:
workflows:
- build-latest
branches:
- develop
- upgrade
- master
types:
- completed
jobs:
Expand Down
8 changes: 0 additions & 8 deletions scenario_tests/s3/.env.sample

This file was deleted.

6 changes: 0 additions & 6 deletions scenario_tests/s3/tests/test_restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,11 @@
import logging
from datetime import datetime

from utils.utils import DBConnection


logger = logging.getLogger(__name__)


class TestRestore(unittest.TestCase):

def setUp(self):
self.db = DBConnection()

def test_archive_uploaded(self):
s3_base_path = f"s3://{os.environ.get('BUCKET')}/"
globals_dump_archive = 'globals.sql'
Expand Down
15 changes: 0 additions & 15 deletions scenario_tests/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,6 @@ class DBConnection:
def __init__(self):
self.conn = DBConnection.create_conn()

def table_exists(self, table_name, table_schema='public'):
cur = self.conn.cursor()
query = (
'select '
'exists('
'select 1 '
'from information_schema.tables '
'where table_name = %s and table_schema = %s)')
cur.execute(query, (table_name, table_schema))
try:
row = cur.fetchone()
return row[0]
except:
return False

@staticmethod
def create_conn():
"""
Expand Down