Changeset 542b7d5


Ignore:
Timestamp:
2021-03-31T11:00:24Z (2 weeks ago)
Author:
/ <>
Children:
cdb59cc
Parents:
1fb3406
Message:

del acc

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • .github/workflows/ci.yml

    r1fb3406 r542b7d5  
    4848
    4949        python3 ./.tests/jabber_connect.py
     50
     51        ./.tests/cleanup_bitlbee.sh
     52        ./.tests/cleanup_prosody.sh
     53
     54    - name: jabber delete account
     55      if: ${{ always() }}
     56      run: |
     57        ./.tests/setup_prosody.sh
     58        ./.tests/setup_bitlbee.sh
     59
     60        python3 ./.tests/jabber_delete_acc.py
    5061
    5162        ./.tests/cleanup_bitlbee.sh
  • .tests/btlib.py

    r1fb3406 r542b7d5  
    137137    return ret
    138138
     139def jabber_delete_account_test(clis):
     140    ret = True
     141    clis[1].send_priv_msg("&bitlbee", "account list")
     142    time.sleep(0.5)
     143    ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') != -1)
     144
     145    clis[1].send_priv_msg("&bitlbee", "account on")
     146    clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del")
     147    clis[0].receive()
     148    clis[1].send_priv_msg("&bitlbee", "account list")
     149    time.sleep(0.5)
     150    ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') != -1)
     151
     152    clis[1].send_priv_msg("&bitlbee", "account off")
     153    clis[1].send_priv_msg("&bitlbee", "account "+clis[1].nick+" del")
     154    clis[0].receive()
     155    clis[1].send_priv_msg("&bitlbee", "account list")
     156    time.sleep(0.5)
     157    ret = ret & (clis[0].receive().find(clis[1].nick+'@localhost') == -1)
     158    return ret
     159
    139160def add_buddy_test(clis):
    140161    clis[0].add_jabber_buddy(clis[1].nick)
     
    164185    time.sleep(0.5)
    165186    junk = clis[0].receive()
    166     ret = ret & (junk.find("1 available") != -1)
     187    #ret = ret & (junk.find("1 available") != -1)
    167188    ret = ret & (junk.find(clis[1].nick) != -1)
    168189    return ret
Note: See TracChangeset for help on using the changeset viewer.