<commit_before># frozen_string_literal: false

require 'spec_helper'

RSpec.describe Dataservice::BucketContentsMetalController, type: :controller do

  # TODO: auto-generated
  describe '#create' do
    xit 'POST create' do
      post :create, {}, {}

      expect(response).to have_http_status(:ok)
    end
  end

  # TODO: auto-generated
  describe '#create_by_learner' do
    xit 'GET create_by_learner' do
      get :create_by_learner, id: FactoryBot.create(:full_portal_learner).to_param

      expect(response).to have_http_status(:not_found)
    end
  end

  # TODO: auto-generated
  describe '#create_by_name' do
    it 'GET create_by_name' do
      get :create_by_name, name: 'name'

      expect(response).to have_http_status(:created)
    end
  end

end
<commit_msg>Converted bucket contents metal spec to request spec<commit_after># frozen_string_literal: false

require 'spec_helper'

RSpec.describe Dataservice::BucketContentsMetalController, type: :request do

  # TODO: auto-generated
  describe '#create' do
    xit 'POST create' do
      # when converting from xit to it change these to url paths - too lazy to do it now :)
      post :create, {}, {}

      expect(response).to have_http_status(:ok)
    end
  end

  # TODO: auto-generated
  describe '#create_by_learner' do
    xit 'GET create_by_learner' do
      # when converting from xit to it change these to url paths - too lazy to do it now :)
      get :create_by_learner, id: FactoryBot.create(:full_portal_learner).to_param

      expect(response).to have_http_status(:not_found)
    end
  end

  # TODO: auto-generated
  describe '#create_by_name' do
    it 'GET create_by_name' do
      post "/dataservice/bucket_loggers/name/name/bucket_contents.bundle"

      expect(response).to have_http_status(:created)
    end
  end

end

{'fraction_non_alphanumeric': 0.08895027624309393, 'fraction_numerical': 0.0, 'mean_word_length': 3.667525773195876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '535767', 'n_tokens_mistral': 587, 'n_tokens_neox': 567, 'n_words': 159}