<commit_before>/// <reference types="cypress" />

context('API Public User', () => {

    it('Login', () => {
        let user = {
            "userName": "admin",
            "password": "<PASSWORD>"
        };

        cy.request({
            method: 'POST',
            url: '/api/public/user/login',
            headers: {'content-type': 'application/json'},
            body: user
        }).then((resp) => {
            const result = JSON.parse(JSON.stringify(resp.body));
            expect(resp.status).to.eq(200);
            expect(result.apiKey).to.eq("<KEY>");
        })
    });
});

<commit_msg>using env value to veifify<commit_after>/// <reference types="cypress" />

context('API Public User', () => {

    it('Login', () => {
        let user = {
            "userName": "admin",
            "password": "<PASSWORD>"
        };

        cy.request({
            method: 'POST',
            url: '/api/public/user/login',
            headers: {'content-type': 'application/json'},
            body: user
        }).then((resp) => {
            const result = JSON.parse(JSON.stringify(resp.body));
            expect(resp.status).to.eq(200);
            expect(result.apiKey).to.eq(Cypress.env('admin.api.key'));
        })
    });
});


{'fraction_non_alphanumeric': 0.19347133757961785, 'fraction_numerical': 0.004777070063694267, 'mean_word_length': 1.732608695652174, 'pattern_counts': {'":': 4, '<': 8, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6074439', 'n_tokens_mistral': 374, 'n_tokens_neox': 364, 'n_words': 62}