appmap 0.59.2 → 0.62.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -16
- data/ARCHITECTURE.md +68 -0
- data/CHANGELOG.md +37 -0
- data/exe/appmap-agent-validate +19 -0
- data/exe/appmap-index +7 -0
- data/lib/appmap.rb +2 -0
- data/lib/appmap/agent.rb +0 -11
- data/lib/appmap/command/agent_setup/status.rb +1 -1
- data/lib/appmap/command/agent_setup/validate.rb +24 -0
- data/lib/appmap/command/index.rb +25 -0
- data/lib/appmap/command/inspect.rb +0 -1
- data/lib/appmap/config.rb +8 -1
- data/lib/appmap/depends.rb +2 -0
- data/lib/appmap/depends/api.rb +84 -0
- data/lib/appmap/depends/configuration.rb +59 -0
- data/lib/appmap/depends/node_cli.rb +44 -0
- data/lib/appmap/depends/rake_tasks.rb +58 -0
- data/lib/appmap/depends/test_file_inspector.rb +89 -0
- data/lib/appmap/depends/test_runner.rb +106 -0
- data/lib/appmap/depends/util.rb +34 -0
- data/lib/appmap/service/config_analyzer.rb +7 -8
- data/lib/appmap/service/integration_test_path_finder.rb +29 -25
- data/lib/appmap/service/test_command_provider.rb +5 -7
- data/lib/appmap/service/validator/config_validator.rb +89 -0
- data/lib/appmap/service/validator/violation.rb +50 -0
- data/lib/appmap/version.rb +4 -1
- data/package.json +1 -1
- data/spec/depends/api_spec.rb +184 -0
- data/spec/depends/spec_helper.rb +27 -0
- data/spec/fixtures/config/invalid_config.yml +2 -2
- data/spec/fixtures/config/invalid_yaml_config.yml +3 -0
- data/spec/fixtures/depends/.gitignore +2 -0
- data/spec/fixtures/depends/app/controllers/api/api_keys_controller.rb +2 -0
- data/spec/fixtures/depends/app/controllers/organizations_controller.rb +2 -0
- data/spec/fixtures/depends/app/models/api_key.rb +2 -0
- data/spec/fixtures/depends/app/models/configuration.rb +2 -0
- data/spec/fixtures/depends/app/models/show.rb +2 -0
- data/spec/fixtures/depends/app/models/user.rb +2 -0
- data/spec/fixtures/depends/revoke_api_key.appmap.json +901 -0
- data/spec/fixtures/depends/spec/actual_rspec_test.rb +7 -0
- data/spec/fixtures/depends/spec/api_spec.rb +2 -0
- data/spec/fixtures/depends/spec/user_spec.rb +2 -0
- data/spec/fixtures/depends/test/actual_minitest_test.rb +5 -0
- data/spec/fixtures/depends/user_page_scenario.appmap.json +1776 -0
- data/spec/fixtures/rails5_users_app/create_app +3 -3
- data/spec/fixtures/rails6_users_app/create_app +3 -3
- data/spec/fixtures/rails6_users_app/lib/tasks/appmap.rake +11 -1
- data/spec/service/config_analyzer_spec.rb +4 -4
- data/spec/service/integration_test_path_finder_spec.rb +24 -0
- data/spec/service/validator/violation_spec.rb +68 -0
- data/test/agent_setup_status_test.rb +8 -5
- data/test/agent_setup_validate_test.rb +75 -0
- data/test/test_helper.rb +3 -0
- data/yarn.lock +23 -9
- metadata +38 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
-
set -
|
2
|
+
set -ex
|
3
3
|
|
4
4
|
# Just checking for a healthy container isn't enough, apparently. If
|
5
5
|
# we don't wait here, sometimes the database is inaccessible.
|
@@ -27,7 +27,7 @@ set -e
|
|
27
27
|
psql -h pg -U postgres -c "create database app_development"
|
28
28
|
psql -h pg -U postgres -c "create database app_test"
|
29
29
|
|
30
|
-
RAILS_ENV=development
|
31
|
-
RAILS_ENV=test
|
30
|
+
env RAILS_ENV=development bundle exec rake -t db:migrate
|
31
|
+
env RAILS_ENV=test bundle exec rake -t db:migrate
|
32
32
|
|
33
33
|
echo "INSERT INTO users ( login ) VALUES ( 'admin' ) " | psql -h pg -U postgres app_development
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
-
set -
|
2
|
+
set -ex
|
3
3
|
|
4
4
|
# Just checking for a healthy container isn't enough, apparently. If
|
5
5
|
# we don't wait here, sometimes the database is inaccessible.
|
@@ -27,7 +27,7 @@ set -e
|
|
27
27
|
psql -h pg -U postgres -c "create database app_development"
|
28
28
|
psql -h pg -U postgres -c "create database app_test"
|
29
29
|
|
30
|
-
RAILS_ENV=development
|
31
|
-
RAILS_ENV=test
|
30
|
+
env RAILS_ENV=development bundle exec rake -t db:migrate
|
31
|
+
env RAILS_ENV=test bundle exec rake -t db:migrate
|
32
32
|
|
33
33
|
echo "INSERT INTO users ( login ) VALUES ( 'admin' ) " | psql -h pg -U postgres app_development
|
@@ -3,11 +3,21 @@
|
|
3
3
|
namespace :appmap do
|
4
4
|
def swagger_tasks
|
5
5
|
require 'appmap/swagger'
|
6
|
-
|
7
6
|
AppMap::Swagger::RakeTasks.define_tasks
|
8
7
|
end
|
9
8
|
|
9
|
+
def depends_tasks
|
10
|
+
require 'appmap/depends'
|
11
|
+
AppMap::Depends::RakeTasks.define_tasks
|
12
|
+
end
|
13
|
+
|
10
14
|
if %w[test development].member?(Rails.env)
|
11
15
|
swagger_tasks
|
16
|
+
depends_tasks
|
12
17
|
end
|
13
18
|
end
|
19
|
+
|
20
|
+
if %w[test development].member?(Rails.env)
|
21
|
+
desc 'Bring AppMaps up to date with local file modifications, and updated derived data such as Swagger files'
|
22
|
+
task :appmap => [ :'appmap:depends:update' ]
|
23
|
+
end
|
@@ -28,7 +28,7 @@ describe AppMap::Service::ConfigAnalyzer do
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
context 'with valid config' do
|
31
|
+
context 'with valid but non rails config' do
|
32
32
|
let(:config_file) { 'spec/fixtures/config/valid_config.yml'}
|
33
33
|
|
34
34
|
describe '.app_name' do
|
@@ -39,7 +39,7 @@ describe AppMap::Service::ConfigAnalyzer do
|
|
39
39
|
|
40
40
|
describe '.is_valid?' do
|
41
41
|
it 'returns true' do
|
42
|
-
expect(subject.valid?).to
|
42
|
+
expect(subject.valid?).to be_falsey
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -51,7 +51,7 @@ describe AppMap::Service::ConfigAnalyzer do
|
|
51
51
|
end
|
52
52
|
|
53
53
|
context 'with invalid YAML config' do
|
54
|
-
let(:config_file) { 'spec/fixtures/config/
|
54
|
+
let(:config_file) { 'spec/fixtures/config/invalid_yaml_config.yml'}
|
55
55
|
|
56
56
|
describe '.app_name' do
|
57
57
|
it 'returns app name value from config' do
|
@@ -83,7 +83,7 @@ describe AppMap::Service::ConfigAnalyzer do
|
|
83
83
|
|
84
84
|
describe '.is_valid?' do
|
85
85
|
it 'guesses paths and returns true ' do
|
86
|
-
expect(subject.valid?).to
|
86
|
+
expect(subject.valid?).to be_falsey
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'appmap/service/integration_test_path_finder'
|
5
|
+
|
6
|
+
describe AppMap::Service::IntegrationTestPathFinder do
|
7
|
+
subject { described_class.new('./spec/fixtures/rails6_users_app/') }
|
8
|
+
|
9
|
+
describe '.count' do
|
10
|
+
it 'counts existing paths' do
|
11
|
+
expect(subject.count_paths).to be(3)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
describe '.find' do
|
16
|
+
it 'finds paths' do
|
17
|
+
expect(subject.find).to eq({
|
18
|
+
rspec: %w[spec/controllers],
|
19
|
+
minitest: %w[test/controllers test/integration],
|
20
|
+
cucumber: []
|
21
|
+
})
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'spec_helper'
|
4
|
+
require 'appmap/service/validator/violation'
|
5
|
+
|
6
|
+
describe AppMap::Service::Validator::Violation do
|
7
|
+
describe '.error' do
|
8
|
+
let(:message) { 'error' }
|
9
|
+
|
10
|
+
context 'with default parameters' do
|
11
|
+
subject { described_class.error(message: :message) }
|
12
|
+
|
13
|
+
it 'builds an error' do
|
14
|
+
expect(subject.level).to be :error
|
15
|
+
expect(subject.message).to be :message
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
context 'with default parameters' do
|
20
|
+
subject do
|
21
|
+
described_class.error(
|
22
|
+
message: :message,
|
23
|
+
setting: :setting,
|
24
|
+
filename: :filename,
|
25
|
+
detailed_message: :detailed_message,
|
26
|
+
help_urls: :help_urls
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
let(:filename) { 'filename' }
|
31
|
+
let(:setting) { 'setting' }
|
32
|
+
let(:detailed_message) { 'details' }
|
33
|
+
let(:help_urls) { %w[123 456] }
|
34
|
+
|
35
|
+
it 'builds an error' do
|
36
|
+
expect(subject.level).to be :error
|
37
|
+
expect(subject.message).to be :message
|
38
|
+
expect(subject.setting).to be :setting
|
39
|
+
expect(subject.detailed_message).to be :detailed_message
|
40
|
+
expect(subject.help_urls).to be :help_urls
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '.warning' do
|
45
|
+
let(:message) { 'warning' }
|
46
|
+
|
47
|
+
context 'with default parameters' do
|
48
|
+
subject { described_class.warning(message: :message) }
|
49
|
+
|
50
|
+
it 'builds an error' do
|
51
|
+
expect(subject.level).to be :warning
|
52
|
+
expect(subject.message).to be :message
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe '#to_hash' do
|
58
|
+
subject { described_class.warning(message: :message) }
|
59
|
+
|
60
|
+
let(:message) { 'warning' }
|
61
|
+
|
62
|
+
it 'returns correct hash' do
|
63
|
+
expect(subject.to_h['level']).to be :warning
|
64
|
+
expect(subject.to_h['message']).to be :message
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -13,7 +13,7 @@ class AgentSetupInitTest < Minitest::Test
|
|
13
13
|
config: {
|
14
14
|
app: 'AppMap Rubygem',
|
15
15
|
present: true,
|
16
|
-
valid:
|
16
|
+
valid: false
|
17
17
|
},
|
18
18
|
project: {
|
19
19
|
agentVersion: AppMap::VERSION,
|
@@ -37,7 +37,8 @@ class AgentSetupInitTest < Minitest::Test
|
|
37
37
|
program: 'bundle',
|
38
38
|
args: %w[exec rspec ./spec/controllers],
|
39
39
|
environment: {
|
40
|
-
APPMAP: 'true'
|
40
|
+
APPMAP: 'true',
|
41
|
+
DISABLE_SPRING: 'true'
|
41
42
|
}
|
42
43
|
}
|
43
44
|
},
|
@@ -47,7 +48,8 @@ class AgentSetupInitTest < Minitest::Test
|
|
47
48
|
program: 'bundle',
|
48
49
|
args: %w[exec ruby ./test/controllers],
|
49
50
|
environment: {
|
50
|
-
APPMAP: 'true'
|
51
|
+
APPMAP: 'true',
|
52
|
+
DISABLE_SPRING: 'true'
|
51
53
|
}
|
52
54
|
}
|
53
55
|
},
|
@@ -57,14 +59,15 @@ class AgentSetupInitTest < Minitest::Test
|
|
57
59
|
program: 'bundle',
|
58
60
|
args: %w[exec ruby ./test/integration],
|
59
61
|
environment: {
|
60
|
-
APPMAP: 'true'
|
62
|
+
APPMAP: 'true',
|
63
|
+
DISABLE_SPRING: 'true'
|
61
64
|
}
|
62
65
|
}
|
63
66
|
}
|
64
67
|
],
|
65
68
|
properties: {
|
66
69
|
config: {
|
67
|
-
app:
|
70
|
+
app: 'rails6_users_app',
|
68
71
|
present: true,
|
69
72
|
valid: false
|
70
73
|
},
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'test_helper'
|
4
|
+
|
5
|
+
class AgentSetupValidateTest < Minitest::Test
|
6
|
+
NON_EXISTING_CONFIG_FILENAME = '123.yml'
|
7
|
+
INVALID_YAML_CONFIG_FILENAME = 'spec/fixtures/config/invalid_yaml_config.yml'
|
8
|
+
INVALID_CONFIG_FILENAME = 'spec/fixtures/config/invalid_config.yml'
|
9
|
+
|
10
|
+
def test_init_when_config_exists
|
11
|
+
output = `./exe/appmap-agent-validate`
|
12
|
+
assert_equal 0, $CHILD_STATUS.exitstatus
|
13
|
+
expected = JSON.pretty_generate([
|
14
|
+
{
|
15
|
+
level: :error,
|
16
|
+
message: 'AppMap auto-configuration is currently not available for non Rails projects'
|
17
|
+
}
|
18
|
+
])
|
19
|
+
assert_equal expected, output.strip
|
20
|
+
end
|
21
|
+
|
22
|
+
def test_init_with_non_existing_config_file
|
23
|
+
output = `./exe/appmap-agent-validate -c #{NON_EXISTING_CONFIG_FILENAME}`
|
24
|
+
assert_equal 0, $CHILD_STATUS.exitstatus
|
25
|
+
expected = JSON.pretty_generate([
|
26
|
+
{
|
27
|
+
level: :error,
|
28
|
+
message: 'AppMap auto-configuration is currently not available for non Rails projects'
|
29
|
+
},
|
30
|
+
{
|
31
|
+
level: :error,
|
32
|
+
filename: NON_EXISTING_CONFIG_FILENAME,
|
33
|
+
message: 'AppMap configuration file does not exist'
|
34
|
+
}
|
35
|
+
])
|
36
|
+
assert_equal expected, output.strip
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_init_with_invalid_YAML
|
40
|
+
output = `./exe/appmap-agent-validate -c #{INVALID_YAML_CONFIG_FILENAME}`
|
41
|
+
assert_equal 0, $CHILD_STATUS.exitstatus
|
42
|
+
expected = JSON.pretty_generate([
|
43
|
+
{
|
44
|
+
level: :error,
|
45
|
+
message: 'AppMap auto-configuration is currently not available for non Rails projects'
|
46
|
+
},
|
47
|
+
{
|
48
|
+
level: :error,
|
49
|
+
filename: INVALID_YAML_CONFIG_FILENAME,
|
50
|
+
message: 'AppMap configuration is not valid YAML',
|
51
|
+
detailed_message: "(#{INVALID_YAML_CONFIG_FILENAME}): " \
|
52
|
+
'did not find expected key while parsing a block mapping at line 1 column 1'
|
53
|
+
}
|
54
|
+
])
|
55
|
+
assert_equal expected, output.strip
|
56
|
+
end
|
57
|
+
|
58
|
+
def test_init_with_invalid_data_config
|
59
|
+
output = `./exe/appmap-agent-validate -c #{INVALID_CONFIG_FILENAME}`
|
60
|
+
assert_equal 0, $CHILD_STATUS.exitstatus
|
61
|
+
expected = JSON.pretty_generate([
|
62
|
+
{
|
63
|
+
level: :error,
|
64
|
+
message: 'AppMap auto-configuration is currently not available for non Rails projects'
|
65
|
+
},
|
66
|
+
{
|
67
|
+
level: :error,
|
68
|
+
filename: INVALID_CONFIG_FILENAME,
|
69
|
+
message: 'AppMap configuration could not be loaded',
|
70
|
+
detailed_message: "no implicit conversion of String into Integer"
|
71
|
+
}
|
72
|
+
])
|
73
|
+
assert_equal expected, output.strip
|
74
|
+
end
|
75
|
+
end
|
data/test/test_helper.rb
CHANGED
data/yarn.lock
CHANGED
@@ -2,14 +2,15 @@
|
|
2
2
|
# yarn lockfile v1
|
3
3
|
|
4
4
|
|
5
|
-
"@appland/cli@^1.
|
6
|
-
version "1.
|
7
|
-
resolved "https://registry.yarnpkg.com/@appland/cli/-/cli-1.
|
8
|
-
integrity sha512-
|
5
|
+
"@appland/cli@^1.3.2":
|
6
|
+
version "1.3.2"
|
7
|
+
resolved "https://registry.yarnpkg.com/@appland/cli/-/cli-1.3.2.tgz#84c8b995c9dc103b7a45680c20196db0abbda48b"
|
8
|
+
integrity sha512-j2lMuz1ydNDVPmHr3oXBrcsl3vFAFziZiRwArLMRCcfLVsNkSdFN7IdwVF939Xi+M0cYb5VYx0RSR6iZomC4dQ==
|
9
9
|
dependencies:
|
10
|
-
"@appland/models" "1.0
|
10
|
+
"@appland/models" "1.3.0"
|
11
11
|
async "^3.2.0"
|
12
12
|
chokidar "^3.5.1"
|
13
|
+
cli-progress "^3.9.0"
|
13
14
|
console-table-printer "^2.9.0"
|
14
15
|
crypto-js "^4.0.0"
|
15
16
|
diff "^5.0.0"
|
@@ -19,10 +20,10 @@
|
|
19
20
|
semver "^7.3.5"
|
20
21
|
yargs "^17.0.1"
|
21
22
|
|
22
|
-
"@appland/models@1.0
|
23
|
-
version "1.0
|
24
|
-
resolved "https://registry.yarnpkg.com/@appland/models/-/models-1.0.
|
25
|
-
integrity sha512-
|
23
|
+
"@appland/models@1.3.0":
|
24
|
+
version "1.3.0"
|
25
|
+
resolved "https://registry.yarnpkg.com/@appland/models/-/models-1.3.0.tgz#8da9cb5d0e5e89bd3ad5e354c914da133edc8307"
|
26
|
+
integrity sha512-Oax4/6vJMHyh75CWZdbL3Zxojf3sLKY50tiPMWKqwqDqlP2BgjdOvCFfw5rMMeOW2afs+yptBBPeDPuiS1Kb7w==
|
26
27
|
dependencies:
|
27
28
|
"@rollup/plugin-alias" "^3.1.2"
|
28
29
|
cross-env "^7.0.3"
|
@@ -113,6 +114,14 @@ chokidar@^3.5.1:
|
|
113
114
|
optionalDependencies:
|
114
115
|
fsevents "~2.3.2"
|
115
116
|
|
117
|
+
cli-progress@^3.9.0:
|
118
|
+
version "3.9.0"
|
119
|
+
resolved "https://registry.yarnpkg.com/cli-progress/-/cli-progress-3.9.0.tgz#25db83447deb812e62d05bac1af9aec5387ef3d4"
|
120
|
+
integrity sha512-g7rLWfhAo/7pF+a/STFH/xPyosaL1zgADhI0OM83hl3c7S43iGvJWEAV2QuDOnQ8i6EMBj/u4+NTd0d5L+4JfA==
|
121
|
+
dependencies:
|
122
|
+
colors "^1.1.2"
|
123
|
+
string-width "^4.2.0"
|
124
|
+
|
116
125
|
cliui@^7.0.2:
|
117
126
|
version "7.0.4"
|
118
127
|
resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f"
|
@@ -134,6 +143,11 @@ color-name@~1.1.4:
|
|
134
143
|
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
|
135
144
|
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
|
136
145
|
|
146
|
+
colors@^1.1.2:
|
147
|
+
version "1.4.0"
|
148
|
+
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
|
149
|
+
integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
|
150
|
+
|
137
151
|
concat-map@0.0.1:
|
138
152
|
version "0.0.1"
|
139
153
|
resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appmap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.62.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Gilpin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -296,6 +296,8 @@ email:
|
|
296
296
|
executables:
|
297
297
|
- appmap-agent-init
|
298
298
|
- appmap-agent-status
|
299
|
+
- appmap-agent-validate
|
300
|
+
- appmap-index
|
299
301
|
- appmap-inspect
|
300
302
|
extensions:
|
301
303
|
- ext/appmap/extconf.rb
|
@@ -307,6 +309,7 @@ files:
|
|
307
309
|
- ".releaserc.yml"
|
308
310
|
- ".rubocop.yml"
|
309
311
|
- ".travis.yml"
|
312
|
+
- ARCHITECTURE.md
|
310
313
|
- CHANGELOG.md
|
311
314
|
- CONTRIBUTING.md
|
312
315
|
- Dockerfile.appmap
|
@@ -327,6 +330,8 @@ files:
|
|
327
330
|
- examples/mock_webapp/lib/mock_webapp/user.rb
|
328
331
|
- exe/appmap-agent-init
|
329
332
|
- exe/appmap-agent-status
|
333
|
+
- exe/appmap-agent-validate
|
334
|
+
- exe/appmap-index
|
330
335
|
- exe/appmap-inspect
|
331
336
|
- ext/appmap/appmap.c
|
332
337
|
- ext/appmap/extconf.rb
|
@@ -335,10 +340,20 @@ files:
|
|
335
340
|
- lib/appmap/class_map.rb
|
336
341
|
- lib/appmap/command/agent_setup/init.rb
|
337
342
|
- lib/appmap/command/agent_setup/status.rb
|
343
|
+
- lib/appmap/command/agent_setup/validate.rb
|
344
|
+
- lib/appmap/command/index.rb
|
338
345
|
- lib/appmap/command/inspect.rb
|
339
346
|
- lib/appmap/command_error.rb
|
340
347
|
- lib/appmap/config.rb
|
341
348
|
- lib/appmap/cucumber.rb
|
349
|
+
- lib/appmap/depends.rb
|
350
|
+
- lib/appmap/depends/api.rb
|
351
|
+
- lib/appmap/depends/configuration.rb
|
352
|
+
- lib/appmap/depends/node_cli.rb
|
353
|
+
- lib/appmap/depends/rake_tasks.rb
|
354
|
+
- lib/appmap/depends/test_file_inspector.rb
|
355
|
+
- lib/appmap/depends/test_runner.rb
|
356
|
+
- lib/appmap/depends/util.rb
|
342
357
|
- lib/appmap/event.rb
|
343
358
|
- lib/appmap/handler/function.rb
|
344
359
|
- lib/appmap/handler/net_http.rb
|
@@ -360,6 +375,8 @@ files:
|
|
360
375
|
- lib/appmap/service/integration_test_path_finder.rb
|
361
376
|
- lib/appmap/service/test_command_provider.rb
|
362
377
|
- lib/appmap/service/test_framework_detector.rb
|
378
|
+
- lib/appmap/service/validator/config_validator.rb
|
379
|
+
- lib/appmap/service/validator/violation.rb
|
363
380
|
- lib/appmap/swagger.rb
|
364
381
|
- lib/appmap/swagger/configuration.rb
|
365
382
|
- lib/appmap/swagger/markdown_descriptions.rb
|
@@ -372,9 +389,25 @@ files:
|
|
372
389
|
- release.sh
|
373
390
|
- spec/class_map_spec.rb
|
374
391
|
- spec/config_spec.rb
|
392
|
+
- spec/depends/api_spec.rb
|
393
|
+
- spec/depends/spec_helper.rb
|
375
394
|
- spec/fixtures/config/incomplete_config.yml
|
376
395
|
- spec/fixtures/config/invalid_config.yml
|
396
|
+
- spec/fixtures/config/invalid_yaml_config.yml
|
377
397
|
- spec/fixtures/config/valid_config.yml
|
398
|
+
- spec/fixtures/depends/.gitignore
|
399
|
+
- spec/fixtures/depends/app/controllers/api/api_keys_controller.rb
|
400
|
+
- spec/fixtures/depends/app/controllers/organizations_controller.rb
|
401
|
+
- spec/fixtures/depends/app/models/api_key.rb
|
402
|
+
- spec/fixtures/depends/app/models/configuration.rb
|
403
|
+
- spec/fixtures/depends/app/models/show.rb
|
404
|
+
- spec/fixtures/depends/app/models/user.rb
|
405
|
+
- spec/fixtures/depends/revoke_api_key.appmap.json
|
406
|
+
- spec/fixtures/depends/spec/actual_rspec_test.rb
|
407
|
+
- spec/fixtures/depends/spec/api_spec.rb
|
408
|
+
- spec/fixtures/depends/spec/user_spec.rb
|
409
|
+
- spec/fixtures/depends/test/actual_minitest_test.rb
|
410
|
+
- spec/fixtures/depends/user_page_scenario.appmap.json
|
378
411
|
- spec/fixtures/hook/.gitignore
|
379
412
|
- spec/fixtures/hook/app/controllers/api/api_keys_controller.rb
|
380
413
|
- spec/fixtures/hook/app/controllers/organizations_controller.rb
|
@@ -559,11 +592,14 @@ files:
|
|
559
592
|
- spec/record_sql_rails_pg_spec.rb
|
560
593
|
- spec/remote_recording_spec.rb
|
561
594
|
- spec/service/config_analyzer_spec.rb
|
595
|
+
- spec/service/integration_test_path_finder_spec.rb
|
596
|
+
- spec/service/validator/violation_spec.rb
|
562
597
|
- spec/spec_helper.rb
|
563
598
|
- spec/swagger/swagger_spec.rb
|
564
599
|
- spec/util_spec.rb
|
565
600
|
- test/agent_setup_init_test.rb
|
566
601
|
- test/agent_setup_status_test.rb
|
602
|
+
- test/agent_setup_validate_test.rb
|
567
603
|
- test/bundle_vendor_test.rb
|
568
604
|
- test/cucumber_test.rb
|
569
605
|
- test/expectations/openssl_test_key_sign1.json
|