Skip to content

Commit

Permalink
Added snapshot comparator core component (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
petruki authored Jul 31, 2024
1 parent 8bfdacd commit 0a30290
Show file tree
Hide file tree
Showing 23 changed files with 1,466 additions and 49 deletions.
49 changes: 0 additions & 49 deletions resources/default.json

This file was deleted.

49 changes: 49 additions & 0 deletions resources/fixtures/changed_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"domain": {
"group": [
{
"name": "Release 1",
"description": "Showcase configuration",
"activated": true,
"config": [
{
"key": "MY_SWITCHER_1",
"description": "My first switcher",
"activated": true,
"strategies": [
{
"strategy": "VALUE_VALIDATION",
"activated": false,
"operation": "EXIST",
"values": [
"user_1"
]
}
],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_2",
"description": "New description",
"activated": true,
"strategies": [],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_3",
"description": "",
"activated": true,
"strategies": [],
"components": [
"benchmark"
]
}
]
}
]
}
}
49 changes: 49 additions & 0 deletions resources/fixtures/changed_group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"domain": {
"group": [
{
"name": "Release 1",
"description": "New description",
"activated": false,
"config": [
{
"key": "MY_SWITCHER_1",
"description": "My first switcher",
"activated": true,
"strategies": [
{
"strategy": "VALUE_VALIDATION",
"activated": false,
"operation": "EXIST",
"values": [
"user_1"
]
}
],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_2",
"description": "",
"activated": false,
"strategies": [],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_3",
"description": "",
"activated": true,
"strategies": [],
"components": [
"benchmark"
]
}
]
}
]
}
}
49 changes: 49 additions & 0 deletions resources/fixtures/changed_strategy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"domain": {
"group": [
{
"name": "Release 1",
"description": "Showcase configuration",
"activated": true,
"config": [
{
"key": "MY_SWITCHER_1",
"description": "My first switcher",
"activated": true,
"strategies": [
{
"strategy": "VALUE_VALIDATION",
"activated": true,
"operation": "EXIST",
"values": [
"user_1"
]
}
],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_2",
"description": "",
"activated": false,
"strategies": [],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_3",
"description": "",
"activated": true,
"strategies": [],
"components": [
"benchmark"
]
}
]
}
]
}
}
49 changes: 49 additions & 0 deletions resources/fixtures/default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"domain": {
"group": [
{
"name": "Release 1",
"description": "Showcase configuration",
"activated": true,
"config": [
{
"key": "MY_SWITCHER_1",
"description": "My first switcher",
"activated": true,
"strategies": [
{
"strategy": "VALUE_VALIDATION",
"activated": false,
"operation": "EXIST",
"values": [
"user_1"
]
}
],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_2",
"description": "",
"activated": false,
"strategies": [],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_3",
"description": "",
"activated": true,
"strategies": [],
"components": [
"benchmark"
]
}
]
}
]
}
}
5 changes: 5 additions & 0 deletions resources/fixtures/default_empty.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"domain": {
"group": []
}
}
12 changes: 12 additions & 0 deletions resources/fixtures/default_empty_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"domain": {
"group": [
{
"name": "Release 1",
"description": "Showcase configuration",
"activated": true,
"config": []
}
]
}
}
47 changes: 47 additions & 0 deletions resources/fixtures/deleted_component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"domain": {
"group": [
{
"name": "Release 1",
"description": "Showcase configuration",
"activated": true,
"config": [
{
"key": "MY_SWITCHER_1",
"description": "My first switcher",
"activated": true,
"strategies": [
{
"strategy": "VALUE_VALIDATION",
"activated": false,
"operation": "EXIST",
"values": [
"user_1"
]
}
],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_2",
"description": "",
"activated": false,
"strategies": [],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_3",
"description": "",
"activated": true,
"strategies": [],
"components": []
}
]
}
]
}
}
40 changes: 40 additions & 0 deletions resources/fixtures/deleted_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"domain": {
"group": [
{
"name": "Release 1",
"description": "Showcase configuration",
"activated": true,
"config": [
{
"key": "MY_SWITCHER_1",
"description": "My first switcher",
"activated": true,
"strategies": [
{
"strategy": "VALUE_VALIDATION",
"activated": false,
"operation": "EXIST",
"values": [
"user_1"
]
}
],
"components": [
"switcher-playground"
]
},
{
"key": "MY_SWITCHER_2",
"description": "",
"activated": false,
"strategies": [],
"components": [
"switcher-playground"
]
}
]
}
]
}
}
5 changes: 5 additions & 0 deletions resources/fixtures/deleted_group.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"domain": {
"group": []
}
}
Loading

0 comments on commit 0a30290

Please sign in to comment.