def METHOD_NAME(self):
    myips = ["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
    wide_open_ips = ["0.0.0.0/0", "::/0"]
    other_ips = ["1.2.3.4/32", "1::2/128"]
    self.stage_container(
        "sample-6.2.0.mda",
        env_vars={
            "ACCESS_RESTRICTIONS": json.dumps(
                {
                    BLOCK_ALL: {"ipfilter": []},
                    BLOCK_ALL_BUT_SUB_PATH_WIDE_OPEN: {"ipfilter": wide_open_ips},
                    MY_IP_FILTER: {"ipfilter": myips},
                    OTHER_IP_FILTER: {"ipfilter": other_ips},
                    BASIC_AUTH: {"basic_auth": {"user": "password"}},
                    BASIC_AUTH_AND_MY_IP_FILTER: {
                        "ipfilter": myips,
                        "basic_auth": {"user": "password"},
                        "satisfy": "all",
                    },
                    BASIC_AUTH_AND_OTHER_IP_FILTER: {
                        "ipfilter": other_ips,
                        "basic_auth": {"user": "password"},
                        "satisfy": "all",
                    },
                    BASIC_AUTH_OR_MY_IP_FILTER: {
                        "ipfilter": myips,
                        "basic_auth": {"user": "password"},
                        "satisfy": "any",
                    },
                    BASIC_AUTH_OR_OTHER_IP_FILTER: {
                        "ipfilter": other_ips,
                        "basic_auth": {"user": "password"},
                        "satisfy": "any",
                    },
                }
            )
        },
    )
    self.start_container()
    auth = ("user", "password")
    auth_wrong_user = ("user1", "password")
    auth_wrong_pass = ("user", "password1")
    auth_wrong_pass2 = ("user", "somethingelse")
    success = all(
        [
            self._check_http_code(BLOCK_ALL_RESOURCE, 403),
            self._check_http_code(BLOCK_ALL_BUT_SUB_PATH_WIDE_OPEN_RESOURCE, 200),
            self._check_http_code(MY_IP_FILTER_RESOURCE, 200),
            self._check_http_code(OTHER_IP_FILTER_RESOURCE, 403),
            self._check_http_code(OTHER_IP_FILTER_RESOURCE, 403, auth=auth),
            self._check_http_code(BASIC_AUTH_RESOURCE, 200, auth=auth),
            self._check_http_code(BASIC_AUTH_RESOURCE, 401),
            self._check_http_code(BASIC_AUTH_RESOURCE, 401, auth=auth_wrong_user),
            self._check_http_code(BASIC_AUTH_RESOURCE, 401, auth=auth_wrong_pass),
            self._check_http_code(BASIC_AUTH_RESOURCE, 401, auth=auth_wrong_pass2),
            self._check_http_code(
                BASIC_AUTH_AND_MY_IP_FILTER_RESOURCE, 200, auth=auth
            ),
            self._check_http_code(BASIC_AUTH_AND_MY_IP_FILTER_RESOURCE, 401),
            self._check_http_code(
                BASIC_AUTH_AND_MY_IP_FILTER_RESOURCE,
                401,
                auth=auth_wrong_user,
            ),
            self._check_http_code(
                BASIC_AUTH_AND_OTHER_IP_FILTER_RESOURCE, 403, auth=auth
            ),
            self._check_http_code(
                BASIC_AUTH_OR_MY_IP_FILTER_RESOURCE, 200, auth=auth
            ),
            self._check_http_code(BASIC_AUTH_OR_MY_IP_FILTER_RESOURCE, 200),
            self._check_http_code(
                BASIC_AUTH_OR_MY_IP_FILTER_RESOURCE,
                200,
                auth=auth_wrong_user,
            ),
            self._check_http_code(
                BASIC_AUTH_OR_OTHER_IP_FILTER_RESOURCE, 200, auth=auth
            ),
            self._check_http_code(
                BASIC_AUTH_OR_OTHER_IP_FILTER_RESOURCE,
                401,
                auth=auth_wrong_user,
            ),
            self._check_http_code(
                BASIC_AUTH_OR_OTHER_IP_FILTER_RESOURCE,
                401,
                auth=auth_wrong_pass,
            ),
            self._check_http_code(
                BASIC_AUTH_OR_OTHER_IP_FILTER_RESOURCE,
                401,
                auth=auth_wrong_pass2,
            ),
            self._check_http_code(BASIC_AUTH_OR_OTHER_IP_FILTER_RESOURCE, 401),
        ]
    )
    if not success:
        print(self.run_on_container("cat /home/vcap/app/nginx/conf/nginx.conf"))
    assert success