Uploaded image for project: 'TrueNAS'
  1. TrueNAS
  2. NAS-109612

SCALE API test failing with "Service 'nis' not found"

    XMLWordPrintable

    Details

      Description

       

      Error Message
      AssertionError: {    "message": "Service 'nis' not found",    "errno": 201   } assert 422 == 200   -422   +200
      Stacktrace
      request = <FixtureRequest for <Function test_60_disable_activedirectory>>
      
          def test_60_disable_activedirectory(request):
              depends(request, ["pool_04", "ad_01", "ad_02", "ad_10"], scope="session")
              global payload, results
              payload = {
                  "enable": False
              }
              results = PUT("/activedirectory/", payload)
      >       assert results.status_code == 200, results.text
      E       AssertionError: {
      E          "message": "Service 'nis' not found",
      E          "errno": 201
      E         }
      E       assert 422 == 200
      E         -422
      E         +200
      
      api2/test_030_activedirectory.py:595: AssertionErro

       

      Error Message
      AssertionError: {    "message": "Service 'nis' not found",    "errno": 201   } assert 422 == 200   -422   +200
      Stacktrace
      @pytest.mark.dependency(name="setup_ldap")
          def test_06_setup_and_enabling_ldap():
              payload = {
                  "basedn": LDAPBASEDN,
                  "binddn": LDAPBINDDN,
                  "bindpw": LDAPBINDPASSWORD,
                  "hostname": [
                      LDAPHOSTNAME
                  ],
                  "has_samba_schema": True,
                  "ssl": "ON",
                  "enable": True
              }
              results = PUT("/ldap/", payload)
      >       assert results.status_code == 200, results.text
      E       AssertionError: {
      E          "message": "Service 'nis' not found",
      E          "errno": 201
      E         }
      E       assert 422 == 200
      E         -422
      E         +200
      
      api2/test_275_ldap.py:89: AssertionErr
      Error Message
      AssertionError: {    "message": "Service 'nis' not found",    "errno": 201   } assert 422 == 200   -422   +200
      Stacktrace
      request = <FixtureRequest for <Function test_41_leave_activedirectory>>
      
          def test_41_leave_activedirectory(request):
              depends(request, ["pool_04", "ad_01", "ad_02", "ad_10"], scope="session")
              global payload, results
              payload = {
                  "username": ADUSERNAME,
                  "password": ADPASSWORD
              }
              results = POST("/activedirectory/leave/", payload)
      >       assert results.status_code == 200, results.text
      E       AssertionError: {
      E          "message": "Service 'nis' not found",
      E          "errno": 201
      E         }
      E       assert 422 == 200
      E         -422
      E         +200
      
      api2/test_030_activedirectory.py:430: AssertionError

       

        Attachments

          Attachments

            JEditor

              Activity

                People

                Assignee:
                awalker Andrew Walker
                Reporter:
                eturgeon Eric Turgeon
                Watchers:
                Bug Clerk, Eric Turgeon, William Grzybowski
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: