openc3-cosmos-cfdp 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +18 -0
- data/README.md +181 -0
- data/Rakefile +40 -0
- data/lib/cfdp.rb +283 -0
- data/lib/cfdp_api.rb +204 -0
- data/microservices/CFDP/Gemfile +37 -0
- data/microservices/CFDP/Rakefile +6 -0
- data/microservices/CFDP/app/controllers/application_controller.rb +46 -0
- data/microservices/CFDP/app/controllers/cfdp_controller.rb +222 -0
- data/microservices/CFDP/app/models/cfdp_checksum.rb +52 -0
- data/microservices/CFDP/app/models/cfdp_crc_checksum.rb +41 -0
- data/microservices/CFDP/app/models/cfdp_mib.rb +613 -0
- data/microservices/CFDP/app/models/cfdp_model.rb +25 -0
- data/microservices/CFDP/app/models/cfdp_null_checksum.rb +29 -0
- data/microservices/CFDP/app/models/cfdp_pdu.rb +202 -0
- data/microservices/CFDP/app/models/cfdp_receive_transaction.rb +590 -0
- data/microservices/CFDP/app/models/cfdp_source_transaction.rb +449 -0
- data/microservices/CFDP/app/models/cfdp_topic.rb +58 -0
- data/microservices/CFDP/app/models/cfdp_transaction.rb +188 -0
- data/microservices/CFDP/app/models/cfdp_user.rb +601 -0
- data/microservices/CFDP/bin/rails +4 -0
- data/microservices/CFDP/bin/rake +4 -0
- data/microservices/CFDP/bin/setup +25 -0
- data/microservices/CFDP/config/application.rb +55 -0
- data/microservices/CFDP/config/boot.rb +4 -0
- data/microservices/CFDP/config/credentials.yml.enc +1 -0
- data/microservices/CFDP/config/environment.rb +5 -0
- data/microservices/CFDP/config/environments/development.rb +53 -0
- data/microservices/CFDP/config/environments/production.rb +75 -0
- data/microservices/CFDP/config/environments/test.rb +50 -0
- data/microservices/CFDP/config/initializers/application_controller_renderer.rb +8 -0
- data/microservices/CFDP/config/initializers/backtrace_silencers.rb +7 -0
- data/microservices/CFDP/config/initializers/cfdp_initializer.rb +26 -0
- data/microservices/CFDP/config/initializers/cors.rb +16 -0
- data/microservices/CFDP/config/initializers/filter_parameter_logging.rb +8 -0
- data/microservices/CFDP/config/initializers/inflections.rb +16 -0
- data/microservices/CFDP/config/initializers/mime_types.rb +4 -0
- data/microservices/CFDP/config/initializers/wrap_parameters.rb +9 -0
- data/microservices/CFDP/config/locales/en.yml +29 -0
- data/microservices/CFDP/config/puma.rb +38 -0
- data/microservices/CFDP/config/routes.rb +16 -0
- data/microservices/CFDP/config.ru +5 -0
- data/microservices/CFDP/init.sh +9 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_ack.rb +82 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_enum.rb +237 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_eof.rb +87 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_file_data.rb +98 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_finished.rb +114 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_keep_alive.rb +65 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_metadata.rb +116 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_nak.rb +91 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_prompt.rb +60 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_tlv.rb +291 -0
- data/microservices/CFDP/lib/cfdp_pdu/cfdp_pdu_user_ops.rb +749 -0
- data/microservices/CFDP/public/robots.txt +1 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_ack_spec.rb +114 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_eof_spec.rb +159 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_file_data_spec.rb +76 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_finished_spec.rb +192 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_keep_alive_spec.rb +69 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_metadata_spec.rb +346 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_nak_spec.rb +126 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_prompt_spec.rb +94 -0
- data/microservices/CFDP/spec/models/cfdp_pdu_spec.rb +111 -0
- data/microservices/CFDP/spec/rails_helper.rb +71 -0
- data/microservices/CFDP/spec/requests/cfdp_spec.rb +1965 -0
- data/microservices/CFDP/spec/spec_helper.rb +200 -0
- data/plugin.txt +67 -0
- data/targets/CFDPTEST/cmd_tlm/cmd.txt +5 -0
- data/targets/CFDPTEST/cmd_tlm/tlm.txt +4 -0
- data/targets/CFDPTEST/procedures/cfdp_test_suite.rb +130 -0
- data/targets/CFDPTEST/target.txt +4 -0
- metadata +118 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
# encoding: ascii-8bit
|
2
|
+
|
3
|
+
# Copyright 2023 OpenC3, Inc.
|
4
|
+
# All Rights Reserved.
|
5
|
+
#
|
6
|
+
# Licensed for Evaluation and Educational Use
|
7
|
+
#
|
8
|
+
# This file may only be used commercially under the terms of a commercial license
|
9
|
+
# purchased from OpenC3, Inc.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
14
|
+
#
|
15
|
+
# The development of this software was funded in-whole or in-part by MethaneSAT LLC.
|
16
|
+
|
17
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
18
|
+
ENV['RAILS_ENV'] ||= 'test'
|
19
|
+
require File.expand_path('../config/environment', __dir__)
|
20
|
+
# Prevent database truncation if the environment is production
|
21
|
+
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
22
|
+
require 'rspec/rails'
|
23
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
24
|
+
require 'spec_helper'
|
25
|
+
|
26
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
27
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
28
|
+
# run as spec files by default. This means that files in spec/support that end
|
29
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
30
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
31
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
32
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
33
|
+
#
|
34
|
+
# The following line is provided for convenience purposes. It has the downside
|
35
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
36
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
37
|
+
# require only the support files necessary.
|
38
|
+
#
|
39
|
+
# Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }
|
40
|
+
|
41
|
+
RSpec.configure do |config|
|
42
|
+
# Remove this line to enable support for ActiveRecord
|
43
|
+
config.use_active_record = false
|
44
|
+
|
45
|
+
# If you enable ActiveRecord support you should unncomment these lines,
|
46
|
+
# note if you'd prefer not to run each example within a transaction, you
|
47
|
+
# should set use_transactional_fixtures to false.
|
48
|
+
#
|
49
|
+
# config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
50
|
+
# config.use_transactional_fixtures = true
|
51
|
+
|
52
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
53
|
+
# based on their file location, for example enabling you to call `get` and
|
54
|
+
# `post` in specs under `spec/controllers`.
|
55
|
+
#
|
56
|
+
# You can disable this behaviour by removing the line below, and instead
|
57
|
+
# explicitly tag your specs with their type, e.g.:
|
58
|
+
#
|
59
|
+
# RSpec.describe UsersController, type: :controller do
|
60
|
+
# # ...
|
61
|
+
# end
|
62
|
+
#
|
63
|
+
# The different available types are documented in the features, such as in
|
64
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
65
|
+
config.infer_spec_type_from_file_location!
|
66
|
+
|
67
|
+
# Filter lines from Rails gems in backtraces.
|
68
|
+
config.filter_rails_from_backtrace!
|
69
|
+
# arbitrary gems may also be filtered via:
|
70
|
+
# config.filter_gems_from_backtrace("gem name")
|
71
|
+
end
|