Skip to content

Commit

Permalink
try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kmd-fl committed Jul 31, 2024
1 parent 0a94b5d commit 37ef23b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/e2e/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ services:
# 12D3KooWBM3SdXWqGaawQDGQ6JprtwswEg3FWGvGhmgmMez1vRbR
- -k=hK62afickoeP2uZbmSkAYXxxqP8ozq16VRN7qfTP719EHC5V5tjrtW57BSjUr8GvsEXmJRbtejUWyPZ2rZMyQdq
- --enable-system-services=none
- --management-key=12D3KooWGLAmtTkqZqqKiSxXpb2j1SRjpbE2YgZZb4Unzn5VPj9p
- --dev-mode
networks:
nox:
Expand Down
8 changes: 6 additions & 2 deletions integration-tests/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,17 @@ def make_key():
return name



def delete_key(name):
with key_lock:
c = delegator.run(f"fluence key remove {name} --no-input", block=True)
if len(c.err) != 0:
print(c.err)
return name

def get_key():
return 'integration-tests-key'


def get_relays():
env = os.environ.get("FLUENCE_ENV")
Expand Down Expand Up @@ -228,7 +232,7 @@ def init_param_opt(param_name):
old_setup_class = getattr(cls, "setup_class", None)

def setup_class(cls):
key_pair_name = make_key()
key_pair_name = get_key()
spell_id = create_spell(key_pair_name, air_script, config, dat, alias)
cls.spell_id = spell_id
cls.key_pair_name = key_pair_name
Expand All @@ -245,7 +249,7 @@ def teardown_class(cls):
if old_teardown_class is not None:
old_teardown_class()
destroy_spell(cls.key_pair_name, cls.spell_id)
delete_key(cls.key_pair_name)
#delete_key(cls.key_pair_name)

cls.teardown_class = teardown_class

Expand Down

0 comments on commit 37ef23b

Please sign in to comment.